[TUHS] Overgrown ffox (was: The Unix shell: a 50-year view)

Derek Fawcus dfawcus+lists-tuhs at employees.org
Thu Jul 8 23:59:57 AEST 2021


On Thu, Jul 08, 2021 at 08:46:53AM +0200, Tomasz Rola wrote:
> On Wed, Jul 07, 2021 at 08:50:51PM +0000, Michael Kjörling wrote:
> > On 7 Jul 2021 20:32 +0200, from rtomek at ceti.pl (Tomasz Rola):
> > > An excerpt from my ps:
> > > 
> > > USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> > > 
> > > xxxon    12331 12.5 20.4 5898360 2519640 ?     TNsl Mar29 18278:11 firefox-esr
> > 
> > I'm going to stick my neck out here by saying that the VSZ and RSS
> > values reported by ps, at least for Firefox, are largely meaningless.

Or does it depend upon the OS?  From a mac instance:

$ ps -u 502 -o vsz,rss,ucomm,command|fgrep Firefox-78esr.app|awk '$3!="fgrep" {print int($1/1024),int($2/1024),$3}'
10113 189 firefox
5564 73 plugin-container
6051 46 plugin-container
6129 56 plugin-container
5487 55 plugin-container
5619 53 plugin-container
7201 49 plugin-container
6852 60 plugin-container
5876 62 plugin-container
6247 56 plugin-container
6050 13 plugin-container
6055 9 plugin-container

The display from Activity Monitor, which one would assume better presents
the mach VM gives for the 'firefox' process:

Real Memory ~ 171M
Private Memory ~ 80M
Shared Memory ~ 85M
Memory ~ 1.05G

and when inspected a Virtual Memory size of ~ 9.8 G but Real memory size of ~ 170M

Whereas a linux instance (viewing different pages) of 89.0.2 gives:

$ ps -u 100 -o vsx,rss,ucomm,command|fgrep firefox|awk '$3!="grep" {print int($1/1024),int($2/1024),$3}'
3147 356 firefox
2699 200 Web
2522 99 WebExtensions
3271 219 Web
2642 181 Web
2511 105 Web
2489 73 Web

and yeah - it does 'leak' as the main firefox process sitting 'idle' has now become:

3190 346 firefox

So there are defintitly issues in mapping the current use of various types
of memory to a simple display format.

DF


More information about the TUHS mailing list