[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference aosg::osf_tuning

Title:OSF/1 AXP Performance Tuning
Moderator:AOSG::USILTON
Created:Mon Sep 13 1993
Last Modified:Tue Apr 15 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:115
Total number of notes:398

112.0. "system call to measure pagefaults?" by HPCGRP::DEGREGORY (Karen 223-5801) Thu Jan 30 1997 14:02

I have a program which when runs faults excessively.
I wanted to try and pinpoint where in the program
the faulting was occuring.  Is there a system call I
can make from within the program which will tell me
how many pagefaults I have taken (similar to 
setitimer and getitimer for CPU time)?

Karen
T.RTitleUserPersonal
Name
DateLines
112.1atom -hiprof might do the job for youMSBCS::SCHNEIDERindividually twistedFri Jan 31 1997 09:047
    Hi, Karen, just passing through and thought I would mention that atom
    can make a pagefault profile, at least down to the routine level.  Take
    a look at "man hiprof" in particular - the pagefault incantation goes
    somewhere in a -toolargs clause, I think.
    
    Cheers,
    Chuck
112.2NABETH::alanDr. File System's Home for Wayward Inodes.Fri Jan 31 1997 14:535
	See also: getrusage(3), notably the fields:

	        long    ru_minflt;              /* page reclaims */
        	long    ru_majflt;              /* page faults */
        	long    ru_nswap;               /* swaps */