Re: publicfile on OpenBSD

"clemensF" <[email protected]> 23 Apr 2002 21:06:35 +0200
Newsgroups gmane.comp.djb.publicfile
Organization no
Message-ID <[email protected]>
> David Benfell:

> Someone suggested to me, off list, to try -d350000.  This worked,
> though I have to wonder why this value needs to be so much higher
> on OpenBSD than on Linux.  Thanks!

only thing i can contribute are these values for a freebsd 4.3 running a
slightly patched version of httpd enhanced for "cern-like" logging and
recognition of https:// URI's.  only 70000 bytes less let it fail.

#!/bin/sh
# $Header: /service/httpd/run,v 1.3 2002/03/19 15:27:23 root Exp $
exec 2>&1
export HTTPD_LOG_COMBINED=1
exec	envuidgid http \
	softlimit -o20 -d450000 \
	tcpserver -p -x /etc/tcprules/tcp.http.cdb \
		-vDrhl0 -b5 -c11 0 443 \
	stunnel -f \
		-D 6 \
		-p stunnel.pem \
		-l /var/bin/httpd \
		-- httpds \
		/var/pub/file

i found the memory footprint by trial error.  the .cdb database is only
a few lines (mmap(2) will map 2072 bytes in one chunk, i believe).

-- 
clemens fischer