[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

load testing and tuning a 4GB RAM server



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_(_dot_)_com          |  www.FreeBSD.org

Visit your host, monkey.org