This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: [SCRIPT] NUMA page fault accounting.
- From: "Stone, Joshua I" <joshua dot i dot stone at intel dot com>
- To: <jrs at us dot ibm dot com>
- Cc: <systemtap at sourceware dot org>
- Date: Tue, 21 Mar 2006 10:40:04 -0800
- Subject: RE: [SCRIPT] NUMA page fault accounting.
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