From owner-svn-src-head@freebsd.org Mon Nov 2 04:09:00 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C42B0A1E2A0; Mon, 2 Nov 2015 04:09:00 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DCCD15A8; Mon, 2 Nov 2015 04:09:00 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pasz6 with SMTP id z6so134858896pas.2; Sun, 01 Nov 2015 20:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=SYFCvJh6Hufl1vUFdV/GtFZEWF+0DwCcxG8aIj/waes=; b=DWOxIaOMiVdsgQe+mAG2GCzH/a8z+0IiwD1oh8AefLsApFlUHLgxloyGhXqE0UZful ARwyIizNEHOn8GtCuyghyxGN9YJ9seX5k8ycSV/b+3T7OZ91ioxDXLNESkHGEFZnpHef 6IwRFumrfHnH8py8WASjrljJHbfi6YLSBuj1/v41Gh4PjTV8SbGF/+wQVk+SQ/xeaqkv di5gS+tpkxHEc3zFmP+5iDFWakhWWbbPEkFH601iKaOlDqnD3RikDGG79wm2e/SQnaKz Fg3a6GtAXx1ligmV/JqZLxgAgjgr+oZv39B1oBLNFqHjADcS5yFpD3VtERsaIE9z7kb5 zAjg== X-Received: by 10.66.221.6 with SMTP id qa6mr24956724pac.9.1446437340233; Sun, 01 Nov 2015 20:09:00 -0800 (PST) Received: from ?IPv6:2601:601:800:126d:541b:f764:9c9c:ea2b? ([2601:601:800:126d:541b:f764:9c9c:ea2b]) by smtp.gmail.com with ESMTPSA id kd9sm4404547pbb.32.2015.11.01.20.08.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Nov 2015 20:08:59 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: svn commit: r289279 - in head/sys: kern vm From: NGie Cooper In-Reply-To: Date: Sun, 1 Nov 2015 20:08:58 -0800 Cc: Jeff Roberson , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <201510140210.t9E2A79H056595@repo.freebsd.org> To: Adrian Chadd X-Mailer: Apple Mail (2.2104) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 04:09:00 -0000 > On Nov 1, 2015, at 19:33, Adrian Chadd 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=