From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 28 Jan 2007 21:34:23 -0800 (PST) From: John Daniels Subject: Determining number of page faults caused by paging out MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Message-ID: <268387.39294.qm@web56003.mail.re3.yahoo.com> Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org List-ID: Hi, I sent this message to kernelnewbies, but no one responded so I thought I'd see if anyone here could help me. Is there a way to determine the number of page faults which occur because a certain page has been paged out to disk and then back into memory (i.e. page faults that would have been avoided if the VM subsystem didn't swap the page to disk)? I know that major page faults are the ones that require reading the page from disk, but I think major page faults would count the pages being brought into memory for the first time also. I don't think pgpgin gives me what I want either, though I'm not sure. Maybe I will need to instrument the kernel to get this information? I'm sorry if this is too basic a question for this list. Thanks, John ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45BE97D3.7090105@redhat.com> Date: Mon, 29 Jan 2007 19:56:51 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: Determining number of page faults caused by paging out References: <268387.39294.qm@web56003.mail.re3.yahoo.com> In-Reply-To: <268387.39294.qm@web56003.mail.re3.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: John Daniels Cc: linux-mm@kvack.org List-ID: John Daniels wrote: > Hi, > > I sent this message to kernelnewbies, but no one > responded so I thought I'd see if anyone here could > help me. Is there a way to determine the number of > page faults which occur because a certain page has > been paged out to disk and then back into memory (i.e. > page faults that would have been avoided if the VM > subsystem didn't swap the page to disk)? You'll need my /proc/refaults patches for that. See my paper on measuring resource demand, and the patches (which I am forward porting, though I keep getting distracted by other stuff): http://people.redhat.com/riel/riel-OLS2006.pdf http://surriel.com/patches/clockpro/ -- Politics is the struggle between those who want to make their country the best in the world, and those who believe it already is. Each group calls the other unpatriotic. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org