Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2007 11:39:26 +0300
From:      Andrew Kolchoogin <andrew@rinet.ru>
To:        Kris Kennaway <kris@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: kmem_map too small
Message-ID:  <1195202366.3532.23.camel@localhost>
In-Reply-To: <473D51C1.5060609@FreeBSD.org>
References:  <1195200305.3532.10.camel@localhost> <473D51C1.5060609@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 =D0=9F=D1=82, 16/11/2007 =D0=B2 09:16 +0100, Kris Kennaway =D0=BF=D0=
=B8=D1=88=D0=B5=D1=82:

> Check the archives, this comes up a lot (you need to increase the amount=20
> of memory allocated to the kernel).
    Already did.

    The question actually is how much memory I should allocate for
kernel (exactly, what numbers should be placed into /boot/loader.conf in
vm.kmem_size and vm.kmem_size_max) and what amount of kernel memory
depends on and how I could calculate kernel memory needs.

    Trivial answer "just try to experiment" is not definitely enough. :)

First of all, this process can be _extremely_ lengthy: about two months
ago I have tried to "brute force" guess vm.kmem* values to start using
ZFS on my desktop at work: two weeks for testing is very large amount of
time, and, as said by Dijkstra, "testing can only show us presence of
bugs, and not their absence": "cvs -z 5 -g up -P -d" done in /usr/ports
(very good test to crash your machine if you're using ZFS because of
heavy usage of ZFS POSIX name resolution cache) stopped crashing my box,
but I can't say that any other test will not crash it.

Second, the machine in question operates unattended, and our technical
support engineers are not qualified enough to tweak boot loader
parameters, as such, I should constantly monitor this server what I
don't wish to do. :)
--=20
    =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,
        =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9A=D0=BE=D0=BB=D1=8C=D1=87=
=D1=83=D0=B3=D0=B8=D0=BD.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1195202366.3532.23.camel>