From: theom+news@chiark.greenend.org.uk   
      
   druck wrote:   
   > On 12/05/2025 10:41, Jesper wrote:   
   > > Thank you for your reply. HTOP sems to be a great tool, but it will take   
   > > some time to be familliar with it. A strange thing is I saw 45 lines   
   > > with /usr/lib/thunderbird/thunderbird listed with 5.7 % for MEM%. That   
   > > sums up to 250% :-) So I do not understand HTOP at all :-)   
   >   
   > Browsers now run each tab as a separate process, so you will get many   
   > lines of entries. Each process will share the read only code from the   
   > first process, and have their own writeable data. Which is why they can   
   > all add up to more than the total amount of memory in the machine, but   
   > actually only be using a much lower proportion.   
      
   I think htop also shows individual threads - the lines which have identical   
   commands with identical amounts of RAM usage aren't separate processes,   
   they're multiple threads running inside the same address space. Since it's   
   one address space they all share the same RAM utilisation.   
      
   eg on this machine, the number of Firefox processes is:   
      
   $ ps -flye | grep firefox | wc -l   
   74   
      
   but the number of threads:   
      
   $ ps -flye -T | grep firefox | wc -l   
   2237   
      
   Theo   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|