[oi-dev] Memory use with Firefox

Gary Mills gary_mills at fastmail.fm
Thu Jan 11 21:05:12 UTC 2024


On Thu, Jan 11, 2024 at 09:09:27AM -0800, Alan Coopersmith wrote:

> Xorg maps VRAM from your video card, so you need to use pmap on the process
> to see how much is heap allocation (regular ram) vs. memory mappings.

Here's the processes today:

  <mills at ryzen:2918>$ prstat -c -s size
  Please wait...
     PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP       
     941 mills    2558M 2532M sleep   59    0  58:09:13 0.1% Xorg/3
    1129 mills    2066M  899M sleep   49    0   6:15:59 0.8% firefox/177
    ...

Indeed, Xorg is using more memory than the main firefox process.
Perhaps my Radeon video card is responsible for that.  Here's how
memory allocation looks in more detail:

  root at ryzen># pmap 941
  941:    /usr/bin/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten 
  0000000000400000       2976K r-x--  /usr/bin/Xorg
  00000000006F8000         72K rw---  /usr/bin/Xorg
  000000000070A000    2572040K rw---    [ heap ]
  00007FFFAAA00000      16384K rw-s- 
  00007FFFABA40000        204K r-x--  /usr/lib/xorg/modules/amd64/libint10.so
  00007FFFABA83000          8K rw---  /usr/lib/xorg/modules/amd64/libint10.so
  ...

The largest portion of it seems to be in heap allocation.  At least,
the size seems to stabilize pretty quickly.



-- 
-Gary Mills-		-refurb-		-Winnipeg, Manitoba, Canada-



More information about the oi-dev mailing list