Thought I'd paste this in from the emails just for completeness' sake: The vmstat code does the following:
a) get system pagesize b) bit-shift right by ten (thus 8192 reduces to 8, 4096 reduces to 4) c) defines a macro to multiply the bit-shifted value with the pgin count which renders a result in kilobytes. The vminfo:::pgin probe resides in pageio_setup(), which is in bio.c. The lines that work for the vminfo provider are: 1321 CPU_STATS_ADDQ(cpup, vm, pgin, 1); 1322 CPU_STATS_ADDQ(cpup, vm, pgpgin, btopr(len)); in which btopr() converts the number of bytes in pgpgin to a number of pages, and rounds the result. Ergo, page count. A bit of tunnel-vision ensued for me, as I imagined I was reading the code incorrectly, or reading the incorrect code. Unfortunately more of the scripts in that guide could use a careful going-over. -- This message posted from opensolaris.org _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org