RAM comparison thread

Here you can discuss every aspect of Debian. Note: not for support requests!

Re: RAM comparison thread

Postby dzz » 2016-03-11 01:55

Running TDE here on a number of Debian systems since it was first forked. I never experienced what edbarx wrote about TDE in dozens+ of TDE installs (but not nearly as good as Hallvor posted). It's normally similar resource usage to xfce4, which I also use. A TDE installation can be anything from tde-base-trinity (basic DE) to tde-trinity (monster meta). That might make a difference, I don't install the meta. Whether you use a display manager (on this box, TDM) or startx likely counts.

One machine here, a dell tower with only 512 ram running wheezy+TDE can do web, libreoffice and video.

At the moment all I got available is a 64-bit Devuan/Jessie +TDE system available, on an old Lenovo with intel core2 and 1G ram. I'm also running consolekit(2) and wicd, both known resource hogs. A terminal and text editor are already open.

Sorry, this is a quite unscientific test, on what's not even pure Debian.. point is, all of these things can be done with only 1G ram (or less) while running a fully-featured DE.

Startup:

Code: Select all
:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           991        361        629         33         30        167
-/+ buffers/cache:        164        827
Swap:         2008          0       2008


+ Open iceweasel at viewtopic.php?f=20&t=127436:

Code: Select all
:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           991        553        437         45         34        256
-/+ buffers/cache:        262        728
Swap:         2008          0       2008


+ Open libreoffice writer:

Code: Select all
:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           991        710        280         50         35        381
-/+ buffers/cache:        293        697
Swap:         2008          0       2008


+ Open konqueror file manager:

Code: Select all
:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           991        745        245         51         36        390
-/+ buffers/cache:        318        672
Swap:         2008          0       2008


+ Play an mp4 video in kaffeine (no stuttering/jumping):

Code: Select all
:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           991        832        158         63         36        431
-/+ buffers/cache:        364        626
Swap:         2008          0       2008


The only trouble I get on this machine is multiple tabs in the weasel with flash content or mksquashfs (but that's cpu not ram)
dzz
 
Posts: 257
Joined: 2007-02-05 20:39
Location: Devon, England

Re: RAM comparison thread

Postby edbarx » 2016-03-11 07:33

dzz wrote:Running TDE here on a number of Debian systems since it was first forked. I never experienced what edbarx wrote about TDE in dozens+ of TDE installs (but not nearly as good as Hallvor posted). It's normally similar resource usage to xfce4, which I also use. A TDE installation can be anything from tde-base-trinity (basic DE) to tde-trinity (monster meta). That might make a difference, I don't install the meta. Whether you use a display manager (on this box, TDM) or startx likely counts.

To be fair, I installed Trinity Desktop using tde-trinity which pulled many packages that I didn't want to install. The selection of automatically chosen software was clearly aimed at common computer users who only use a computer to chat, surf the net, write emails, watch videos, listen to music and share files.

If I remember well there was also file indexing going on, sudo was installed and su failed to recognise my root password.

ADDED LATER:
The following memory usage is after I stopped slim and XFCE using the command:
Code: Select all
# /etc/init.d/slim stop

It seems the kernel alone is using ~420 Mega Bytes! My installed kernel version is 3.2.0-4-rt-amd64. Running startx after stopping slim and saving the results shown below to a text file resulted into XFCE being loaded almost instantly. This shows that the kernel is doing some type of memory caching so that already used programs would use the same memory image avoiding reading and loading their executable code into memory. Unless there is a way of looking into what memory is chached by the kernel, memory use reporting alone is next to useless. Kernel memory caching is a brilliant idea to improve overall system response and to reduce having to read data from disks.

Code: Select all
             total       used       free     shared    buffers     cached
Mem:          1941        466       1474          6         41        327
-/+ buffers/cache:         97       1843
Swap:            0          0          0

 Private  +   Shared  =  RAM used   Program

116.0 KiB +  18.0 KiB = 134.0 KiB   uuidd
196.0 KiB +  34.5 KiB = 230.5 KiB   atd
232.0 KiB +  61.5 KiB = 293.5 KiB   init
188.0 KiB + 164.5 KiB = 352.5 KiB   avahi-autoipd (2)
328.0 KiB +  38.0 KiB = 366.0 KiB   rpc.idmapd
384.0 KiB +  38.5 KiB = 422.5 KiB   gpg-agent
324.0 KiB + 104.5 KiB = 428.5 KiB   cron
380.0 KiB +  57.0 KiB = 437.0 KiB   acpid
456.0 KiB + 153.5 KiB = 609.5 KiB   rpcbind
664.0 KiB + 162.5 KiB = 826.5 KiB   rpc.statd
512.0 KiB + 325.5 KiB = 837.5 KiB   su
812.0 KiB +  71.0 KiB = 883.0 KiB   dbus-daemon
680.0 KiB + 324.5 KiB =   1.0 MiB   login
740.0 KiB + 332.5 KiB =   1.0 MiB   getty (5)
  1.1 MiB +  86.5 KiB =   1.2 MiB   udevd
  1.3 MiB +  76.5 KiB =   1.3 MiB   rsyslogd
  1.5 MiB +  50.0 KiB =   1.5 MiB   wpa_supplicant
  1.3 MiB + 647.0 KiB =   1.9 MiB   polkitd
  1.6 MiB + 831.0 KiB =   2.4 MiB   console-kit-daemon
  2.2 MiB + 123.5 KiB =   2.4 MiB   privoxy
  2.2 MiB + 762.0 KiB =   3.0 MiB   upowerd
  3.0 MiB + 969.0 KiB =   3.9 MiB   bash (2)
 13.6 MiB + 183.0 KiB =  13.8 MiB   dhclient (2)
---------------------------------
                         39.1 MiB
=================================
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
User avatar
edbarx
 
Posts: 5383
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: RAM comparison thread

Postby alderaan » 2016-03-14 15:01

I 'll try to make mine a little more scientific (lol).

Machine 1:
CPU: Intel Core 2 Duo E6550 @2.33 GHz [64-bit]
Video: Intel GMA 3100
RAM: 4 GB
OS: Debian 8 Jessie (Stable) [64-bit]
DE: XFCE
Applications:
Terminal: xfce-4 terminal running only top and one tab for the memory check
Web browser: Iceweasel (2 windows, 12 tabs total)
File manager: Thunar (2 tabs)
Text Editor: Mousepad


(A) Recovery mode (just after booting)
(B) CLI booting with the parameter: "systemd.unit=multi-user.target" on the kernel line
(C) GUI but zero programms running (just after booting)
(D) Busy: GUI but no uptime
(E) Busy and after 21 days uptime

Code: Select all
Session      free -m        ps_mem.py
  (A)          140           28.7 MiB
  (B)          187           58.0 MiB
  (C)          428          195.1 MiB
  (D)         1163          700.6 MiB
  (E)         3447            1.1 GiB


Pretty impressive, isn't it?
Some notes:
* Between sesions (E) and (D) the Iceweasel is dropping from 869 to 700 MiB (according to ps_mem.py) with exactly the same tabs opened!
* After the womping 869 MiB of Icewesel in session (E) the next biggest number is 24.3 MiB for xfce4-appfinder.

======================================================================================================================

Machine 2:

CPU: Intel Pentium 4 3.20 Ghz [64-bit]
Video: Integrated Graphics
RAM: 1.5 GiB
OS: Debian 8 Jessie (Stable) [64-bit]
DE: LXDE

Applications:

Terminal: LX Terminal running only top and one tab for the memory check
Web browser: Iceweasel (3 windows, 23 tabs total)
E-mail client: Icedove (many big mail accounts + Usenet + RSS)
File manager: PCManFM (2 windows, 5 tabs total)
Video player: VLC playing a 2.4 GiB movie (xvid.avi file)
Libre Office: 3 spreadsheat files (totaling size: 1.1 MiB)
Torrent Client: Transmission (Downloading 1 file and seeding 8)
Text Editor: Leafpad


(A) Recovery mode (just after booting)
(B) CLI booting with the parameter: "systemd.unit=multi-user.target" on the kernel line
(C) GUI but zero programms running (just after booting)
(D) Busy: GUI but no uptime
(E) Busy and after 6 days uptime

Code: Select all
Session       free -m       ps_mem.py
  (A)          99           20.7 MiB
  (B)         135           42.4 MiB
  (C)         368          158.1 MiB
  (D)         1408         961.3 MiB
  (E)         1396         718.7 MiB


How memory usage is bigger in (D) than (E), I can't explain!


The same machine with a quite minimal Sid installation that I use for experimenting and learning (with XFCE and Enlightenment available hence the two numbers in the (C) session):

Code: Select all
Session       free -m       ps_mem.py
  (A)          20             9.2 MiB
  (B)          35            42.0 MiB
  (C)         112/65        167/104 MiB


=> Enlightenment is quite lighter than XFCE
alderaan
 
Posts: 90
Joined: 2013-07-25 20:20

Re: RAM comparison thread

Postby None1975 » 2016-12-27 18:13

I installed Trinity Desktop R14.0.4, using tde-trinity metapackage. On cold startup, with default configuration, it uses only 200 mb. of RAM (x64 bit. machine). Very lightwieght (i think). :D
OS: Debian 9.1 / WM: I3, branch "gaps-next"
Debian Wiki | DontBreakDebian
User avatar
None1975
 
Posts: 133
Joined: 2015-11-29 18:23
Location: Lithuania

Re: RAM comparison thread

Postby wizard10000 » 2016-12-27 18:50

None1975 wrote:I installed Trinity Desktop R14.0.4, using tde-trinity metapackage. On cold startup, with default configuration, it uses only 200 mb. of RAM (x64 bit. machine). Very lightwieght (i think). :D


I installed the version mapped to Sid, which pulls in all of the stable tde-trinity metapackage as a dependency; you can see it in sources.list . Slight grumble there.

I removed a buncha packages I could no longer reinstall if I wanted and didn't like that much, so I also mapped the stable repo at a bit lower priority. Now I can add and remove individual components :)

I'm having a ball with it, though. Still haven't fixed the touchpad as I've been finishing up another project but at least now I can add and remove packages on a whim. My 32-bit full install + conky used 193mb at idle. I've lightened that by about 20mb with a bit more work to do, right now it's within 3mb of my fluxbox install at idle.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1143
Joined: 2011-05-09 20:02
Location: midwestern us

Re: RAM comparison thread

Postby NFT5 » 2016-12-27 20:21

AMD FX6300 with 8GB RAM, MATE & Marco.

Code: Select all
chris@BOSSDESK:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          7972        816       7155         18         40        316
-/+ buffers/cache:        460       7512
Swap:        15943          0      15943
chris@BOSSDESK:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          7972       1724       6247         26        103        728
-/+ buffers/cache:        893       7079
Swap:        15943          0      15943
chris@BOSSDESK:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          7972       4973       2998         32        120       1534
-/+ buffers/cache:       3318       4654
Swap:        15943          0      15943
chris@BOSSDESK:~$


First is on clean boot.

Second is with:
Firefox 45.5 with 2 tabs open
OpenOffice Writer with a 2 page document open
VLC playing an MP3
MATE Terminal
Dolphin file manager

Third is more like I usually run:
Firefox with 2 tabs open
MATE Terminal
Dolphin file manager
WinXP running in Virtualbox with a database open and 2GB RAM allocated to that VM
Thunderbird open

Chews up the RAM pretty quick and I've been using Win7 Pro in another VM which has 4GB allocated so really starting to think about upping RAM to 16GB. Swap is on an SSD so doesn't penalise me too much at present when it is used.
User avatar
NFT5
 
Posts: 208
Joined: 2014-10-10 11:38
Location: Canberra, Australia

Re: RAM comparison thread

Postby wizard10000 » 2017-01-02 18:12

bump.

I ended up removing Trinity from my 32-bit Sid netbook and it didn't come off clean at all - there were four uninstall scripts that needed to be fixed - don't remember all of them but konqueror and kwin uninstall scripts were two of them. At the time I was a little more concerned with getting the machine fixed than filing a bug report, so oops.

Anyhoo, decided to nuke and reload since I was on vacation anyway. Blew the netbook away and installed the bare minimum; after the installer finished I installed slim, fluxbox, an nfs server, autofs, pcmanfm xinit and xorg and started from there. Machine right now is idling at 96MB, has compositing enabled and is working great. Took me a bit to get conky to display battery status as I can be a little thick-headed and didn't notice that ACPI was not installed :mrgreen:

What runs on startup -
Code: Select all
fbsetbg /home/wizard/Pictures/wallpaper/real-carbon-fiber-full-hd-wallpaper-1920x1080.jpg
compton -bcC -e0.6 -z --shadow-exclude '_NET_WM_OPAQUE_REGION@:c' &
xset dpms 0 0 600 b off r rate 500 10
sleep 2 && volumeicon &
conky -d -c /home/wizard/.config/conky/conky.conf &


Since Sid has transitioned from a synaptics driver to libxinput I had to do a bit of an xorg configuration on the thing to get the trackpad to do what I wanted. Stolen from Arch's wiki, but here it is -
Code: Select all
Section "InputClass"
        Identifier      "Touchpad"                      # required
        MatchIsTouchpad "yes"                           # required
        Driver          "synaptics"                     # required
        Option          "EmulateTwoFingerMinZ"  "35"
        Option          "EmulateTwoFingerMinW"  "8"
        Option          "MinSpeed"              "0.5"
        Option          "MaxSpeed"              "1.0"
        Option          "AccelFactor"           "0.075"
        Option          "TapButton1"            "1"
        Option          "TapButton2"            "2"     # multitouch
        Option          "TapButton3"            "3"     # multitouch
        Option          "VertTwoFingerScroll"   "1"     # multitouch
        Option          "HorizTwoFingerScroll"  "1"     # multitouch
        Option          "VertEdgeScroll"        "1"
        Option          "CoastingSpeed"         "8"
        Option          "CornerCoasting"        "1"
        Option          "EdgeMotionUseAlways"   "1"
        Option          "LBCornerButton"        "8"     # browser "back" btn
        Option          "RBCornerButton"        "9"     # browser "forward" btn
EndSection


Now the really cool thing is that this is not a multitouch trackpad but multitouch is emulated so two- and three-finger tap and scroll work; actions are mapped in ~/.fluxbox/keys but this gave me the options :)

I haven't had a useful gooey environment under 100mb in years, so this is kinda cool.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1143
Joined: 2011-05-09 20:02
Location: midwestern us

Re: RAM comparison thread

Postby Head_on_a_Stick » 2017-01-02 18:39

wizard10000 wrote:slim

That project is dead upstream and the display manager doesn't handle systemd user sessions correctly, this can cause problems (if you use systemd).

I would recommend LightDM instead.

Or https://bbs.archlinux.org/viewtopic.php ... 6#p1680406 :D
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: RAM comparison thread

Postby wizard10000 » 2017-01-02 19:13

Head_on_a_Stick wrote:I would recommend LightDM instead. Or https://bbs.archlinux.org/viewtopic.php ... 6#p1680406 :D


Yeah, you're probably right. I'd thought slim got a recent upgrade but when I looked at its changelog it was two years ago :mrgreen:

Easy to fix.

edit: Fixed :)

Also wrote my first systemd unit today. I use an archaic freeware program called GMABooster to reclock my Intel GMA950 video chipset from stock netbook 166MHz to 400MHz, which is the design spec for the chipset. This partiaular netbook underclocks the video chipset because power saving.

Program needs to be run as root so I was thinking rc.local, but then I would have had to enable the rc.local systemd unit which sounds like a Dumb Idea to me, so I wrote a quick and dirty gmabooster.service and got it working on the third try :lol:

Now all it needs is a smallish SSD and I'll be set. I have a 60GB SSD in my PS3 but Skyrim really doesn't like spindles :mrgreen:
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1143
Joined: 2011-05-09 20:02
Location: midwestern us

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable