From owner-svn-src-all@freebsd.org Wed Dec 21 22:09:56 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 56027C8A54B for ; Wed, 21 Dec 2016 22:09:56 +0000 (UTC) (envelope-from ys-h@sea.plala.or.jp) Received: from msa04b.plala.or.jp (msa04.plala.or.jp [IPv6:2400:7800:0:5010::4]) by mx1.freebsd.org (Postfix) with ESMTP id EA4AC1034 for ; Wed, 21 Dec 2016 22:09:55 +0000 (UTC) (envelope-from ys-h@sea.plala.or.jp) Received: from AH53MB ([60.41.112.187]) by msa04b.plala.or.jp with SMTP id <20161221220952.BIZY29075.msa04b.plala.or.jp@AH53MB> for ; Thu, 22 Dec 2016 07:09:52 +0900 Date: Thu, 22 Dec 2016 07:09:52 +0900 From: Hiroshi Yoshida To: svn-src-all@freebsd.org Subject: Re: svn commit: r310363 - stable/10/sys/vm Message-Id: <20161222070952.eca6bc2a567f88292f686e99@sea.plala.or.jp> In-Reply-To: <201612211132.uBLBW9Ud019011@repo.freebsd.org> References: <201612211132.uBLBW9Ud019011@repo.freebsd.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; msa04m; Thu, 22 Dec 2016 07:09:52 +0900 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 22:09:56 -0000 On Wed, 21 Dec 2016 11:32:09 +0000 (UTC) Konstantin Belousov wrote: > Author: kib > Date: Wed Dec 21 11:32:08 2016 > New Revision: 310363 > URL: https://svnweb.freebsd.org/changeset/base/310363 > > Log: > MFC r310098: > Provide introductory description of the default pager. > > Modified: > stable/10/sys/vm/default_pager.c > Directory Properties: > stable/10/ (props changed) > > Modified: stable/10/sys/vm/default_pager.c > ============================================================================== > --- stable/10/sys/vm/default_pager.c Wed Dec 21 09:59:55 2016 (r310362) > +++ stable/10/sys/vm/default_pager.c Wed Dec 21 11:32:08 2016 (r310363) > @@ -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, > r310097 not need to merge it? -- Hiroshi Yoshida