[phpa] Re: files needed if using shm too?
- From: "Nick Lindridge" <nick@xxxxxxxxxxxxxxxxxxxxx>
- To: phpa@xxxxxxxxxxxxx
- Date: Wed, 27 Feb 2002 10:25:04 -0000 (GMT)
> Maybe a page which outputs 200K is a bit big ;-)
I'd say so. I'd click 'stop' and probably go to another site :-) Do you use
mod_gzip? That can reduce content size dramatically.
> Its running a customized Phorum-3.3.2 with some includes and so on ...
> with the output of around 200 KB of the page its also not really small.
> ;-) But I think the load on the database is simply negating the effect
> of phpa.
Not negating, but reducing. You'll always get a speed up, but if your
system has other bottlenecks then they could be a dominant factor.
> As far as I tested for now I get an increase of 30% with a concurrency
> of 10 (which is maybe a bit too high).
> I will run some more tests tomorrow and give you some feedback on it.
The concurrency level doesn't seem to make a huge difference, although the
additional overhead does reduce the number of pages / sec by a bit.
> That brings me to a feature request. ;-)
> Sorry if I compare it to some comparing project but APC has some nice
> things like using more than one 32 MB-segment and allocating the
> shm-segments on the fly. So there are only the number of shm-segments
> used which were really needed. How about this in phpa?
Not at all, and I welcome the suggestions. I was also thinking about this
last night after talking to someone else, and it should be fairly straight
forward. From what I gather, APC took the decision to allocate multiple
small segments to reduce cache contention, but I have doubts about whether
that's efficient of effective. The PHPA cache design shouldn't stall that
often because it supports simulataneous reading and writing, and also
allows processes to be executing a script in the cache that at the same
time is being rewritten with a new version. But not having enough SHM *is*
potentially a problem, and so this is something that I'll look to put in
soon. It'll be a good 'Sunday afternoon' task :-)
nick
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
- Follow-Ups:
- [phpa] Re: files needed if using shm too?
- From: Thomas
- References:
- [phpa] Re: files needed if using shm too?
- From: Thomas Seifert
Other related posts:
- » [phpa] files needed if using shm too?
- » [phpa] Re: files needed if using shm too?
- » [phpa] Re: files needed if using shm too?
- » [phpa] Re: files needed if using shm too?
- » [phpa] Re: files needed if using shm too?
- » [phpa] Re: files needed if using shm too?
- [phpa] Re: files needed if using shm too?
- From: Thomas
- [phpa] Re: files needed if using shm too?
- From: Thomas Seifert