httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@ast.cam.ac.uk (David Robinson)
Subject Re: One more patch for 1.0.0
Date Wed, 13 Dec 1995 17:22:00 GMT
>        I installed it here, but this morning my load shot up to 250
>and I had to reboot. I'm not so sure this is the full solution.

Well, I've uploaded a new version of 23.mmap which uses shared memory
for the scoreboard; you could try that. I would recommend that
you apply it to an otherwise clean 1.0.0 that _has_ had 59.scoreboard_race
applied.

  Subject: Use shared memory for scoreboard
  Affects: conf.h, http_main.c
  ChangeLog: Use mmap() to allocated shared memory for the scoreboard on
             Solaris, SunOS, Digital UNIX, and BSDI. It should work on
             most of the other architectures.
  Comments: This avoids httpd needing a file in /tmp; this can cause problems
            on systems where /tmp is cleared by a cron job.

It defaults to _not_ using shared memory unless it knows it works on
your system. If your OS is not one of those supported, but it _does_ have
mmap, then try defining HAVE_MMAP in the OS part of conf.h.

There are two types of mmap used, depending on whether MAP_ANON
is available; either mmap of MAP_ANON pages (BSD style) or mmap
of /dev/zero (Sun style.)

 David.

Mime
View raw message