twonkymediaserver uses way too much CPU

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
alexr
Posts:1
Joined:Sun Dec 30, 2007 2:37 pm
Location:San Francisco, CA
twonkymediaserver uses way too much CPU

Post by alexr » Sun Dec 30, 2007 11:45 pm

I can tell because I hear the fans on my Power Mac Quad G5 kick up to full speed.

Sample clearly indicates that it's spinning through all the media folders and stat-ing all the files (with plenty of calls to getdirentries in between).

On the Mac, one should use fsevents for notification of changes to a directory tree instead of polling like this (wasting electricity as well).

Windows has file system change notifications also and Linux has inotify/dnotify as well.

Polling is badness.

Locked