Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jul 2017 16:58:47 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r321373 - stable/11/sys/vm
Message-ID:  <201707221658.v6MGwlId013609@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat Jul 22 16:58:47 2017
New Revision: 321373
URL: https://svnweb.freebsd.org/changeset/base/321373

Log:
  MFC r320319
    Increase the pageout cluster size to 32 pages.
  
    Decouple the pageout cluster size from the size of the hash table entry
    used by the swap pager for mapping (object, pindex) to a block on the
    swap device(s), and keep the size of a hash table entry at its current
    size.
  
    Eliminate a pointless macro.

Modified:
  stable/11/sys/vm/swap_pager.c
  stable/11/sys/vm/vm_pageout.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/swap_pager.c
==============================================================================
--- stable/11/sys/vm/swap_pager.c	Sat Jul 22 14:03:20 2017	(r321372)
+++ stable/11/sys/vm/swap_pager.c	Sat Jul 22 16:58:47 2017	(r321373)
@@ -119,7 +119,7 @@ __FBSDID("$FreeBSD$");
  * The 64-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	32
 #endif
 
 #if !defined(SWB_NPAGES)
@@ -133,7 +133,7 @@ __FBSDID("$FreeBSD$");
  * Unused disk addresses within a swap area are allocated and managed
  * using a blist.
  */
-#define SWAP_META_PAGES		(SWB_NPAGES * 2)
+#define	SWAP_META_PAGES		32
 #define SWAP_META_MASK		(SWAP_META_PAGES - 1)
 
 struct swblock {

Modified: stable/11/sys/vm/vm_pageout.c
==============================================================================
--- stable/11/sys/vm/vm_pageout.c	Sat Jul 22 14:03:20 2017	(r321372)
+++ stable/11/sys/vm/vm_pageout.c	Sat Jul 22 16:58:47 2017	(r321373)
@@ -250,8 +250,7 @@ static u_int vm_background_launder_max = 20 * 1024;
 SYSCTL_UINT(_vm, OID_AUTO, background_launder_max, CTLFLAG_RW,
     &vm_background_launder_max, 0, "background laundering cap, in kilobytes");
 
-#define VM_PAGEOUT_PAGE_COUNT 16
-int vm_pageout_page_count = VM_PAGEOUT_PAGE_COUNT;
+int vm_pageout_page_count = 32;
 
 int vm_page_max_wired;		/* XXX max # of wired pages system-wide */
 SYSCTL_INT(_vm, OID_AUTO, max_wired,



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