Daemon Never Sleeping Longer Than 1 Second?


Recommended Posts

Hello everybody,


After having installed and configured btsync on my Synology NAS I have noticed that that the btsync process was constantly consuming cpu cycles.
By using strace, it appears that it wakes every seconds.
Here's the sequence of system calls done at each cycle:

1.008407 futex(0x34f15c, FUTEX_WAKE_PRIVATE, 1) = 00.000131 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2944, ...}) = 00.000544 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2944, ...}) = 00.000315 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2944, ...}) = 00.000328 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2944, ...}) = 00.000341 gettimeofday({1385367603, 787625}, NULL) = 00.000221 gettimeofday({1385367603, 787845}, NULL) = 00.000267 clock_gettime(CLOCK_REALTIME, {1385367603, 788114999}) = 0

I thought that btsync was using inotify (http://en.wikipedia.org/wiki/Inotify) or similar mechanism to be awaken only by modifications inside watched directories. So why does it needs to be awaken every second?

Edited by CoolRaoul
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.

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.