Unix Technical Forum

CPU load and Slackware 11

This is a discussion on CPU load and Slackware 11 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I'm noticing that Slackware 11 consistently uses at least 40% of my CPU at all times. Am I the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 07:37 PM
Ralph Alvy
 
Posts: n/a
Default CPU load and Slackware 11

I'm noticing that Slackware 11 consistently uses at least 40% of my CPU at
all times. Am I the only one noticing this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:38 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: CPU load and Slackware 11

Ralph Alvy wrote:

> I'm noticing that Slackware 11 consistently uses at least 40% of my
> CPU at all times. Am I the only one noticing this?


What does "top" list as the process using the most CPU?

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:38 PM
Ralph Alvy
 
Posts: n/a
Default Re: CPU load and Slackware 11

Sylvain Robitaille wrote:

> Ralph Alvy wrote:
>
>> I'm noticing that Slackware 11 consistently uses at least 40% of my
>> CPU at all times. Am I the only one noticing this?

>
> What does "top" list as the process using the most CPU?
>

Well, when I came to the office, I found the problem not there. The
difference between my home box, where the problem exists, is that home box
has a clean install of Slack 11, and the office box has a Slack
installation that was a gradual complete upgrade of all packages from 10.2
to 11.

That said, I remember the process that occupied more of the CPU at home than
other processes on the same box was UDEV.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:38 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: CPU load and Slackware 11

Ralph Alvy wrote:

> I remember the process that occupied more of the CPU at home than
> other processes on the same box was UDEV.


I'm afraid that someone else will have to offer help. I have no
experience at all with udev. Does the system at work (without the same
problem) perhaps not have udev enabled?

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 07:38 PM
Loki Harfagr
 
Posts: n/a
Default Re: CPU load and Slackware 11

Le Mon, 30 Oct 2006 17:45:13 +0000, Ralph Alvy a écrit*:

> Sylvain Robitaille wrote:
>
>> Ralph Alvy wrote:
>>
>>> I'm noticing that Slackware 11 consistently uses at least 40% of my
>>> CPU at all times. Am I the only one noticing this?

>>
>> What does "top" list as the process using the most CPU?
>>

> Well, when I came to the office, I found the problem not there. The
> difference between my home box, where the problem exists, is that home box
> has a clean install of Slack 11, and the office box has a Slack
> installation that was a gradual complete upgrade of all packages from 10.2
> to 11.
>
> That said, I remember the process that occupied more of the CPU at home than
> other processes on the same box was UDEV.



This is "moving land" on "moving sands" so I'll just have a question :-)
Can you get sure you're not using udev and hotplug simulteanously ?
If not certain of the answer you can try to :
# chmod -x /etc/rc.d/rc.hotplug

and reboot

then if all works fine try and put the monkey back at work
# chmod +x /etc/rc.d/rc.hotplug

But, is it for real that in the /etc/rc.d/ you don't have any
file named *.new ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 07:38 PM
Ralph Alvy
 
Posts: n/a
Default Re: CPU load and Slackware 11

Loki Harfagr wrote:

> Le Mon, 30 Oct 2006 17:45:13 +0000, Ralph Alvy a écrit*:
>
>> Sylvain Robitaille wrote:
>>
>>> Ralph Alvy wrote:
>>>
>>>> I'm noticing that Slackware 11 consistently uses at least 40% of my
>>>> CPU at all times. Am I the only one noticing this?
>>>
>>> What does "top" list as the process using the most CPU?
>>>

>> Well, when I came to the office, I found the problem not there. The
>> difference between my home box, where the problem exists, is that home
>> box has a clean install of Slack 11, and the office box has a Slack
>> installation that was a gradual complete upgrade of all packages from
>> 10.2 to 11.
>>
>> That said, I remember the process that occupied more of the CPU at home
>> than other processes on the same box was UDEV.

>
>
> This is "moving land" on "moving sands" so I'll just have a question :-)
> Can you get sure you're not using udev and hotplug simulteanously ?
> If not certain of the answer you can try to :
> # chmod -x /etc/rc.d/rc.hotplug
>
> and reboot
>
> then if all works fine try and put the monkey back at work
> # chmod +x /etc/rc.d/rc.hotplug
>
> But, is it for real that in the /etc/rc.d/ you don't have any
> file named *.new ?


When I make rc.hotplug not executable and reboot. I still get the same CPU
minimum usage of 40% at all times. And I have no *.new files in /etc/rc.d.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 07:38 PM
Ralph Alvy
 
Posts: n/a
Default Re: CPU load and Slackware 11

Is there anything wrong with my putting

/etc/rc.d/rc.udev restart

in my rc.local file? The reason I ask is that running that in terminal
normalizes my CPU usage back to 0%.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 07:39 PM
Chris Sorenson
 
Posts: n/a
Default Re: CPU load and Slackware 11

Ralph Alvy wrote:
> Is there anything wrong with my putting
>
> /etc/rc.d/rc.udev restart
>
> in my rc.local file? The reason I ask is that running that in terminal
> normalizes my CPU usage back to 0%.


My guess would be that as you did your gradual upgrade from 10.2 to
11.0, something got missed in the rc files. In 11.0, udev is in
rc.udev, rc.hotplug, rc.S, and rc.M.

If you get those files from the 11.0 installation media (they're called
rc.udev.new, etc.) it might solve the problem so you don't have to
run the udev restart command in rc.local.

Udev is probably hanging due to a race condition from mismatched rc
scripts. or something...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 07:39 PM
Ralph Alvy
 
Posts: n/a
Default Re: CPU load and Slackware 11

Chris Sorenson wrote:

> Ralph Alvy wrote:
>> Is there anything wrong with my putting
>>
>> /etc/rc.d/rc.udev restart
>>
>> in my rc.local file? The reason I ask is that running that in terminal
>> normalizes my CPU usage back to 0%.

>
> My guess would be that as you did your gradual upgrade from 10.2 to
> 11.0, something got missed in the rc files. In 11.0, udev is in
> rc.udev, rc.hotplug, rc.S, and rc.M.
>
> If you get those files from the 11.0 installation media (they're called
> rc.udev.new, etc.) it might solve the problem so you don't have to
> run the udev restart command in rc.local.
>
> Udev is probably hanging due to a race condition from mismatched rc
> scripts. or something...


Actually, the box where I was getting the minimum 40% CPU usage is the one
where I installed Slack 11 with a clean install from CDs. The box where I
gradually upgraded from 10.2 to 11.0 via Current, was the one with 0% CPU
usage.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 07:39 PM
Loki Harfagr
 
Posts: n/a
Default Re: CPU load and Slackware 11

Le Tue, 31 Oct 2006 04:27:09 +0000, Ralph Alvy a écrit*:

> Is there anything wrong with my putting
>
> /etc/rc.d/rc.udev restart
>
> in my rc.local file? The reason I ask is that running that in terminal
> normalizes my CPU usage back to 0%.


There's nothing wrong to do it as a working patch while we could try and
find and solve the origin of the problem :-)

I had this type of issue sometimes and it was always either :

- one device trying to be set by hotplug and udev and the fight
was an horrible thing to view (I spot it with /sbin/bootchartd)

or:

- on a "udev only" system a device was claiming for an IQ a bit too soon.
this would be the case you're on, if so the "correct patch" would be to
identify which one it is and blacklist it, the "correct behaviour" would
be to write a specific udev rule dedicated to it, but that's a dancing
pair of scissors :-)

It may be self-corrected in one of the next three hundreds releases
of udev, that'd be about a week or two to wait ;D)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com