[SCRIPT] NUMA page fault accounting.

Stone, Joshua I joshua.i.stone@intel.com
Tue Mar 21 18:58:00 GMT 2006


Jose R. Santos wrote:
>         page_faults [pid(), $write_access ? 1 : 0] ++
>         node_faults [pid(), addr_to_node($address)] ++

You could improve scalability of this script by using statistics to
maintain your count, e.g.:

         page_faults [pid(), $write_access ? 1 : 0] <<< 1
         node_faults [pid(), addr_to_node($address)] <<< 1

And then access the values with @count(page_faults[...]).

Other than that, this looks good.  It might be nice to start publishing
case studies on the website, so if you have a real problem that you
solved with this, please share!


Josh



More information about the Systemtap mailing list