Closed Bug 449175 Opened 16 years ago Closed 15 years ago

<video> tag with ogg consumes too much system resource, 99% CPU.

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: BijuMailList, Unassigned, NeedInfo)

References

()

Details

(Keywords: perf)

NB: my PC is only single core, and it is old, so it may be a slow PC.

<video> tag with ogg consumes too much system resource, 99% CPU.

Steps:
 1. goto http://lachy.id.au/dev/markup/tests/html5/video/
 2. click on a testcase (say 001.html)
 3. wait till page is loaded and the <video> tag completed displaying
 4. ensure video is not running.
 5. open windows taskmanager
 6. user see very high CPU usage for firefox
 7. click back button of the browser, and note the start time.

Result:-
wait a lot and then only move to parent dir.
CPU usage very high for firefox 

Expected:-
Firefox should not wait to go back to the previous page
CPU usage not exceed 80% on firefox 


Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) 
Gecko/2008080403 Minefield/3.1a2pre
Keywords: perf
Additional note:-
High CPU usage will also happen even when the video is PAUSED or not started.
(On my PC Flash Player take High CPU usage to play movie but when paused CPU usage comes done to normal)

A work around to make Firefox responsive is:-
Pre-contion: open an additional BLANK tab on Firefox
1. When we are on web page with <VIDEO> tag.
2. click back button of the browser, or do the action you need.
3. then click the BLANK tab 

Firefox will perform action you did on step 2, then show blank tab after a delay. But less than the time required if we dont click the blank tab.

Bug 449159 was landed which addresses the 100% cpu during pausing. Can you confirm if the issues still occurs?
Steps in comment# 0 passed on
  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) 
  Gecko/20081028 Minefield/3.1b2pre

Still the CPU load is high while playing file at 
http://lachy.id.au/dev/markup/tests/html5/video/
that may be another enhancement bug.

Chris, what should we do with this bug?
updating libtheora to include the mmx code should also bring the cpu load down.
Bug 462082
FYI, going to http://www.rumblingedge.com/2008/11/09/mark-surman-interview-in-sept-08/ makes Fx3.1b1 eat 100% on my both CPU (Pentium 3.0 GHz with 4 Gb of RAM). Visiting the same page with the latest 3.1b2pre nightly makes the CPU to be only at 3%. Also, steps described in comment 0 do not generate any load with the latest nightly. IMO, this bug is now fixed or WFM.
Blocks: 476397
(In reply to comment #3)
> Steps in comment# 0 passed on
>   Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) 
>   Gecko/20081028 Minefield/3.1b2pre

So WFM

> Still the CPU load is high while playing file at 
> http://lachy.id.au/dev/markup/tests/html5/video/
> that may be another enhancement bug.
> 
> Chris, what should we do with this bug?

Bug 462667 should take care off other issues
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME

When access consumes memory, the CPU is too much. Need to improve memory issues, do not spend too much CPU to run faster

Try visiting http://nhactre.info or http://chamsoccanha.com to see CPU and Ram increase rapidly

Flags: needinfo?(BijuMailList)
You need to log in before you can comment on or make changes to this bug.