 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

9th May 2010, 08:19 PM
|
 |
Registered User
|
|
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 100

|
|
|
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.
__________________
Often the only way to do a job right is to do a laughable job at it.
My advice is generally cheap and saturated with laziness, but it might work, or I wouldn't have posted it.
|

9th May 2010, 09:09 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092

|
|
|
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.
|

9th May 2010, 09:12 PM
|
 |
Registered User
|
|
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 100

|
|
|
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. :-)
__________________
Often the only way to do a job right is to do a laughable job at it.
My advice is generally cheap and saturated with laziness, but it might work, or I wouldn't have posted it.
|

9th May 2010, 10:26 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092

|
|
|
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)
|

9th May 2010, 11:26 PM
|
 |
Registered User
|
|
Join Date: Sep 2009
Location: Teetering between the edge of insanity and the border of all that's weird
Posts: 100

|
|
|
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.
__________________
Often the only way to do a job right is to do a laughable job at it.
My advice is generally cheap and saturated with laziness, but it might work, or I wouldn't have posted it.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 19:13 (Saturday, 18-05-2013)
|
|
 |
 |
 |
 |
|
|