Re: sessions and trans-sid problem/question
| From: | Jason Wong | Date: | Fri, 22 Nov 2002 09:52:13 +0000 |
| Subject: | Re: sessions and trans-sid problem/question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125585@lists.php.net to get a copy of this message | ||
On Friday 22 November 2002 16:44, Jean-Christian Imbeault wrote:
> Jason Wong wrote:
> > If you set it 100, then _every_ request in which sessions are used, PHP
> > has to go through all the session files (by default stored in /tmp) and
> > check whether they have expired. If you have a busy server you could have
> > thousands of session files. Checking thousands of files at each request
> > is very time consuming.
>
> *That* I understand and agree with. What I was more interested in was
> the "concurrency" aspect. Why setting gc to 100 might cause problems
> with concurrency.
Well if you have a few requests per second, then each of those requests will
want to check through your thousands of session files meaning you will have
tens of thousands of disk accesses?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Never raise your hand to your children -- it leaves your midsection
unprotected.
-- Robert Orben
*/