Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Dec 2012 14:41:14 +0100
From:      rank1seeker@gmail.com
To:        hackers@freebsd.org, alc@freebsd.org, avg@freebsd.org, davide@freebsd.org
Subject:   Re: huge ktr buffer
Message-ID:  <20121209.134114.135.1@DOMY-PC>
In-Reply-To: <CACYV=-HhQcPx4nM=Ytc3wKS-oZqvtZCquJZSL6BooDHvRpuvGA@mail.gmail.com>
References:  <50C0B763.8000004@FreeBSD.org> <CACYV=-HhQcPx4nM=Ytc3wKS-oZqvtZCquJZSL6BooDHvRpuvGA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> As also Alan suggested, a way to workaround the problem is to =
increase=0D=0A> NKPT value (e.g. from 32 to 64). Obviously, this is not a =
proper fix.=0D=0A> For a proper fix the kernel needs to be able to =
dynamically set the=0D=0A> size of NKPT.  In this particular case, this =
wouldn't be too hard, but=0D=0A> there is a different case, where people =
preload a large memory disk=0D=0A> image at boot time that isn't so easy =
to fix.=0D=0A> =0D=0A> Thanks,=0D=0A> =0D=0A> Davide=0D=0A=0D=0A=0D=0AHad =
a same issue.=0D=0AI use very big preloaded images, with full world + =
many compiled ports in it.=0D=0A=0D=0AFix:=0D=0A'sh' code snip =
...=0D=0A----=0D=0A# Get default NKTP value=0D=0Ankpt=3D`cat =
"/sys/$arch/include/pmap.h" | sed -En =
's/.+NKPT[[:blank:]]+([0-9]{2})$/\1/p'`=0D=0A=0D=0A# How many additional =
NKPT (4 Mb each), for our image, added to amount of NKPT?=0D=0A# =
Calculated in Kb=0D=0A: $((nkpt +=3D "$img_size" / =
4096))=0D=0A----=0D=0A=0D=0ABut it loads sooooo slow into the =
RAM.=0D=0AThat should be enhanced, too.=0D=0A=0D=0A=0D=0ADomagoj =
Smol=E8i=E6



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