Tracking memory, PCI(-E) bus usage?

Ivan Voras ivoras at freebsd.org
Fri Feb 24 16:03:26 UTC 2012


This is mostly idle wanderings than anything useful, but I've just
redirected an application which creates a lot of temporary data to a
tmpfs mount point and I'm happily observing disk bandwidth dwindling
from a sustained many dozens of MB/s to merely hundreds of KB/s, which
is the value the system was designed for.

That got me thinking that I would also be happy if I could observe the
bandwidth used by the memory file system, and even memory in total, and
by extension, the traffic on various busses.

So this is the question for people who twiddle with the hardware level:
is there a way in which those quantities could be tracked in real-time?
For the memory, I guess it would depend on the memory controller, but
even memory controllers are built-in in recent CPUs, which means there
could be a way. I'm vaguely recalling that PCI-E (at least) works in
some kind of packet-based transaction mode so it seems possible that it
could also offer some metrics.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120224/f5b6bd65/signature.pgp


More information about the freebsd-hackers mailing list