Subject: Re: lightweight wms
To: None <netbsd-help@netbsd.org>
From: Greg 'groggy' Lehey <grog@lemis.com>
List: netbsd-help
Date: 01/05/2003 11:55:14
On Saturday,  4 January 2003 at 10:11:47 -0500, Sam Carleton wrote:
> Folks,
>
> How does FVWM2 compare as far as size?  Is it one of the
> larger WMS or smaller ones?

Funny you should mention that.  I'm just completing a chapter on
window managers for the upcoming edition of "The Complete FreeBSD".
The last edition was based on fvwm2, but I decided this time to
recommend KDE instead.  The reasoning was that it's easier for a
newbie, and that it's relatively complete.

As you can see from http://www.lemis.com/grog/diary-jan2003.html, I've
changed my mind after actually using it.  I still describe KDE, but I
point out that you have a choice, and that for many people fvwm2 might
be a better choice.

As far as size goes, I see:

  $ ps aux|grep kde
  USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
  grog    1871  0.0  0.0  1992    8  v0  IW+  -         0:00.00 xinit .xinitrc-kde -- :1 -xf86config XF86Config.1024x768
  grog    1885  0.0  0.0   856    8  v0  IW   -         0:00.00 sh .xinitrc-kde
  grog    1900  0.0  0.0   864    8  v0  IW   -         0:00.00 /bin/sh /usr/local/bin/startkde
  grog    1926  0.0  1.2 18052 1464  ??  Ss   Fri06PM   0:00.58 kdeinit: Running... (kdeinit)
  grog    1929  0.0  1.6 17792 2008  ??  S    Fri06PM   0:00.46 kdeinit: dcopserver --nosid (kdeinit)
  grog    1935  0.0  2.4 18732 2996  ??  S    Fri06PM   0:00.31 kdeinit: klauncher (kdeinit)
  grog    1937  0.0  2.8 19156 3524  ??  S    Fri06PM  32:15.33 kdeinit: kded (kdeinit)
  grog    1946  0.0  0.6 18984  804  ??  S    Fri06PM   0:00.32 kdeinit: kio_uiserver (kdeinit)
  grog    1960  0.0  3.8 18880 4728  ??  S    Fri06PM   0:52.66 kdeinit: klaptopdaemon (kdeinit)
  grog    1967  0.0  1.8 21784 2256  ??  S    Fri06PM   0:01.23 kdeinit: knotify (kdeinit)
  grog    1970  0.0  1.3 18756 1656  ??  S    Fri06PM   0:00.43 kdeinit: ksmserver --restore (kdeinit)
  grog    1981  0.0  5.7 20084 7116  ??  S    Fri06PM   0:06.81 kdeinit: kwin -session 11c06dc559000104156472300000014450
  grog    2013  0.0  4.8 23576 5916  ??  S    Fri06PM   8:57.31 kdeinit: kdesktop (kdeinit)
  grog    2021  0.3  7.5 21780 9276  ??  S    Fri06PM   0:07.92 kdeinit: kicker (kdeinit)
  grog    2029  0.0  3.0 19352 3716  ??  S    Fri06PM  17:37.23 kdeinit: klipper -icon klipper -miniicon klipper (kdeinit
  root   12568  0.0  0.6  1352  780  p5  S+   11:52AM   0:00.01 grep kde
  $ ps aux|grep kde|awk '{ size += $5; resident += $6 }; END {print size " "resident}'
  241992 46264

  $ ps aux|grep fvwm
  USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
  grog    8256  0.0  1.2  2928 1444  p4  I    11:55AM   0:02.05 fvwm2
  grog    8257  0.0  0.3  2380  328  p4  I    11:55AM   0:00.05 /usr/X11R6/libexec/fvwm/2.4.13/FvwmButtons 7 4 none 0 8
  grog    8260  0.0  0.4  2400  536  p4  I    11:55AM   0:00.15 /usr/X11R6/libexec/fvwm/2.4.13/FvwmIconMan 9 4 none 0 8
  grog    8261  0.0  0.4  2380  504  p4  I    11:55AM   0:00.16 /usr/X11R6/libexec/fvwm/2.4.13/FvwmPager 11 4 none 0 8 0 
  grog    8694  0.0  0.3  2316  364  p4  I    12:27PM   0:00.05 /usr/X11R6/libexec/fvwm/2.4.13/FvwmScroll 13 4 none 12000
  $ ps aux|grep fvwm|awk '{ size += $5; resident += $6 }; END {print size " "resident}'
  13760 3920

These are default installations in each case.  242 MB of process space
for kde, 14 MB for fvwm2.  No wonder KDE is slow.  The machine I'm
testing on has 128 MB of RAM, so it's swapping all the time.

These addons for fvwm2 take up a surprising amount of space.  I'm also
running fvwm2 on my main machine, on a multi-head display.  and there
I get:

  $ ps aux|grep fvwm
  grog    80281  0.0  0.3  3180 1320  v0  S    25Dec02   0:10.10 fvwm2 -s -display :0.0 -f .fvwm2rc-wantadilla:0.0
  grog    80282  0.0  0.3  3328 1308  v0  S    25Dec02   0:24.26 fvwm2 -s -display :0.1 -f .fvwm2rc-wantadilla:0.1
  $ ps aux|grep fvwm|awk '{ size += $5; resident += $6 }; END {print size " "resident}'
  6508 2628

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers