Re: How much RAM does ctwm consume?

Aaron Sloman <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
[email protected] wrote:

> Does anyone have any idea how much RAM standard ctwm, sans panel,
> consumes? I'm involved in a discussion of lightweight WMDEs on a
> different mailing list.

I wrote,
on a PC running Fedora 29, with KiB Mem : 8066008 KiB Swap: 16383996

>      axs       1617  0.0  0.0 221224  3692 ?        S    Dec08   1:01 ctwm -W
>
> I think that means 221224 Kb virtual and 3692 Kb resident.

I.e. about 221Mb virtual and 3.7MB resident.

[email protected] wrote:

> Hmm... I wonder why your VM use is so high, mine is 37MB here on a 64bit
> hosts that's been running for a month, with a few hundred windows
> (tho it's nothing to worry about: the VM use is generally due to
> dynamically-linked libraries and doesn't necessarily reflect any use of
> *real* memory).  FWIW, my RSS is 4MB, which is about the same as yours.

[email protected] wrote:

> I get:
>
>  2013  0.0  0.0  16044  6104 ?        Ss   16:23   0:01 /usr/bin/ctwm
>
> I got the same using htop.
>
> Not many hours uptime, four desktops and iconmanager and pager running.

I have no explanation for my high VM use unless it indicates that there has
been no need for a VM garbage collection since I last re-booted. I'll have
to check the value after I next reboot the PC.

I also tried restarting ctwm on the PC, using
    ctwm --replace &

Before and after values hardly changed except for 2MB extra main memory:

Before replace
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
axs       1617  0.0  0.0 221224  3644 ?        S    Dec08   1:02 ctwm -W

after replace
axs      32155  1.0  0.0 221052  5640 pts/7    S    22:39   0:00 ctwm

So the amount of physical memory has gone up after replace.

I have 8GBram and about 16GB swap (probably a lot more than necessary?)

On a laptop:
I've also tried on a recently rebooted Stonebook mini laptop running
Fedora 31 with 8GB SDram and 16GB swap space.

After exiting ctwm and restarting, on the Stonebook I get this, with
ctwm 4.0.3-post

USER       PID  %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
axs       43515  0.1  0.0 219380  5400 ?        S    00:37   0:00 ctwm -W

So the large VSZ can't be do to ctwm running for a long time.

There's a lot less running on the Stonebook.

It's mystifying.
Aaron
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.