Constant CPU/Disk activity on NAS and MacBook Pro


terafin

Recommended Posts

My Laptop and NAS SSDs are constantly being woken, and both the CPUs are constantly running at 10% or so CPU.

Attached is a debug log from my mac, happy to do so from my NAS too, but can't figure out how to do it.

Any ideas about how to quiet them down? I love the sync client, but it's killing my battery life - and likely impacting the SSDs :(

Link to comment
Share on other sites

I tried that, sadly from logs it doesn't look like the re-scan, it appears to be pinging back and forth to clients, as well as scanning disks:[20130519 14:46:30.193] Incoming connection from 10.0.1.201:20003

[20130519 14:46:30.344] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share 3D01228585AB14AFC849D5E36514802510695FCB

[20130519 14:46:30.344] Found peer for folder /Volumes/Rydia/bin E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.344] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share BA04BECC657B2C1D909046418535FEA63FCA9C5D

[20130519 14:46:30.344] Found peer for folder /Volumes/Rydia/Desktop E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.344] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share 01477C0E13B268157A0D2B76BF7A626A4D56DD51

[20130519 14:46:30.344] Found peer for folder /Volumes/Rydia/Documents E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.345] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share 432FA5EF96A2187075A199B00FC256FB305A0751

[20130519 14:46:30.345] Found peer for folder /Volumes/Rydia/Movies E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.345] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share 610ED024A291C88CC5D1F477D9084608AA01F685

[20130519 14:46:30.345] Found peer for folder /Volumes/Rydia/Pictures E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.346] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share D155CEC3D777E90787E420A559E071420B0EB84A

[20130519 14:46:30.346] Found peer for folder /Volumes/Rydia/Projects E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.346] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share BD9F3EE6BEDBCC1F942BFA683291AF27913E432C

[20130519 14:46:30.346] Found peer for folder /Volumes/Rydia/Settings E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.346] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share 1C6BC39796D72A774733B3495E9B28D300044892

[20130519 14:46:30.346] Found peer for folder /Volumes/Rydia/Music E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.347] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share A16D5D031C6CA1FB02E7BEB7BD6AE1BD42B84CCC

[20130519 14:46:30.347] Found peer for folder /Volumes/Rydia/Applications E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.347] Got ping (broadcast: 1) from peer 10.0.1.201:20003 (E91B9A4E6C12E9B455F5B80B5C316501945A2161) for share F38B66D87F5357DAA589C3C9129FDA0652222A34

[20130519 14:46:30.347] Found peer for folder /Volumes/Rydia/Games E91B9A4E6C12E9B455F5B80B5C316501945A2161 10.0.1.201:20003 direct:1

[20130519 14:46:30.375] Got id message from peer Yuna (E91B9A4E6C12E9B455F5B80B5C316501945A2161) 1.1.15

[20130519 14:46:30.375] Got state sync request from peer E91B9A4E6C12E9B455F5B80B5C316501945A2161

[20130519 14:46:30.375] Merge: processing get_root message, my hash: 7EECEBD3A99B5939214E94B8142EF185C561669A

[20130519 14:46:30.427] Merge: processing get_availability message, my hash: EBE2AE01371B0DDE40FD8668D169C3EE5FBF0EAB, prev hash: EBE2AE01371B0DDE40FD8668D169C3EE5FBF0EAB

[20130519 14:46:30.454] State sync finished for folder /Volumes/Rydia/Desktop

[20130519 14:46:31.040] Sending broadcast ping for share 3D01228585AB14AFC849D5E36514802510695FCB

Link to comment
Share on other sites

Interesting. I have not, however... I can't seem to see it anywhere? Where is that at?

It's a per-folder setting, which for devices with a "sync.conf" file it appears in the config file as "search_lan", whereas via the GUI it's simply a tick box that can be found via [select folder] -> [right-click folder] -> Show folder preferences -> Search LAN

Link to comment
Share on other sites

Rescanning of large folders can crater system performance. This is why all major OSes have an API for subscribing to changes to local volumes. By receiving notifications when a watched folder changes, there is no need to scan folders more than once. Should BitTorrent Sync be using this?

I don't know if a single cross-platform library exists for this, but the interface is pretty simple on each platform. Seek info on the FSEvents API on Mac, FindFirstChangeNotification on Windows, and inotify on Linux.

Dropbox uses this approach. Even with 1.5 million files, Dropbox remains idle when no changes have been made. If it were crawling these folders every ten minutes it would be unusable on a laptop or a desktop with a spinning disk.

Link to comment
Share on other sites

For me, BTSync uses 0.05% CPU usage nonstop AND it uses 2.5KB of network bandwidth every second, which is wasteful and it accumulates since I really want to run it nonstop in the background without it using up resources needlessly... Please do something about the constant 2.5Kbps usage.

If all your devices are on the same network, you can disabled the tracker, relay, and DHT options to reduce the amount of network traffic. Also, disabling the "Search LAN" option, and enabling the "rate_limit_local_peers" setting will significantly reduce the amount of network traffic

Link to comment
Share on other sites

This is what I mean by constant usage, this is even after I just removed Sync and re-installed it fresh, and I have ZERO shared folders, and I disabled all features, even auto-updates. The top graph is CPU usage, always over 0.05% and the bottom blue graph is network usage without ANY shares or secret configured at all. And Sync will ALWAYS stay above these values and constantly use resources.

XMxgjpu.png

Ahem, even though I'm running Sync on Win8 and not a Mac, at least you can see what I mean.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.