On FreeBSD 6.2-RELEASE-p6, starting or restarting MPD 4.2.2 configured as a
PPPoE server, causes all the CPU to be used for about two minutes. top shows 70
and 30 percent on average of the CPU being used on the system and user states
respectively.

top's header:

last pid: 78826;  load averages:  0.35,  0.08,  0.03    up 0+02:39:23  13:40:48
84 processes:  2 running, 82 sleeping
CPU states: 32.0% user,  0.0% nice, 68.0% system,  0.0% interrupt,  0.0% idle

But even during these two minutes after starting up when the CPU is 0% idle,
MPD is ready to accept connections, as shown by the logs:

Jul 18 12:19:27 floor mpd: process 51489 started, version 4.2.2 ([EMAIL 
PROTECTED] 21:16 15-Jul-2007)
Jul 18 12:19:27 floor mpd: Label 'startup' not found
Jul 18 12:19:27 floor mpd: CONSOLE: listening on 127.0.0.1 2323
Jul 18 12:19:27 floor mpd: web: listening on 127.0.0.1 8080
Jul 18 12:19:27 floor mpd: [pppoe_link_0] using interface ng0
Jul 18 12:19:27 floor mpd: [pppoe_link_1] using interface ng1
Jul 18 12:19:27 floor mpd: [pppoe_link_2] using interface ng2
 ... similar lines ...
Jul 18 12:19:28 floor mpd: [pppoe_link_198] using interface ng198
Jul 18 12:19:28 floor mpd: [pppoe_link_199] using interface ng199
Jul 18 12:19:28 floor mpd: PPPoE: waiting for connection on rl0:, service "home"
Jul 18 12:19:28 floor mpd: Incoming PPPoE connection request via rl0: for 
service "home" from 00:0c:29:d2:cb:50
Jul 18 12:19:28 floor mpd: [pppoe_link_0] Accepting PPPoE connection
Jul 18 12:19:28 floor mpd: [pppoe_link_0] opening link "pppoe_link_0"...

Is this behavior normal?

And how can I find out what's using all the CPU? I'd have expected at least the
32% in the user state to be shown by top, but all processes listed have WCPU
less than 1%.

The configuration files are large so I made them available on the following
URLs:

http://www.thiago.joi.com.br/andre/mpd.conf
http://www.thiago.joi.com.br/andre/mpd.links


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mpd-users mailing list
Mpd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mpd-users

Reply via email to