|
|
Question : Making Apache use both processors on a dual processor system
|
|
Hello,
I just installed a second processor ( Xeon 3.06Ghz 512k L2 Cache) in my HP DL380 G3 last night it is recognized by the BIOS and upon checking the kernel that is currently loaded it is the SMP kernel. I just did a fresh install of Ubuntu 8.04 Server. I loaded the lamp package during install. Upon installing an application that uses apache and php and then trying to run the application while running TOP it is showing 4 processors (I believe this is because of the hyper threading in the processors) However only the one processor is being utilized by apache and it is putting it to 100% utilization. How can I make it so that apache spreads the work between both processors ?
|
Answer : Making Apache use both processors on a dual processor system
|
|
You will not make apache to use more than one cpu per one request. But if You have some cpu intensive page, and You will make four concurrent connections, You will see that apache is using all four cpus(Yes - HT makes them four).
Another possibility is to use multithreading in application spawned from apache (CGI/php/java/etc.)
|
|
|
|