load testing and tuning a 4GB RAM server
Doug White
dwhite at gumbysoft.com
Sun Apr 6 23:47:56 PDT 2003
On Sun, 6 Apr 2003, Mattias Pantzare wrote:
>
> > The notion of tuning kernel variables to the amount of memory on the
> > _build_ system-- which is not always the same as the system which will
> > be running the kernel-- doesn't strike me as the right thing to do, so I
> > tend to set this to 64 or so by default, and then change it on a
> > case-by-case basis as the need arises.
>
> That is why maxusers 0 will auto-size when the kernel _boots_. Not at
> buildtime.
.. unfortunately 'maxusers 0' on >2GB systems causes the tables to get
*too* big, and you can easily deplete KVM in this instance. Check the
archives for the discussion-of-the-month about this.
I'd suggest maxusers 128 and tune other items as needed, particuarly the
tunables kern.ipc.nmbclusters and kern.ipc.nmbufs.
--
Doug White | FreeBSD: The Power to Serve
dwhite at gumbysoft.com | www.FreeBSD.org
More information about the freebsd-stable
mailing list