Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2015 20:08:58 -0800
From:      NGie Cooper <yaneurabeya@gmail.com>
To:        Adrian Chadd <adrian.chadd@gmail.com>
Cc:        Jeff Roberson <jeff@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r289279 - in head/sys: kern vm
Message-ID:  <E7E607F9-3766-4D11-AB02-EA5EA683A598@gmail.com>
In-Reply-To: <CAJ-Vmokv-6UTNUCMDiUx1K4zfE5b6usYYa99gsL8hLcD3O5QFA@mail.gmail.com>
References:  <201510140210.t9E2A79H056595@repo.freebsd.org> <CAJ-Vmon2kKCMp6OemhW6CKUJ_a2iKz0pGg0zG2oqy2FuvLR73w@mail.gmail.com> <DFF7EA25-64EA-44BB-BC0D-A84E52587B9D@gmail.com> <F7C18EDF-6260-4F99-9CFD-8ADF49048B47@gmail.com> <CAJ-Vmokv-6UTNUCMDiUx1K4zfE5b6usYYa99gsL8hLcD3O5QFA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Nov 1, 2015, at 19:33, Adrian Chadd <adrian.chadd@gmail.com> wrote:
>=20
> Well, sure, but what was it doing before? Like, what should I tune it =
to?
>=20
> 32MB of RAM (and we still boot/run on 16MB RAM, fwiw) doesn't exactly
> leave much in the way of "space" ...

I don=E2=80=99t have benchmarks that I can provide to back up any =
particular claim, so your guess is as good as mine (unfortunately).

The calculations for lofreebuffers and hifreebuffers have changed. With =
kern.nbuf =3D 20125, kern.smp.cpus =3D 3, and vfs.maxbufspace =3D =
329728000 (314 MB), I ended up with some interesting new numbers...

Old formulas					  Old values
lofreebuffers =3D nbuf / 18 + 5		| 1123
hifreebuffers =3D 2 * lofreebuffers;	| 2246
clean_queues					| 1 (hardcoded as part =
of the previous design)

New formulas									=
						  New values
lofreebuffers =3D MIN((nbuf / 25) + (20 * mp_ncpus), 128 * mp_ncpus);		=
		| 384
hifreebuffers =3D (3 * lofreebuffers) / 2;					=
					| 576
clean_queues =3D MIN(howmany(maxbufspace, 256*1024*1024), CLEAN_QUEUES);	=
| ~1

What happens if you plug in your current values with the old and new =
formulas?

Thanks,
-NGie=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E7E607F9-3766-4D11-AB02-EA5EA683A598>