Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

smp apache processes problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Help for the Apache Server's Auth Env!  
Author Message
jurgen

External


Since: Mar 17, 2004
Posts: 3



(Msg. 1) Posted: Wed Mar 17, 2004 3:28 pm
Post subject: smp apache processes problem
Archived from groups: alt>apache>configuration (more info?)

Hi,

I don't know if my question is off-topic, but here goes:

I have apache-1.3.29 running on a single cpu P4 with Slackware 9.0
installed with kernel 2.4.20. The apache binary is compiled on this machine.

I the same binary (scp-ed) running on a dual AMD Duron with Redhat 8.0
installed with kernel 2.4.18-14smp.

both apaches have 5 listening processes running.

Both apache machines can start apache, the single cpu machine equally
devides load over the 5 processes, but if we check the dual cpu machine,
we see that only 1 process receives all the work, and the other 4
processes stay idle.

Does anyone have any idea on why this is happening?
Can the fact that a binary (dynamically) compiled on a single cpu
machine is running on a SMP machine be the cause of all problems?

Both machines were tested using a few machines running scripts to
generate over 60 requests/sec.


Feedback is highly apreciated.


--

Jürgen -R-


"I don't know, but I will find out!"

 >> Stay informed about: smp apache processes problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Mar 17, 2004 3:28 pm
Post subject: Re: smp apache processes problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jurgen Haan <jurgen.TakeThisOut@fake.dom> wrote:
 > devides load over the 5 processes, but if we check the dual cpu machine,
 > we see that only 1 process receives all the work, and the other 4
 > processes stay idle.
 > Does anyone have any idea on why this is happening?

Evidently the dual processor machine is so fast that only one
process is enough to handle the requests.

Davide

--
| Due to circumstances beyond your control, you are master of your fate
| and captain of your soul.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: smp apache processes problem 
Back to top
Login to vote
jurgen

External


Since: Mar 17, 2004
Posts: 3



(Msg. 3) Posted: Wed Mar 17, 2004 4:25 pm
Post subject: Re: smp apache processes problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 > Jurgen Haan <jurgen RemoveThis @fake.dom> wrote:
 >
  >>devides load over the 5 processes, but if we check the dual cpu machine,
  >>we see that only 1 process receives all the work, and the other 4
  >>processes stay idle.
  >>Does anyone have any idea on why this is happening?
 >
 >
 > Evidently the dual processor machine is so fast that only one
 > process is enough to handle the requests.
 >
 > Davide
 >

Don't know about that, the 5 forks are already available to the system.
on the single cpu machine situation is likely to be something like the
folowing:
httpd: 4.5% CPU
httpd: 4.3% CPU
httpd: 4.6% CPU
httpd: 4.8% CPU
httpd: 4.5% CPU
(This based on a real situation, don't know the exact figures, but each
process had the same amount of cpu usage, and it was well below 50%
combined)
This isn't too much load, is it? But still the load is spread amongst
the available processes.

On the dual machine, it might be something like this:
httpd: 28.2% CPU
httpd: idle
httpd: idle
httpd: idle
httpd: idle

In the test situation, the dual machine had a constant load of about 1.3

One more note to bring the whole thing in perspective:
single CPU: 2GHz
dual CPU: 2* 700MHz
--

Jürgen -R-


"I don't know, but I will find out!"<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: smp apache processes problem 
Back to top
Login to vote
jurgen

External


Since: Mar 17, 2004
Posts: 3



(Msg. 4) Posted: Wed Mar 17, 2004 4:51 pm
Post subject: Re: smp apache processes problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Eek! never mind this problem.

Apache is working perfectly.
It seems that the machines use different TOP (linux proces monitor)
versions.
For some strange reason, the lower version top sees the forked processes
of apache as threads. What appears to be one big cpu hogging process is
in reality the apache master processes AND the forked processes combined
together. Since apache 1.3.29 does not support threads (instead it uses
a number of seperate processes) this is a faulty way of displaying
apache procs.

The newer top version displays the processes as seperate processes
(different PIDs, no interproces communication).

So what appeared to be an Apache problem is in reality a problem with
displaying the processes.

--

Jürgen -R-


"I don't know, but I will find out!"
 >> Stay informed about: smp apache processes problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
too long processes - Hello, My server is running apache 1.3 and for severals weeks some processes don't want to stop. When i send a 'top' command i have more than 18 processes running and all are httpd. moreover this processes are running during long long time and my whole....

cannot start child processes? - I'm guessing this has been posted before, but since i'm new to the group, here it is again. When I try to run a cgi-script I get and internal server error and the following error in my error_log: "couldn't spawn child process:" This is runnin...

problem with apache - I have installed in my computer a packet with Apache-php-mysql .......runing under windows . All is fine , but , the external users can't open the page ..... they see the next message 'you don't have permission to access to this server ' I think that is...

Apache run problem - Using Fedora Core 1 and apache 2.0.48 I am having problems starting the server up. This has previously worked and I have no idea what I have done to break it. Running apachectl -t tells me "Syntax OK". I can run "apachectl -k start"...

Apache problem. - receltly, i set up a linux server(=fedora, x86) with APM. APM consists of : apache 1.3.29 php 4.3.4 mysql 3.23.58 But i had a problem with php. i use mozilla, mozilla firebird and IE as web browsers. mozilla and IE loads php files correctly, but M/F..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]