KDE System Monitor and the like have easy ways of monitoring how many bits per second are going in and out of your storage at a given time, is there anything similar for memory?
Depends on two things
- What performance counters your CPU has.
- What you consider to be a memory load.
Tools like
perf
on Linux can get you access to your processors performance counters and you’ll be able to see how many “events” occur while a process is running.What’s an event? Well they can be configured to monitor all sorts of things in the CPU. Instructions executed, Interrupts, page table misses, and on some loads / stores.
Memory systems on a CPU aren’t straightforward though. They contain multiple levels of cache, each of which reduces the number of accesses which go to the next layer. So depending on which level you measure, you’ll get different numbers.
Is that for a specific process or the system?
Ideally the entire system.
It seems pcm-memory can do it on Intel CPUs and uProf for AMD.
Other than these I’ve mostly seen benchmarking and profiling tools (like
perf
) but I guess these are not what you’re looking for.
Maybe looking for something like nmon, there is also something called memstat.