There are a number of questions on this StackExchange about memory consumption, notably:
- How to check which process is using most memory
- How to display
topresults sorted by memory usage in real time? - How to find which processes are taking all the memory?
However, all of them seem to be driving at what's using the most memory right now. I'd like to have a workflow that tells me what's using the most memory (or perhaps the top 3 to 4 processes) over a period of time (e.g. 1 hour, 12 hours).
Is there a way to accomplish this with top, htop or something else?