Skip to contentSkip to conversation

Determining number of page faults caused by paging out

DISCUSSION John Daniels 2 participants 2 messages Jan 29, 2007 – Jan 30, 2007 Memory management

lore
Share & tools
lore
#0 lore raw

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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 9 lines · John Daniels

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/

Signature · 9 lines
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 [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>