RAM comparison thread

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

RAM comparison thread

Postby Hallvor » 2016-03-08 17:25

Hello!

There are often tests online about RAM usage, but test with applications actually running on it are more rare. I am not necessarily looking for a scientific comparison with identical applications. Instead, I would like to see where you can do your everyday tasks with the least use of resources and the applications of your own choice. How much RAM is used when everything is running? (No one really works on an empty desktop.)

The applications I have chosen for this test, if anyone wants to compare numbers, are the following:
Terminal
Web browser
File manager
Video player
Word processor

In order to get a fair comparison, we need the following rules:
1. State your version of Debian, the desktop environment/window manager and the name of your applications!
2. State if 32 or 64 bit.
3. State your results after boot (free -m from the terminal) and free -m again with all applications running.



---------------------------------


I volunteer to start :)

1. Debian 8.3, Trinity Desktop Environment R14.0.3, running the following applications:
Terminal=Konsole
Web browser=Konqueror
File manager=Konqueror (both file manager and web browser open during test, of course)
Video player=KMPlayer
Word processor=KWord (blank page)

2. 32 bit

3. My results after fresh boot: 97MB
My results with everything running: 133MB
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 948
Joined: 2009-04-16 18:35
Location: Norway

Re: RAM comparison thread

Postby edbarx » 2016-03-08 18:55

Memory use on Devuan Jessie 64 bit with iceweasel 44.0.2 running with four pages open. xfce4-terminal, vlc and thunar 1.6.3 running. No wordprocessing programs running.

Code: Select all
 Private  +   Shared  =  RAM used   Program

116.0 KiB +  14.0 KiB = 130.0 KiB   uuidd
164.0 KiB +  34.5 KiB = 198.5 KiB   gnome-pty-helper
196.0 KiB +  29.5 KiB = 225.5 KiB   atd
232.0 KiB +  38.5 KiB = 270.5 KiB   init
236.0 KiB +  79.0 KiB = 315.0 KiB   rpc.idmapd
192.0 KiB + 142.5 KiB = 334.5 KiB   avahi-autoipd (2)
304.0 KiB +  41.0 KiB = 345.0 KiB   dbus-launch
324.0 KiB +  75.5 KiB = 399.5 KiB   cron
368.0 KiB +  40.0 KiB = 408.0 KiB   acpid
396.0 KiB +  15.0 KiB = 411.0 KiB   ssh-agent
372.0 KiB +  42.5 KiB = 414.5 KiB   gpg-agent
464.0 KiB + 129.5 KiB = 593.5 KiB   rpcbind
528.0 KiB + 124.0 KiB = 652.0 KiB   xfconfd
528.0 KiB + 221.5 KiB = 749.5 KiB   su
660.0 KiB + 136.5 KiB = 796.5 KiB   rpc.statd
668.0 KiB + 205.5 KiB = 873.5 KiB   at-spi-bus-launcher
  1.0 MiB +  60.5 KiB =   1.0 MiB   udevd
888.0 KiB + 255.0 KiB =   1.1 MiB   getty (6)
912.0 KiB + 266.0 KiB =   1.2 MiB   polkitd
  1.1 MiB + 161.0 KiB =   1.2 MiB   xscreensaver
  1.2 MiB +  62.5 KiB =   1.3 MiB   rsyslogd
984.0 KiB + 394.0 KiB =   1.3 MiB   dbus-daemon (2)
  1.5 MiB +  41.0 KiB =   1.5 MiB   wpa_supplicant
  1.4 MiB + 313.5 KiB =   1.7 MiB   console-kit-daemon
  1.4 MiB + 593.0 KiB =   1.9 MiB   upowerd
  1.6 MiB + 503.5 KiB =   2.1 MiB   x-session-manag
  1.7 MiB + 610.0 KiB =   2.3 MiB   panel-3-systray
  2.3 MiB + 186.5 KiB =   2.5 MiB   privoxy
  2.1 MiB + 544.0 KiB =   2.6 MiB   xfsettingsd
  2.4 MiB + 573.5 KiB =   2.9 MiB   xfce4-power-manager
  2.0 MiB + 917.0 KiB =   2.9 MiB   xfce4-notifyd
  2.5 MiB + 852.0 KiB =   3.3 MiB   bash (2)
  3.9 MiB + 447.0 KiB =   4.3 MiB   tumblerd
  4.0 MiB +   1.2 MiB =   5.2 MiB   xfwm4
  3.8 MiB +   1.5 MiB =   5.3 MiB   xfdesktop
  4.3 MiB +   1.6 MiB =   5.9 MiB   xfce4-terminal
  6.1 MiB + 921.5 KiB =   7.0 MiB   xfce4-volumed
  6.5 MiB +   1.0 MiB =   7.5 MiB   simple-netaid
  5.8 MiB +   2.0 MiB =   7.8 MiB   Thunar
  6.9 MiB +   1.5 MiB =   8.3 MiB   xfce4-panel
 12.7 MiB + 539.0 KiB =  13.3 MiB   slim
 13.6 MiB + 175.0 KiB =  13.8 MiB   dhclient (2)
 19.6 MiB +   5.6 MiB =  25.1 MiB   Xorg
 43.2 MiB +   5.8 MiB =  49.0 MiB   vlc
234.5 MiB +   2.9 MiB = 237.5 MiB   iceweasel
---------------------------------
                        427.8 MiB
=================================


With Lazarus Free Object Pascal IDE running after compiling a moderately complex GUI application.
Code: Select all
 40.3 MiB + 196.5 KiB =  40.4 MiB   gdb
 52.4 MiB +   1.6 MiB =  54.0 MiB   lazarus
 10.3 MiB +   1.0 MiB =  11.3 MiB   ecalc
Last edited by edbarx on 2016-03-08 20:07, edited 1 time in total.
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: 5397
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: RAM comparison thread

Postby lukas » 2016-03-08 19:42

root@refracta:/home/user# ps_mem.py | grep iceweasel
451.1 MiB + 7.8 MiB = 458.8 MiB iceweasel

compared to the 130 MB when using konqueror ... guess i got to have another look at konqueror
To put it different: The webbrowser is the main problem for me. Else i could easily live with 512 MB.
lukas
 
Posts: 87
Joined: 2011-07-30 15:43

Re: RAM comparison thread

Postby Hallvor » 2016-03-08 19:50

lukas wrote:root@refracta:/home/user# ps_mem.py | grep iceweasel
451.1 MiB + 7.8 MiB = 458.8 MiB iceweasel

compared to the 130 MB when using konqueror ... guess i got to have another look at konqueror
To put it different: The webbrowser is the main problem for me. Else i could easily live with 512 MB.


Konqueror is not that good for web browsing. Many sites are broken, so you're pretty much stuck with Iceweasel or Chrome for those sites.

Anyway, TDE (KDE3) is pretty efficient when you stick with TDE applications.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 948
Joined: 2009-04-16 18:35
Location: Norway

Re: RAM comparison thread

Postby lukas » 2016-03-08 20:00

I am fine with a wm or xfce. When it comes to RAM-usage it doesn't matter, like said.
How did you install TDE? The only option i know would be exegnulinux http://exegnulinux.net/
lukas
 
Posts: 87
Joined: 2011-07-30 15:43

Re: RAM comparison thread

Postby Hallvor » 2016-03-08 20:05

Lukas: Look in the howto section.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 948
Joined: 2009-04-16 18:35
Location: Norway

Re: RAM comparison thread

Postby lukas » 2016-03-08 20:11

found it (i am the man, huh?)
viewtopic.php?p=573234

back to topic, konqueror has nice RAM usage:
root@refracta:/home/user# ps_mem.py | grep konqueror
48.4 MiB + 8.8 MiB = 57.2 MiB konqueror
but is kinda broken on facebook. grml ...
Oh my.
lukas
 
Posts: 87
Joined: 2011-07-30 15:43

Re: RAM comparison thread

Postby edbarx » 2016-03-08 20:17

I tried the KDE 3 fork, also known as Trinity Desktop, but it consumed 466 Mega Bytes only to be loaded :shock: :? . With applications running 1 Giga Bytes were exceeded, and to add insult to injury, there were applications that I couldn't remove. Attempting to remove the latter resulted into a monstrous package uninstallation that I only simulated until I decided to deliver the blow of grace to completely remove and purge Trinity Desktop. For the future, I think, Fluxbox can be useful.
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: 5397
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: RAM comparison thread

Postby keithpeter » 2016-03-08 21:45

Hello All

Fun thread. I suspect that the way the kernel allocates RAM will depend on the amount of RAM in the machine, so can we all please state that or simply copy the output of free -m?

Below a series of measurements on my minimal Jessie 32 bit install on a Thinkpad X200 with 2Gb of RAM and a 64Gb SSD. Goes like brown stuff off a shovel. Loving the dwm/dmenu/surf desktop. Using ifconfig/wpasupplicant for wifi and pmount for external storage.

Below for fresh boot into X with a dwm and a single xterm
Code: Select all
 
             total       used       free     shared    buffers     cached
Mem:          1966        162       1804         16         13         88
-/+ buffers/cache:         59       1906
Swap:         2518          0       2518

Below with one xterm running, the Surf Web browser with one window on this forum (Javascript not disabled), LibreOffice with a fresh Writer document and one sentence, PCManFM file manager showing the multifarious content of my home drive and VLC playing Music for 18 Musicians by Steve Reich as performed by Eighth Blackbird (YouTube via youtube-dl)
Code: Select all
             total       used       free     shared    buffers     cached
Mem:          1966        506       1460         47         20        325
-/+ buffers/cache:        159       1806
Swap:         2518          0       2518

Below an analysis of the full session using ./ps_mem.py as others have posted here
Code: Select all
 Private  +   Shared  =  RAM used   Program

 84.0 KiB +  67.5 KiB = 151.5 KiB   sleep
 76.0 KiB +  87.5 KiB = 163.5 KiB   sh
 76.0 KiB +  94.5 KiB = 170.5 KiB   startx
152.0 KiB +  77.5 KiB = 229.5 KiB   atd
168.0 KiB + 124.5 KiB = 292.5 KiB   xinit
176.0 KiB + 175.5 KiB = 351.5 KiB   avahi-autoipd (2)
276.0 KiB + 143.5 KiB = 419.5 KiB   cron
484.0 KiB +  55.5 KiB = 539.5 KiB   rpc.idmapd
356.0 KiB + 228.5 KiB = 584.5 KiB   rpcbind
376.0 KiB + 235.5 KiB = 611.5 KiB   su
560.0 KiB + 224.0 KiB = 784.0 KiB   login
596.0 KiB + 232.5 KiB = 828.5 KiB   rpc.statd
528.0 KiB + 309.5 KiB = 837.5 KiB   dwm
584.0 KiB + 396.5 KiB = 980.5 KiB   agetty (5)
  1.1 MiB + 135.5 KiB =   1.2 MiB   exim4
  1.1 MiB + 157.5 KiB =   1.2 MiB   systemd-udevd
  1.2 MiB + 136.0 KiB =   1.3 MiB   systemd-journald
  1.0 MiB + 544.5 KiB =   1.5 MiB   oosplash
  1.5 MiB + 121.0 KiB =   1.6 MiB   rsyslogd
  1.8 MiB + 376.5 KiB =   2.2 MiB   wpa_supplicant
  2.1 MiB + 161.0 KiB =   2.2 MiB   systemd
  1.7 MiB + 553.5 KiB =   2.2 MiB   sshd
  3.8 MiB +   1.6 MiB =   5.4 MiB   bash (7)
  5.6 MiB + 696.0 KiB =   6.3 MiB   xterm
  4.9 MiB +   4.5 MiB =   9.5 MiB   pcmanfm
  9.3 MiB + 697.0 KiB =   9.9 MiB   dhclient (2)
 20.6 MiB +   3.9 MiB =  24.5 MiB   Xorg
 35.2 MiB +   6.1 MiB =  41.3 MiB   surf
 78.0 MiB +   4.2 MiB =  82.1 MiB   soffice.bin
 76.8 MiB +   5.7 MiB =  82.5 MiB   vlc
---------------------------------
                        281.8 MiB
=================================

Finally, I can't help post the output of pstree below...
Code: Select all
keith@foo:~$ pstree -A
systemd-+-5*[agetty]
        |-atd
        |-avahi-autoipd---avahi-autoipd
        |-bash---surf-+-{dconf worker}
        |             `-4*[{surf}]
        |-bash---oosplash-+-soffice.bin-+-{OfficeIPCThread}
        |                 |             |-{SelectionManage}
        |                 |             `-{rtl_cache_wsupd}
        |                 |-{oosplash}
        |                 `-{rtl_cache_wsupd}
        |-bash---pcmanfm---{gmain}
        |-bash---vlc---11*[{vlc}]
        |-bash---leafpad
        |-cron
        |-2*[dhclient]
        |-exim4
        |-login---bash---startx---xinit-+-Xorg
        |                               `-dwm-+-sh---sleep
        |                                     `-xterm---bash---pstree
        |-rpc.idmapd
        |-rpc.statd
        |-rpcbind
        |-rsyslogd-+-{in:imklog}
        |          |-{in:imuxsock}
        |          `-{rs:main Q:Reg}
        |-sshd
        |-systemd-journal
        |-systemd-udevd
        `-wpa_supplicant

As I mentioned on the alternative Web browser thread, I find the suckless software Web browser Surf to be stable if possibly insecure. The dwb browser I found to be very crashy which is a shame as I like the UI. VLC is running at cpu=25% on this core-duo laptop, running the mp4 video full screen at 1280x700.
User avatar
keithpeter
 
Posts: 502
Joined: 2009-06-14 08:06
Location: 5230n 0155w

Re: RAM comparison thread

Postby lukas » 2016-03-08 22:42

keithpeter wrote:Hello All

Fun thread. I suspect that the way the kernel allocates RAM will depend on the amount of RAM in the machine, so can we all please state that or simply copy the output of free -m?

Good point.
The laptop has got 1 Gig of RAM, the desktop 4 Gigs. On both iceweasel ist the main problem and using ~ 400 MB after a short while. The rest of the software mentioned in the OP i don't use anyway (well: tilda as a terminal-emulator, it uses 3 MB, nothing which matters).
lukas
 
Posts: 87
Joined: 2011-07-30 15:43

Re: RAM comparison thread

Postby spacex » 2016-03-08 23:43

Hallvor wrote:
1. Debian 8.3, Trinity Desktop Environment R14.0.3, running the following applications:
Terminal=Konsole
Web browser=Konqueror
File manager=Konqueror (both file manager and web browser open during test, of course)
Video player=KMPlayer
Word processor=KWord (blank page)

2. 32 bit

3. My results after fresh boot: 97MB
My results with everything running: 133MB


Sorry dude, but I don't believe you. If that's the stats you get reported, then something is seriously wrong with whatever you use to report it. File a bug-report :lol:
spacex
 
Posts: 637
Joined: 2015-01-17 01:27

Re: RAM comparison thread

Postby emariz » 2016-03-09 03:54

Should the open documents not be standardised? I mean, a word processor with a blank document and a video player which is not playing a video are pointless improbable examples. What about a word processor displaying a small (250+ words) essay with active orthographic correction and a web browser with at least to active tabs displaying a newspaper and e-mail?

Moreover, in my case a video player would not even be open if I were working on a word processor. Yet, and for the purposes of this thread, the memory consumption would depend on the quality and length of the displayed video.
emariz
 
Posts: 2916
Joined: 2008-10-17 07:59

Re: RAM comparison thread

Postby Hallvor » 2016-03-09 05:50

spacex wrote:
Hallvor wrote:
1. Debian 8.3, Trinity Desktop Environment R14.0.3, running the following applications:
Terminal=Konsole
Web browser=Konqueror
File manager=Konqueror (both file manager and web browser open during test, of course)
Video player=KMPlayer
Word processor=KWord (blank page)

2. 32 bit

3. My results after fresh boot: 97MB
My results with everything running: 133MB


Sorry dude, but I don't believe you. If that's the stats you get reported, then something is seriously wrong with whatever you use to report it. File a bug-report :lol:


For the sake of (pseudo?) science I'll test again later (and post the output of free -m). :D
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 948
Joined: 2009-04-16 18:35
Location: Norway

Re: RAM comparison thread (Pure TDE awesomeness) :)

Postby Hallvor » 2016-03-10 14:39

Here are some pics with free -m output and applications running in the background:

Clean boot (just Konsole):

Image

With Konsole and Konqueror web browser:

Image

With Konsole, Konqueror web browser and Konqueror file manager:

Image

With Konsole, Konqueror web browser, Konqueror file manager and KMplayer (video player):
Image

With Konsole, Konqueror web browser, Konqueror file manager, KMplayer and Kword (word processor):

Image
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 948
Joined: 2009-04-16 18:35
Location: Norway

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

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable