Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 7862  / 1 Year ago, tue, january 31, 2023, 9:26:18

Lately, while browsing, I often get that the computer comes to a crawl. At the same time I notice memory consumptions of close to 90% by programs/ 10% as cache as indicated by the System Monitor applet in my panel.



Trying to find out which program is slowing down my computer I issue the top command in the terminal, but adding the numbers in the MEM% column there doesn't even come close to 20%.




  • What is the cause of this discrepancy?

  • What is the correct way to do I find out which program is consuming exessive amounts of memory?



screenshot of discrepance between top and Systems Monitor



I don't know if this is helpfull information, but for reference, the output of free -m is:



             total       used       free     shared    buffers     cached
Mem: 2993 2935 57 0 3 369
-/+ buffers/cache: 2563 429
Swap: 5809 1514 4295

More From » memory

 Answers
1

By default, top does not sort by memory usage, but CPU usage. If you're manually adding everything up, you may miss some memory hogs programs which use almost no CPU.



To sort by memory usage, press Shift + F followed by n. Press any other key to return to the overview.



The system monitor panel calculates the memory used, minus buffers and cache, without swap.




  • Total RAM: 2993

  • RAM in use (without buffers and cache cache): 2563

  • 2563 / 2993 = 86%



Your computer became slow because it began to swap. Try upgrading your RAM for better performance. The money is well worth it.


[#44544] Thursday, February 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rcraftemur

Total Points: 118
Total Questions: 119
Total Answers: 144

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
;