You are not logged in.

#1 2008-01-27 10:05:33

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Online videos (e.g. YouTube) and high cpu usage

Hi guys. When I am loading an online video player site like YouTube, my cpu usage is about 88-90% !!!
I know that videos are using a big part of cpu but I think that 88-90% it's a huge part hmm

My CPU: 1.60M Pentium HP Laptop with CPU Scaling enabled. Any ideas? Thanks

Last edited by k3rn31 (2008-01-27 10:06:10)


~k3rn31

Offline

#2 2008-01-27 13:27:33

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: Online videos (e.g. YouTube) and high cpu usage

Not sure what the problem could be, my CPU usage peaks around 40-50% occasionally when viewing YouTube videos. I'm on a 1.6GHz Celeron M, which is pretty much your Pentium with half the cache and no speedstep. Flash is a resource hog, but there is no reason it should be using that much CPU.

Is it a steady 90% usage?
Which video chipset do you have?

Offline

#3 2008-01-27 15:12:57

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: Online videos (e.g. YouTube) and high cpu usage

sounds like the CPU scaling isn't kicking in to up the speed when needed.
running cpufreq-info should show your current CPU speed.. try it when watching a video and see if it scales up.

Offline

#4 2008-01-27 16:30:56

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Online videos (e.g. YouTube) and high cpu usage

Also check the conf file for the cpufreq.  If it's like mine, if it sees a video application running it automatically maxes out the processor.  The cpu freq rules were set up to do that.

Last edited by mrunion (2008-01-27 16:31:28)


Matt

"It is very difficult to educate the educated."

Offline

#5 2008-01-27 17:35:31

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

My cpufreq-info when I am watching the video:

$ cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 1.20 GHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.20 GHz
  available cpufreq governors: userspace, powersave, performance
  current policy: frequency should be within 1.20 GHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz.

The conky displays that firefox (with YouTube video opened) is taking the 60-65% of CPU.

Is the cpu scaling not configured correctly?

@mrunion: what parameter to check in the conf? Thank you


~k3rn31

Offline

#6 2008-01-27 17:52:43

xdeusx
Member
Registered: 2007-10-15
Posts: 168

Re: Online videos (e.g. YouTube) and high cpu usage

i always thought flash was responsible for this...

Offline

#7 2008-01-27 17:54:54

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

xdeusx do you have the same probs?

Anyone to help me ?

Last edited by k3rn31 (2008-01-27 17:55:03)


~k3rn31

Offline

#8 2008-01-27 18:01:53

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: Online videos (e.g. YouTube) and high cpu usage

I have the same problem. I think it's a problem with this ugly proprietary flash plugin- do you use it, too?. You could try gnash, it's supposed to support playback of youtube videos.

Offline

#9 2008-01-27 18:02:37

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

Yes I am using flash plugin. Gnash? Is it lightweight?

I think that it has problems with Firefox

Last edited by k3rn31 (2008-01-27 18:03:25)


~k3rn31

Offline

#10 2008-01-27 18:16:41

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: Online videos (e.g. YouTube) and high cpu usage

To be honest, I never tried it. It's open source, just give it a try :-)

Offline

#11 2008-01-27 18:46:38

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

I will but If anyone has any ideas how to fix it with flash plugin, please post wink

Thanks


~k3rn31

Offline

#12 2008-01-27 19:49:12

jdhore
Member
From: NYC
Registered: 2007-08-01
Posts: 156

Re: Online videos (e.g. YouTube) and high cpu usage

I have no suggestions of how to fix it, but on my old P4 2.4GhZ (Northwood) box, i had the same issue...Your only real choices are to not use flash, to download all the flash videos you want to watch and watch them locally or to use something like swfdec or Gnash.

Offline

#13 2008-01-27 20:53:16

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

Ok. Thanks. If anyone else has another solution, please post


~k3rn31

Offline

#14 2008-01-28 01:08:05

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Online videos (e.g. YouTube) and high cpu usage

From /etc/cpufreqd.conf:

# use performance mode if I'm watching a movie
# I don't care for batteries! 
# But don't heat too much.
[Rule]
name=Movie Watcher
programs=xine,mplayer,gmplayer
battery_interval=0-100
acpi_temperature=0-60
#cpu_interval=70-100
profile=Performance High
[/Rule]

Matt

"It is very difficult to educate the educated."

Offline

#15 2008-01-28 08:46:51

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

I don't have this file. I must create it?

I have configured cpudyn acpid for CPU Scaling.

Last edited by k3rn31 (2008-01-28 08:54:04)


~k3rn31

Offline

#16 2008-01-28 13:31:50

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Online videos (e.g. YouTube) and high cpu usage

I don't use cpudyn.  you shouldn't need this file with cpudyn I wouldn't think.


Matt

"It is very difficult to educate the educated."

Offline

#17 2008-01-28 14:05:57

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: Online videos (e.g. YouTube) and high cpu usage

mrunion wrote:

From /etc/cpufreqd.conf:

# use performance mode if I'm watching a movie
# I don't care for batteries! 
# But don't heat too much.
[Rule]
name=Movie Watcher
programs=xine,mplayer,gmplayer
battery_interval=0-100
acpi_temperature=0-60
#cpu_interval=70-100
profile=Performance High
[/Rule]

Yes but how I use this ^ ?


~k3rn31

Offline

Board footer

Powered by FluxBB