From owner-freebsd-hackers Tue May 14 17:30:29 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA27681 for hackers-outgoing; Tue, 14 May 1996 17:30:29 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id RAA27676; Tue, 14 May 1996 17:30:25 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.7.5/8.6.9) id TAA13410; Tue, 14 May 1996 19:29:58 -0500 (EST) From: "John S. Dyson" Message-Id: <199605150029.TAA13410@dyson.iquest.net> Subject: Re: A question for the VM gurus..! To: jgreco@brasil.moneng.mei.com (Joe Greco) Date: Tue, 14 May 1996 19:29:58 -0500 (EST) Cc: hackers@freebsd.org, dyson@freebsd.org In-Reply-To: <199605142254.RAA11225@brasil.moneng.mei.com> from "Joe Greco" at May 14, 96 05:54:01 pm Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Summary: curious about the status of madvise/mincore. > > A quick find /usr/src/sys -type f -print | xargs grep MADV reveals that > the MADV constants aren't used anywhere in the kernel (at least on my > 2.1R systems). > > I see madvise and mincore return EOPNOTSUPP. > > Do we have any plans to support this, for those of us who would prefer to > keep our VM systems more informed? > Mincore is supported in current (but only approximately correctly -- it returns which pages are mapped in a process, not actual residency.) It says in essence, which pages don't have to be faulted... I have been planning on fixing that. Perhaps we should implement a more fully featured mincore -- I did some mods for Ron Minnich, and since we have a full byte, we would have 8 bits of info about the pages that we could present :-). I am sure that the API gods would have something to say about that though. (I never liked rules, but they are necessary.) Madvise is on my list (and probably only a few hours of work to do correctly.) If you bug me right before the weekend -- I was planning on going to the Dayton Hamfest, but I don't think I have time now -- I might be able to put something into -current over the weekend... This is a squeaky wheel situation :-). John