[MPlayer-users] High X CPU usage after some time...

Alexandre CONRAD aconrad.tlv at magic.fr
Sat May 6 16:41:58 CEST 2006


Compn on #mplayer told me the following:

how do you startx? i bet it puts itself into running mode, perhapse you 
should ask in #xorg or find out how to set a cron job to continually? 
set X to sleep?

Could someone help me on this one ? I don't know much about linux 
processes yet.

Regards,



Alexandre CONRAD wrote:

> Hello all,
> 
> I'm having an mplayer running a 10 seconds xvid video in a loop from a 
> xinit syntax called by the /etc/rc.local (at the boot of the PC, a video 
> starts playing right away).
> 
> The CPU% takes about 10% for mplayer and 30% for X (X has a priority of 
> 14 and a STATUS of 'S' sleeping). After 20 minutes or so, mplayer is 
> still at 10% but X runs at 80% with a priority of 24 and a STATUS of 'R' 
> (running). But nothing changed ! It's still playing the same video over 
> and over again. Any idea why this could happend ?
> 
> Here is a "screenshot" of a "top -d 1 -b -p 2063,2095" :
> 
> 
> top - 20:43:05 up  1:17,  2 users,  load average: 3.34, 2.80, 2.16
> Tasks:   2 total,   0 running,   2 sleeping,   0 stopped,   0 zombie
> Cpu(s): 43.4% us,  7.1% sy, 36.4% ni,  0.0% id, 13.1% wa,  0.0% hi, 0.0% 
> si,  0
> Mem:    190248k total,   165192k used,    25056k free,     3328k buffers
> Swap:   393208k total,      120k used,   393088k free,    82220k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  2063 root      14  -1 27312 5596 4460 S 22.0  2.9  21:09.40 X
>  2095 root      15   0 32392  10m 5652 S  8.0  5.9   6:20.28 mplayer
> 
> 
> top - 20:43:06 up  1:17,  2 users,  load average: 3.34, 2.80, 2.16
> Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
> Cpu(s): 43.0% us,  9.0% sy, 24.0% ni,  0.0% id, 24.0% wa,  0.0% hi, 0.0% 
> si,  0
> Mem:    190248k total,   156684k used,    33564k free,     3428k buffers
> Swap:   393208k total,      120k used,   393088k free,    83888k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  2063 root      14  -1 27312 5596 4460 S 28.0  2.9  21:09.68 X
>  2095 root      16   0 32392  10m 5652 R 11.0  5.9   6:20.39 mplayer
> 
> 
> top - 20:43:08 up  1:17,  2 users,  load average: 3.24, 2.79, 2.16
> Tasks:   2 total,   2 running,   0 sleeping,   0 stopped,   0 zombie
> Cpu(s): 25.8% us, 64.5% sy,  0.0% ni,  0.0% id,  9.7% wa,  0.0% hi, 0.0% 
> si,  0
> Mem:    190248k total,   156260k used,    33988k free,     3496k buffers
> Swap:   393208k total,      120k used,   393088k free,    84000k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  2063 root      16  -1 27312 5596 4460 R 81.2  2.9  21:10.93 X
>  2095 root      16   0 32392  10m 5652 R  1.9  5.9   6:20.42 mplayer
> 
> 
> top - 20:43:09 up  1:17,  2 users,  load average: 3.24, 2.79, 2.16
> Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
> Cpu(s): 27.0% us, 73.0% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi, 0.0% 
> si,  0
> Mem:    190248k total,   157156k used,    33092k free,     3500k buffers
> Swap:   393208k total,      120k used,   393088k free,    84012k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  2063 root      17  -1 27312 5596 4460 R 88.1  2.9  21:11.81 X
>  2095 root      16   0 32392  10m 5652 S  1.0  5.9   6:20.43 mplayer
> 
> 
> I'm running MPlayer dev-CVS--4.1.0, mplayer-1.0-0.26.20060314.fc5. It 
> might not be an mplayer issue. But maybe someone experienced this before...
> 
> Regards,

-- 
Alexandre CONRAD - TLV
Research & Development
tel : +33 1 30 80 55 05
fax : +33 1 30 80 55 06
6, rue de la plaine
78860 - SAINT NOM LA BRETECHE
FRANCE




More information about the MPlayer-users mailing list