]> err.no Git - varnish/commit
Be more aggressive about mmap'ing memory. The size_t thing is a bogus
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 13 Jun 2006 20:06:45 +0000 (20:06 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 13 Jun 2006 20:06:45 +0000 (20:06 +0000)
commit3e7d2a064ae5df12fbd0e067d7e43acd10073882
tree059a85e85b90bd0b18e9c66eee53cef43921fa68
parent26f08229f603f9c223ae0fbca8411cbc9076685a
Be more aggressive about mmap'ing memory.  The size_t thing is a bogus
constraint in FreeBSD and we shouldn't really listen to it.

On my laptop I can mmap 2422MB file this way.

This may be so aggressive that it leaves insufficient address space for
malloc/threadstacks and other issues.

If we find a way to pick up a platform/architecture specific limit, we
can enforce that along the way.

For now people can just specify a saner and smaller "-sfile" size.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@177 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/storage_file.c