Strange Shared Memory values: Apache::SizeLimit on 5.3-STABLE

Holger Kipp hk at alogis.com
Thu Apr 14 09:25:46 PDT 2005


Hello,
 
I am using Apache::SizeLimit and have the folowing problem:
 
Process exits with the correct SIZE-Limit, but the
SHARE-Size I get look a bit strange. As a result of
this, checking for MAX_UNSHARED seem not to work.

here a few results:
 
exiting at SIZE=60004 KB  SHARE=11733744 KB  REQUESTS=2058 LIFETIME=55408
exiting at SIZE=60036 KB  SHARE=11688304 KB  REQUESTS=2043 LIFETIME=55154
exiting at SIZE=76088 KB  SHARE=1009904 KB  REQUESTS=166 LIFETIME=1988
exiting at SIZE=60084 KB  SHARE=9565628 KB  REQUESTS=1686 LIFETIME=54152
 
Anyone has an idea why SHARE goes up to 11GB or more?
Is this a badly written application, or could this also be
BSD::Resource returning wrong values here? Unfortunately
I cannot check the application itself...
 
top gives eg the following values for memory useage: 61828 57556 (Size, Res)
This is on a 2GB HP ProLiant Dual Xeon System with FreeBSD 5.3-STABLE.
 
Any help and/or explanation welcome!
Especially: how can a single process have that much shared memory with
a total of 350-400MB physical memory in use.

 
 
Regards,
Holger Kipp


More information about the freebsd-stable mailing list