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
-- Robert Orben
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php