From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,49d25ed71f335e8c,start X-Google-Attributes: gidfee84,public From: John Kohl Subject: buffer cache inventory for a file? Date: 1996/12/09 Message-ID: <6cengza1ul.fsf@mango.atria.com>#1/1 X-Deja-AN: 203193349 x-us-snail: Pure Atria Corp., 20 Maguire Road, Lexington, MA 02173-3104 sender: jtk@mango.atria.com organization: Pure Atria Corporation newsgroups: comp.unix.osf.osf1 Does anybody have suggestions on how to check which pages of a file are in memory in the system cache on Digital UNIX? On Solaris 2.x, there is an mincore() function which will describe the page present/absent state of virtual memory regions. This makes for an easy tool to check page cache residency (just mmap() the file and call mincore()). I don't see anything similar on Digital UNIX or HP/UX. Any suggestions (short of walking page tables via /dev/kmem--yecch)? -- John Kohl or working for but not representing: Pure Atria sometimes hacking on: NetBSD/i386 Member of the League for Programming Freedom--inquire at league@prep.ai.mit.edu