httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: Fix for error creating scoreboard on Tru64
Date Thu, 13 Jul 2000 22:36:56 GMT

I'm glad 80 worked, but I have hated the magic 40 since I added it.  It
would be REALLY nice to be able to get this fudge factor from MM
itself.  This would let us add the correct fudge factor on each
machine.  I may look into this at some point.

Ryan
> Hi,
>     I could not get httpd to work, it kept complaining about not being
> able to create the scoreboard. To make a long story shorter... 
> There is a fudge factor built into ap_shm_init() for the total size
> of the scoreboard. This fudge is currently 40 and is used to cover 
> the overhead of the mm_malloc process. This number is too small on
> alpha. I doubled the number to 80 and httpd feels much better, 
> and even is serving me pages !
> 
> If I understand the mm code right... the fudge should be based on
> sizeof(struct mem_chunk) which is 24 on alpha, so 40 might have
> been close, but 80 does work :-)
> 
> file is src/modules/mpm/mpmt_pthread/scoreboard.c
> 	
> *** scoreboard.c.orig	Thu Jul 13 17:48:58 2000
> --- scoreboard.c	Thu Jul 13 18:18:29 2000
> ***************
> *** 104,110 ****
>       const char *fname;
>   
>       fname = ap_server_root_relative(p, ap_scoreboard_fname);
> !     if (ap_shm_init(&scoreboard_shm, SCOREBOARD_SIZE + NEW_SCOREBOARD_SIZE + 40,
fname, p) != APR_SUCCESS) {
>           ap_snprintf(buf, sizeof(buf), "%s: could not open(create) scoreboard",
>                       ap_server_argv0);
>           perror(buf);
> --- 104,110 ----
>       const char *fname;
>   
>       fname = ap_server_root_relative(p, ap_scoreboard_fname);
> !     if (ap_shm_init(&scoreboard_shm, SCOREBOARD_SIZE + NEW_SCOREBOARD_SIZE + 80,
fname, p) != APR_SUCCESS) {
>           ap_snprintf(buf, sizeof(buf), "%s: could not open(create) scoreboard",
>                       ap_server_argv0);
>           perror(buf);

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message