I first flagged this up in May, but I note several posts on the topic of
"7.6 eating 100% CPU" so maybe it's already being addressed...

After a virgin 7.6 finishes the initial scan, the auto-rescan kicks in.
The first thing it does is log hundreds of messages along the lines of:


Code:
--------------------
    [10-08-17 22:38:09.7042] Slim::Utils::AutoRescan::Stat::Async::__ANON__ 
(70) Stat change: /music/misc (cur mtime 1281951633, db 1281976932, cur size: 
3584, db 0)
  [10-08-17 22:38:09.7045] Slim::Utils::AutoRescan::fsevent (142) File system 
event(s) detected: /music/misc
--------------------


There doesn't appear to be any pattern to the items chosen, but in each
case both the size and mtime are different, yet nothing has changed on
the filesystem. This doesn't appear to do any harm, but is a little
puzzling.

The next thing which happens (and this -is- annoying) is that the
auto-rescanner seems to go into a loop:


Code:
--------------------
    [10-08-17 22:40:58.1891] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 22:41:01.5512] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 22:41:01.5515] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 22:41:01.5517] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 22:41:01.6222] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  [10-08-17 22:41:01.6225] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 22:41:03.7727] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 22:41:03.7730] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 22:41:03.7732] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 22:41:03.8629] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  [10-08-17 22:41:03.8632] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 22:41:06.1308] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 22:41:06.1311] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 22:41:06.1313] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 22:41:06.2023] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  [10-08-17 22:41:06.2026] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 22:41:07.6192] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 22:41:07.6194] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 22:41:07.6197] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 22:41:07.6905] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  .
  .
  .
  [10-08-17 23:14:45.8993] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 23:14:49.0473] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 23:14:49.0475] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 23:14:49.0478] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 23:14:49.1184] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  [10-08-17 23:14:49.1187] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 23:14:52.3550] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 23:14:52.3552] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 23:14:52.3555] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 23:14:52.4270] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  [10-08-17 23:14:52.4273] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
  [10-08-17 23:14:55.6664] Slim::Utils::Scanner::Local::__ANON__ (215) Removing 
deleted files (0)
  [10-08-17 23:14:55.6666] Slim::Utils::Scanner::Local::__ANON__ (268) Scanning 
new files (0)
  [10-08-17 23:14:55.6669] Slim::Utils::Scanner::Local::__ANON__ (321) 
Rescanning changed files (0)
  [10-08-17 23:14:55.7383] Slim::Utils::AutoRescan::Stat::shutdown (99) 
Stopping stat monitoring
  [10-08-17 23:14:55.7387] Slim::Utils::AutoRescan::Stat::watch (47) Starting 
stat monitoring for /music, interval 600
--------------------


As you can see I let this run for about half-an-hour (eating 100% of
one CPU) then I killed it and restarted it with auto-rescan disabled. 

I guess the FreeBSD version is still walking the tree rather than using
kqueue/kevent, so maybe this will go away if Andy ever writes an
inotify-a-like for BSD. At the moment, auto-rescan on this platform
still seems pretty broken.


-- 
pallfreeman
------------------------------------------------------------------------
pallfreeman's Profile: http://forums.slimdevices.com/member.php?userid=37667
View this thread: http://forums.slimdevices.com/showthread.php?t=81304

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to