Fedora Linux Support Community & Resources Center
  #1  
Old 9th May 2010, 08:19 PM
bendib Offline
Registered User
 
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 106
linuxfirefox
High CPU usage when starting services on FC11

Ok, so my server is doing fine, but there is one odd thing I would like to fix. When I start and stop services, the CPU is maxed out for about five seconds each time. The services start the same speed, but it still does this. Small things like lm_sensors don't do this, just things like httpd and sendmail. THis server was upgraded to Fedora 11 with a netinstall CD a few months ago.
__________________
What smells like cheese?
Reply With Quote
  #2  
Old 9th May 2010, 09:09 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,865
linuxfedorafirefox
Re: High CPU usage when starting services on FC11

Starting httpd starts a number of processes - there is the master daemon,
plus all of the active service daemons. Each service daemon must allocate
private memory, and that adds to the time the daemons start. You only
wait for the master daemon to start. Once it starts, it will start the service
daemons.

Sendmail is similar. When sendmail starts, it will start two daemons - one
for outside connections, one for internal delivery. The internal delivery must
scan several directories to identify any messages that are "in transit". The
CPU time will depend on how many messages there are. Any queued messages
for remote delivery will also be sent - and this can have one daemon per message.

Normally, the message queues are empty, so the only CPU time used will be
that for the initial startup, and first scan.

In both cases, the CPU time will be divided between disk activity and memory
allocations. Even though it lasts about 5 seconds (which is a bit long from my
point of view - I think it really is only about 2 seconds of actual CPU, the rest
is I/O scheduling and wait time) the actual time will depend on the amount of
available memory, and the processor(s) available for execution.
Reply With Quote
  #3  
Old 9th May 2010, 09:12 PM
bendib Offline
Registered User
 
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 106
linuxfirefox
Re: High CPU usage when starting services on FC11

My other machines do not do this. It's not just the services I mentioned above. Oh, and I'm not a noob, just so you know. I know, these forums are filled with them. :-)
__________________
What smells like cheese?
Reply With Quote
  #4  
Old 9th May 2010, 10:26 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,865
linuxfedorafirefox
Re: High CPU usage when starting services on FC11

Do they have anything to do with these services?

How many concurrent threads are configured - 1, 10, 50?

I've not noticed an issue on F11 here, but then my system
is a dual quad x86-64 with 8 GB of memory. My laptop
on the other hand, is always slow (750MHz PIII)
Reply With Quote
  #5  
Old 9th May 2010, 11:26 PM
bendib Offline
Registered User
 
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 106
linuxmozilla
Re: High CPU usage when starting services on FC11

Well, here is something that might have something to do with it I probably should have mentioned: I cp -a-ed my Fedora 11 install to a non-failing drive and then just edited /etc/fstab. All works fine, but I noticed a couple other apps not having to do with services do the same thing. It's not too big of a deal. This install has had the living crap used out of it, so it's not too surprising.
__________________
What smells like cheese?
Reply With Quote
Reply

Tags
cpu, fc11, high, services, starting, usage

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Cpu Usage. mrbones Using Fedora 11 14th September 2010 09:49 PM
Very high RAM usage. Cookies Using Fedora 3 9th January 2007 10:38 PM
CPU usage is high susu Hardware & Laptops 2 31st October 2006 06:00 AM
High CPU Usage posey Using Fedora 5 17th May 2006 12:42 AM
High CPU Usage Reflux Using Fedora 1 17th November 2004 02:37 AM


Current GMT-time: 19:58 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Kozeyevo - Ajdabiya - Neelankarai