salzrat Posted April 19, 2013 Report Share Posted April 19, 2013 I noticed in process hacker that btsync has a small CPU spike (5% on my 4-core 2-thread machine, so actually about 40% of one core!) ever 10 seconds. And every once in a while, there are a few seconds where it runs on 12% (100% of one core). This does not seem like much, but it does lead a mobile CPU upclock more often and run hotter...Also, if I look at the total IO in process hacker, btsync.exe comes out on top most of the time, with about 5KB/s "other" bytes.Is this normal or because it's still alpha code? Can it be reduced? Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted April 19, 2013 Report Share Posted April 19, 2013 Is this normal or because it's still alpha code? Can it be reduced?I know the team have previously made some improvements in the area of CPU usage - see this topic. So, I would expect (or rather hope!) that further CPU and Memory optimizations can be found before the first public release of BitTorrent Sync.From my own testing, the amount of CPU usage also appears to be directly linked to the total number of files indexed by BitTorrent Sync. i.e. on devices syncing a several thousand files in total, the CPU (and memory) usage is considerably higher than than devices only syncing a couple of hundred files total. (i.e. 25% CPU & 221MB Memory vs 5% CPU & 13MB Memory)There's also been a related discussion on high CPU/Memory usage here. Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 20, 2013 Report Share Posted April 20, 2013 Sync rescans folder every 10 minutes, to make sure there were no changes missed, so you will se a spike in CPU usage. We plan to make this interval configurable. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted April 20, 2013 Report Share Posted April 20, 2013 Sync rescans folder every 10 minutes, to make sure there were no changes missed, so you will se a spike in CPU usage. We plan to make this interval configurable.kos, it would be great if, when implemented, this setting could be on a per-folder basis, rather than just a generic global setting. For example, you may have a folder whos contents wont change more than once a day, and another folder whos contents is expected to change every couple of minutes, etc Quote Link to comment Share on other sites More sharing options...
chiefsucker Posted April 22, 2013 Report Share Posted April 22, 2013 kos, that’s not what I see on my machines. It looks like the client is connecting to either the relay or tracker server every couple of seconds. The spike in CPU usage slightly correlates with these connections. The usage on OS X is also about 70–90% and that’s not insignificant. Is this a known issue? Would debug logs help? Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 22, 2013 Report Share Posted April 22, 2013 Sync connects to tracker every few seconds to ger a list of peers, this is normal. If Sync consumes 70-90% - this is not normal and we want to track this down.This post describes what we need to localize issue. Quote Link to comment Share on other sites More sharing options...
salzrat Posted April 22, 2013 Author Report Share Posted April 22, 2013 So is 5-6% of an 8-core "normal" (as I said, this is 40% of a single core!)? These spikes are quite noticeable compared to any other background program I'm running.. Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 22, 2013 Report Share Posted April 22, 2013 So is 5-6% of an 8-core "normal" (as I said, this is 40% of a single core!)? These spikes are quite noticeable compared to any other background program I'm running..Is 5-6% during spike? Or is it normal cpu rate? how many files you have in Sync folders? Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted April 22, 2013 Report Share Posted April 22, 2013 So is 5-6% of an 8-core "normal" (as I said, this is 40% of a single core!)? These spikes are quite noticeable compared to any other background program I'm running..Yeah, I'd say that's probably normal - I get a 3-11% constant CPU usage from BTSync on one of my quad core machines. Again, the amount of CPU usage does also depend on the actual number of files BTSync is continually monitoring. In my 3-11% constant CPU on a quad core case, BTSync is monitoring over 170,000 files(!) Quote Link to comment Share on other sites More sharing options...
salzrat Posted April 22, 2013 Author Report Share Posted April 22, 2013 I also have a lot of files, but the usage I give is really just btsync (the performance tab of btsync in process hacker)... Quote Link to comment Share on other sites More sharing options...
salzrat Posted April 22, 2013 Author Report Share Posted April 22, 2013 It's about 51.000 files, and it's only during the spkes. otherwise it's 0.3%. Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 22, 2013 Report Share Posted April 22, 2013 Sync will rescan folder every 10 minutes. This way Sync will verify that there were to file changes missed. I think 6% for this activity is ok. However we are optimizing the code, and it might be lower in next builds. Quote Link to comment Share on other sites More sharing options...
salzrat Posted April 22, 2013 Author Report Share Posted April 22, 2013 Ok I'm sorry, I misunderstood your question.btsync takes 6% every 10 seconds! during the scan activity every 10 minutes, the usage is much higher (it's 12%, i.e., it basically saturates 1 core for about 5 seconds, and on my laptop, also causes Intel turboboost to kick in!). With core I mean a "virtual" core - I have a quadcore with hyperthreading, but this is exposed as 8 cores, so full utilization of 1 core is reported as about 12% in process hacker. Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 22, 2013 Report Share Posted April 22, 2013 Could you please follow the steps here we will need logs to localize the problem. While 6% is not that high, Skype on my machine grabs 20%, we would like to see if there might be some issue. Quote Link to comment Share on other sites More sharing options...
salzrat Posted April 22, 2013 Author Report Share Posted April 22, 2013 Skype idles at about 0.2% on my machine, with "spikes" of about 0.8-1% every 30 seconds...I have already sent you logs regarding the file transfer speed for small files, that was on the same machine (the one i'm reporting this for was the "uploading" machine), so you could use those... Quote Link to comment Share on other sites More sharing options...
joncamfield Posted May 30, 2013 Report Share Posted May 30, 2013 I see very high CPU usage on my ubuntu 12.04 64bit box, and my debug.txt file is not gathering any logging data. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted May 30, 2013 Report Share Posted May 30, 2013 High CPU/Memory usage is currently a known issue across all platforms. The developers have said there will be improvements in subsequent updates - please see the unofficial FAQ Quote Link to comment Share on other sites More sharing options...
cyberto Posted January 25, 2014 Report Share Posted January 25, 2014 (edited) Hi I also noticed the comparatively high cpu usage. On my 2Core qnap NAS using top to monitor btsync uses 3.9% - 6% CPU. Compared to Dropbox which uses 0.1%. These numbers show when nothing is synced Would be nice if there would be some improvement Edited January 25, 2014 by cyberto Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.