This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Jose R. Santos wrote:OK, I will play with this and send a revised script.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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |