From owner-freebsd-hackers Sat Nov 4 18:15:59 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 3BF4337B4CF for ; Sat, 4 Nov 2000 18:15:54 -0800 (PST) Received: from opal (cs.binghamton.edu [128.226.123.101]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id VAA22234 for ; Sat, 4 Nov 2000 21:15:40 -0500 (EST) Date: Sat, 4 Nov 2000 21:14:47 -0500 (EST) From: Zhiui Zhang X-Sender: zzhang@opal To: freebsd-hackers@freebsd.org Subject: Protect a VFS buffer from VM - how Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I understand that memory belonged to a buffer will not be paged out by VM daemon. Now I want protect that memory from being cleaned by VM daemon as well. Should I use vfs_busy_pages() or just assume that since my pages are on the active queue, VM daemon will not touch it (it only cleans pages on the inactive queue). In short, I not only want to wire the page, but also want exclusive access to it by the filesystem code. How to do this correctly? Please clarify this subject for me. Any help is appreciated. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message