Hi folks - I'm looking for some help understanding the memory usage stats outputted from
htop on my machine, a ThinkPad T520 with 8GB of RAM running OpenBSD 6.8. I'm a newcomer to OpenBSD, so apologies if the answer should be obvious, but after reading the relevant
man pages and searching this sub and Google, I haven't yet found an answer that's satisfied my curiosity.
At a high level, my question boils down to: How can I get an accurate sense of how much memory my system and applications are using? After migrating to OpenBSD from Linux, I had anticipated a pretty light memory footprint. But with nothing but
xterm and a couple small applications running,
htop shows more than 800MB of memory being used. That doesn't seem right, especially looking at the memory consumed by each individual process.
top shows two different memory stats, with one being quite low -- and more in line with what I would expect -- and the other being relatively high. But I'm not sure how to interpret the distinction between
tot; it seems like this might come down to the difference between physical and virtual memory, though I'm not confident about that.
Screengrabs for comparison: https://imgur.com/a/h2nz5mH
Thanks in advance!
edit: Some screengrabs may be helpful, I realize. I'll add those soon.
edit2: Added screengrabs.