From owner-freebsd-hackers Sun Sep 20 19:57:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA06919 for freebsd-hackers-outgoing; Sun, 20 Sep 1998 19:57:09 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from word.smith.net.au (castles236.castles.com [208.214.165.236]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA06911 for ; Sun, 20 Sep 1998 19:57:04 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (LOCALHOST [127.0.0.1]) by word.smith.net.au (8.9.1/8.8.8) with ESMTP id UAA02670; Sun, 20 Sep 1998 20:02:27 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199809210302.UAA02670@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: zhihuizhang cc: hackers Subject: Re: Question about wiring a page In-reply-to: Your message of "Sat, 19 Sep 1998 16:06:39 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 20 Sep 1998 20:02:26 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I read in vm_map_lookup() the following comment: > > /* > * If this page is not pageable, we have to get it for all possible > * accesses. > */ > > Does this mean that even if the map entry is specified as wired, the pages > in its range still have to be faulted in for the very first time? Unless it's prefaulted, even a wired page has to be faulted once to obtain a backing page. > Another question: Can any process wire a page at its own will? There must > be some regulations, otherwise anyone can hog the memory. See the mlock(2) manpage for details on this. There's a per-user resource limit (memorylocked) which governs the per-user limit, however I seem to recall that only root can actually lock memory in core. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message