Opened 9 years ago
Last modified 8 years ago
#2296 reopened defect
100% cpu usage while stream cache is filling
Reported by: | curaga | Owned by: | beastd |
---|---|---|---|
Priority: | low | Component: | undetermined |
Version: | HEAD | Severity: | minor |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Summary of the bug: While the cache is filling, mplayer uses 100% cpu even though it can do nothing. On a slow server (/internet connection), it can take tens of seconds of high cpu use.
How to reproduce:
% mplayer -cache 16384 -cache-min 99 http://somestream SVN-r37699-5.2.0
Attachments (2)
Change History (9)
comment:1 by , 8 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 8 years ago
Linux 64-bit. Affects every stream.
Since this was on a 5 months old mplayer build, do you want me to check on latest?
comment:5 by , 8 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:6 by , 8 years ago
Checking further, it does not happen when launched manually in a terminal, only when launched by the browser via fork()/system(). The same URL and same arguments were used in both cases.
I wonder if it's due to the browser-forked one running on a VT, and the manual launch in an xterm.
comment:7 by , 8 years ago
I took oprofile runs from both. In the good run, mplayer and others are in the minority, in the bad run libc and mplayer are taking a ton of cpu.
what os?
there used to be a problem with the amount of updates to the command line causing cpu usage, but this was fixed long ago.