From owner-freebsd-current@FreeBSD.ORG Wed Oct 5 14:53:44 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE86A106564A for ; Wed, 5 Oct 2011 14:53:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 2265E8FC0A for ; Wed, 5 Oct 2011 14:53:43 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p95ErY36002982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Oct 2011 17:53:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p95ErYnA093298; Wed, 5 Oct 2011 17:53:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p95ErXdK093297; Wed, 5 Oct 2011 17:53:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 5 Oct 2011 17:53:33 +0300 From: Kostik Belousov To: Svatopluk Kraus Message-ID: <20111005145333.GD1511@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="teNhNKPB77OXAOlQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current@freebsd.org Subject: Re: pmap_qenter() - the page *must* be wired - is violated X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2011 14:53:44 -0000 --teNhNKPB77OXAOlQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 05, 2011 at 02:28:01PM +0200, Svatopluk Kraus wrote: > Hi, >=20 > I found out that on a few places pmap_qenter() is called on pages > which are not wired. For example, in the following functions, when > vm_pager_get_pages() is called, the pages are not wired: >=20 > exec_map_first_page() in sys/kern/kern_exec.c > vm_fault_hold() in sys/vm/vm_fault.c > vm_imgact_hold_page() in sys/vm/vm_glue.c > vm_object_populate() in sys/vm/vm_object.c > mdstart_swap() in sys/dev/md/md.c >=20 > Is the rule violated or the rule should be changed? Lets first discuss where did you found the calls to pmap_qenter(). Can you point out exact line numbers of the calls to pmap_qenter() that you consider problematic ? In fact, the requirement probably shall be 'no swapout allowed'. E.g., the busy page is fully qualified to be used together with pmap_qenter(). --teNhNKPB77OXAOlQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6Mb20ACgkQC3+MBN1Mb4jbjwCgi/QDaD5iaZA3oRMvWFR/SMF7 ZAoAoM3uHwQ6Vu5kWAsXJVvdJLWqG8Uw =YlHk -----END PGP SIGNATURE----- --teNhNKPB77OXAOlQ--