2.3.10

Started by mario, December 10, 2010, 03:32:46 PM

Previous topic - Next topic

mario

I made some performance tests. Best setting for PHP stuff (for me!)

Changed
FcgidMaxProcesses from 8 to 100
FcgidProcessLifeTime from 240 to 120
FcgidMaxRequestsPerProcess 500 to 10000

added
FcgidFixPathinfo 1

That change increased the req/s from 197 to 589
Time for the 10k requests went down from 53 secs to 16

Tested on XP SP3 (32bit) Intel Core Duo E7300 @ 2.66GHz 1.93GB RAM

Apache changed settings from default
ThreadsPerChild 500
access log turned off
ab test
ab -c 450 -n 10000 http://127.0.0.1/php/observer.php


Before I made those changes I noticed that the CPU was often idle even due high server load.

The html test variant are 761 req/s time 13 secs


------ edit -------

The info.lua script
took 27 secs and 366 req/s

Gregg

Quote from: mario on December 20, 2010, 02:08:21 PM
The automatic generated config does that already only existing configs need the update :P

Yes, which I use cause it's already set up the way I want it. Drop on drive and start it up.

Gregg

send me a zip with files and changes you think should change from what went in 2.3.10. I do see the change in threads per child to 150, blew up that one test for me till I gave it time to cool down from the previous test, I don't like that. I see it was changed from 250 to "match Unix" :-X  back 3 years ago yesterday. It's 150 in 2.2 also.

mario

You mean r606133

I've changed only the extra/httpd-fcgid.conf, increased the ThreadsPerChild and disabled the access to serv faster. Well that for an intranet. on the www I hjave turned on logs.  ;)

Those are only default values. it is idiotic not to change the values for your needs and not to purge the config files. Mean remove not needed comments. Create your own include files.

mario

What I also don't like is http://svn.apache.org/viewvc?rev=1052419&view=rev
Symlinks don't exist in Windows at all.

Sob

Symlinks do exist, at least in Win7 (maybe in Vista too, but I'm not sure, I skipped that OS). Check mklink.exe. And my quick test says they're supported by Apache. Enabling or disabling FollowSymLinks makes difference.

Gregg

The official word on the subject
https://issues.apache.org/bugzilla/show_bug.cgi?id=50395

Personally, I think the default ought to be None, but that's just me.

Sob

shortcut (.lnk file) != symlink

Gregg

True, but Bill's first sentence is "FWIW, Junctions are already supported as symlinks." ... whatever Junctions are

Sob

From today's point of view junctions are strange kind of limited links for directories. Exception is ability to mount otherwise unmounted filesystem into empty directory. AFAIK it's not possible using soft links.
For current httpd there's no difference between them. Link is when APR reports it to be APR_FINFO_LINK. And it does that when Windows file attributes contain FILE_ATTRIBUTE_REPARSE_POINT (generally something that points to something else) and it's set for both junctions and soft links.