From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 28 10:21:52 2012 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65418106564A for ; Tue, 28 Feb 2012 10:21:52 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id A7B878FC12 for ; Tue, 28 Feb 2012 10:21:51 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA24625; Tue, 28 Feb 2012 12:21:47 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1S2KBn-0005Rc-0V; Tue, 28 Feb 2012 12:21:47 +0200 Message-ID: <4F4CAAC1.9060908@FreeBSD.org> Date: Tue, 28 Feb 2012 12:21:53 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Wojciech Puchar References: <4F4C0726.6010804@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, Grzegorz Kulewski Subject: Re: improving VM - questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 10:21:52 -0000 on 28/02/2012 11:43 Wojciech Puchar said the following: >>> +++ swap_pager.c 2012-02-25 13:19:51.000000000 +0100 >>> @@ -119,7 +119,7 @@ >>> * The 32-page limit is due to the radix code (kern/subr_blist.c). >>> */ >>> #ifndef MAX_PAGEOUT_CLUSTER >>> -#define MAX_PAGEOUT_CLUSTER 16 >>> +#define MAX_PAGEOUT_CLUSTER 256 >>> #endif >> [snip] >>> but swap_pager.c patch seems not to work. i observe 64kB pageouts, no more. >>> >>> what is wrong in it? >> >> Could there be a problem because of what the MAX_PAGEOUT_CLUSTER comment says? > > right. but still 32 pages is 128kB, but i see 64kB I/Os in systat/vmstat Right, but the comment says to not define MAX_PAGEOUT_CLUSTER to a value greater than 32, but you did that. So all bets could be off unless you examined the code and know exactly what should happen in this case. -- Andriy Gapon