Re: memory usage

Ray Andrews <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <184f6cb8-f615-40dc-8f24-9a370e3defd3__8648.61055031128$1777855578$gmane$org@eastlink.ca>

On 2026-05-03 17:24, Bart Schaefer wrote:
> On Sun, May 3, 2026 at 5:16 PM Alexis <[email protected]> wrote:
>> You could use ps(1). Inside the shell, you could run:
>>
>>    $ ps -q $$ -o comm,rss,vsize
> % ps
>     PID TTY          TIME CMD
>  179518 pts/0    00:00:00 zsh
>  179522 pts/0    00:00:06 devilspie2
>  179533 pts/0    00:03:29 geany
>  254999 pts/0    00:00:00 zsh
>  255001 pts/0    00:00:00 devilspie2
>  255008 pts/0    00:00:00 ps
>
> % ps -p $$ -o comm,rss,vsize
> COMMAND           RSS    VSZ
> zsh              9640  13568
>
  The 'ps' above -- different terminal, restart shell, but only two 
mentions of zsh, vs. four in the other terminal, most perplexing. But at 
least the VSZ is the same.  And if that's 13,566K, that's believable.  
So that's loaded, all in, functions and all? Then that's my number.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.