From owner-svn-src-all@freebsd.org Wed Dec 21 09:18:54 2016 Return-Path: Delivered-To: svn-src-all@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 6892EC8A72E; Wed, 21 Dec 2016 09:18:54 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D0641CA1; Wed, 21 Dec 2016 09:18:54 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBL9Ir8Y061890; Wed, 21 Dec 2016 09:18:53 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBL9IrCm061889; Wed, 21 Dec 2016 09:18:53 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201612210918.uBL9IrCm061889@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Wed, 21 Dec 2016 09:18:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r310358 - stable/11/sys/vm X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 09:18:54 -0000 Author: kib Date: Wed Dec 21 09:18:53 2016 New Revision: 310358 URL: https://svnweb.freebsd.org/changeset/base/310358 Log: MFC r310098: Provide introductory description of the default pager. Modified: stable/11/sys/vm/default_pager.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/vm/default_pager.c ============================================================================== --- stable/11/sys/vm/default_pager.c Wed Dec 21 09:15:25 2016 (r310357) +++ stable/11/sys/vm/default_pager.c Wed Dec 21 09:18:53 2016 (r310358) @@ -63,6 +63,16 @@ static boolean_t default_pager_haspage(v int *); /* * pagerops for OBJT_DEFAULT - "default pager". + * + * This pager handles anonymous (no handle) swap-backed memory, just + * like the swap pager. It allows several optimizations based on the + * fact that no pages of a default object can be swapped out. The + * most important optimization is in vm_fault(), where the pager is + * never asked for a non-resident page. Instead, a freshly allocated + * zeroed page is used. + * + * On the first request to page out a page from a default object, the + * object is converted to swap pager type. */ struct pagerops defaultpagerops = { .pgo_alloc = default_pager_alloc,