Minimalistic setups - what are you running?

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

Minimalistic setups - what are you running?

Postby bedtime » 2018-02-07 18:50

It seems that there are quite a few people on the forum who are into mininam setups (i.e., using low memory, cpu, diskspace...)

Right now I've taken minimalisation on as a hobby, so I'm interested to hear about what people are running. Please include some stats if you can.


I'll go first:

Version: Buster
Kernel: 4.14 (self compiled)
WM: dwm
Terminal: sc
Network: dhcpcd <3
Serv. Man.: sysinit
System Mem.: 4G
Memory used in graphical env. (not incl. buff.): 45M

A big factor seems to be the amount of ram you start with; the system processes seem to take more when you give them more. On a 1.5G machine, the same setup used about 25M.
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 81
Joined: 2012-12-16 19:34

Re: Minimalistic setups - what are you running?

Postby Head_on_a_Stick » 2018-02-07 19:06

Version: Alpine Linux, edge repositories
Kernel: 4.14.17, stock Alpine kernel
WM: dwm [1]
Terminal: rxvt-unicode (daemon+clients)
Network: wpa_supplicant & static IPs
Init: OpenRC
System memory: 4GiB (amd64)
Memory used: 32MiB

ps_mem screenshot

You should switch from bloated old sysvinit to something more Unix-like :mrgreen:

Guide here:

viewtopic.php?f=16&t=134915

[1] it's actually my own fork with all the xinerama stuff stripped out and my configuration hard-coded in: https://github.com/Head-on-a-Stick/dwm
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7783
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Minimalistic setups - what are you running?

Postby bedtime » 2018-02-08 11:54

Head_on_a_Stick wrote:Version: Alpine Linux, edge repositories
Kernel: 4.14.17, stock Alpine kernel
WM: dwm [1]
Terminal: rxvt-unicode (daemon+clients)
Network: wpa_supplicant & static IPs
Init: OpenRC
System memory: 4GiB (amd64)
Memory used: 32MiB

I'm impressed! *jealous* How is the text in rxvt? I found it to be too small for my liking, even with messing with .Xresources file. I like st term because it has hinted fonts and ease of editing the code.

Haven't heard of the Alpine kernel but will look up.

ps_mem screenshot

You should switch from bloated old sysvinit to something more Unix-like :mrgreen:

Guide here:

viewtopic.php?f=16&t=134915

[1] it's actually my own fork with all the xinerama stuff stripped out and my configuration hard-coded in: https://github.com/Head-on-a-Stick/dwm

Thank you! I checked out the guide and tried to get it going for a bit and then gave up; I'm lucky to still be here! :shock:

I remember using openrc, and I loved it; so simple. For now, I use the xinerama stuff as I have dual monitors, but if I could properly get my xorg file configured, I could get rid of xinerama and not have to use xrandr, which would be nice. Then I would use your code. :)

Also, I should mention that I'm using surf browser (with tab coding added) and 'sic' irc client (if anyone cannot tell, I like suckless apts)...

If you or anyone knows of a decent way to 'easily' play youtube videos cheaply, please comment; I don't want to have to go though hoops to watch a video. :?
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 81
Joined: 2012-12-16 19:34

Re: Minimalistic setups - what are you running?

Postby None1975 » 2018-02-08 14:07

bedtime wrote:I'm impressed! *jealous* How is the text in rxvt? I found it to be too small for my liking, even with messing with .Xresources file.

Hello. For rxvt I use this set up. My fonts looks good :D
Code: Select all
! urxvt -------------------------------------------

URxvt.font: xft:Monospace:size=11
URxvt.boldFont: xft:Monospace:Bold:size=11
URxvt.letterSpace: -2

Image
Last edited by None1975 on 2018-02-09 15:01, edited 1 time in total.
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 559
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Minimalistic setups - what are you running?

Postby debiman » 2018-02-08 18:23

Version: jessie (oldstable)
Kernel: 3.16
WM: none
Terminal: tty
Network: nginx
Serv. Man.: mostly systemd
System Mem.: 2G
Memory used in graphical env. (not incl. buff.): -
User avatar
debiman
 
Posts: 2605
Joined: 2013-03-12 07:18

Re: Minimalistic setups - what are you running?

Postby Head_on_a_Stick » 2018-02-08 21:08

bedtime wrote:Haven't heard of the Alpine kernel but will look up.

Yes, sorry, I was being cheeky and posted the specifications for my Alpine Linux system (not Debian-based), this uses a busybox-based init and user space all compiled from musl libc rather than the bloated GNU variant and so has several advantages over Debian in respect of minimalism.

https://alpinelinux.org/

Anyway, my quoted figure is from the ps_mem utility so you should try that in your system so that we are comparing like-with-like:

https://github.com/pixelb/ps_mem

I think the `free` command over-estimates usage at low levels.

Are you still using bash?

That's as bloated as the rest of GNU's software range and can be swapped out for mksh (as found in your smartphone) for a faster, lighter, less buggy shell.

https://packages.debian.org/stretch/mksh
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7783
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Minimalistic setups - what are you running?

Postby Bulkley » 2018-02-08 22:30

You might be interested in this old thread on streamlining Debian. There are good tips in it.
Bulkley
 
Posts: 5601
Joined: 2006-02-11 18:35

Re: Minimalistic setups - what are you running?

Postby bedtime » 2018-02-09 23:03

None1975 wrote:
bedtime wrote:I'm impressed! *jealous* How is the text in rxvt? I found it to be too small for my liking, even with messing with .Xresources file.

Hello. For rxvt I use this set up. My fonts looks good :D
Code: Select all
! urxvt -------------------------------------------

URxvt.font: xft:Monospace:size=11
URxvt.boldFont: xft:Monospace:Bold:size=11
URxvt.letterSpace: -2

Image

URxvt installed and running now. Ran as daemon. And yes, the fonts do look great (when I finally knew how to set them up). :) I like the tabs and backscroll. This will be my default term as it requires less resources than st when multiple tabs open.

debiman wrote:Version: jessie (oldstable)
Kernel: 3.16
WM: none
Terminal: tty
Network: nginx
Serv. Man.: mostly systemd
System Mem.: 2G
Memory used in graphical env. (not incl. buff.): -

Oldskool! :P

Head_on_a_Stick wrote:
bedtime wrote:Haven't heard of the Alpine kernel but will look up.

Yes, sorry, I was being cheeky and posted the specifications for my Alpine Linux system (not Debian-based), this uses a busybox-based init and user space all compiled from musl libc rather than the bloated GNU variant and so has several advantages over Debian in respect of minimalism.

https://alpinelinux.org/

I just watched a video (the 2017 DockerCon vid), and seems like something I want to try. Might try on the weekend. I really like that it uses OpenRC as its startup. <3 I only need to install a few things such as LibreOffice (a must for the work I do), surf, and mpsyt.

Anyway, my quoted figure is from the ps_mem utility so you should try that in your system so that we are comparing like-with-like:

https://github.com/pixelb/ps_mem

I think the `free` command over-estimates usage at low levels.

I don't like having to use root to do this process. But whatevs... Here is my result:
Code: Select all
# ps_mem
 Private  +   Shared  =  RAM used   Program

100.0 KiB +  87.5 KiB = 187.5 KiB   startx
176.0 KiB + 162.0 KiB = 338.0 KiB   sh (2)
264.0 KiB +  76.5 KiB = 340.5 KiB   init
244.0 KiB + 139.0 KiB = 383.0 KiB   xinit
236.0 KiB + 166.0 KiB = 402.0 KiB   fittstool
480.0 KiB +  51.0 KiB = 531.0 KiB   dhcpcd5
288.0 KiB + 429.0 KiB = 717.0 KiB   mksh (2)
596.0 KiB + 166.0 KiB = 762.0 KiB   cgmanager
516.0 KiB + 371.0 KiB = 887.0 KiB   su
632.0 KiB + 341.5 KiB = 973.5 KiB   login
  1.0 MiB + 208.0 KiB =   1.2 MiB   dbus-daemon
768.0 KiB + 574.0 KiB =   1.3 MiB   getty (5)
  1.1 MiB + 269.5 KiB =   1.3 MiB   sudo
960.0 KiB + 498.5 KiB =   1.4 MiB   dwm
  1.2 MiB + 244.5 KiB =   1.4 MiB   tabbed
604.0 KiB + 967.0 KiB =   1.5 MiB   urxvtd (2)
  2.3 MiB + 134.5 KiB =   2.5 MiB   systemd-udevd
  2.7 MiB + 238.0 KiB =   2.9 MiB   systemd-logind
  8.3 MiB +   1.8 MiB =  10.1 MiB   urxvt (2)
 24.7 MiB +  24.9 MiB =  49.6 MiB   Xorg
 61.9 MiB +  12.0 MiB =  73.9 MiB   WebKitNetworkProcess (3)
 36.2 MiB +  39.6 MiB =  75.7 MiB   surf (3)
245.6 MiB +  48.8 MiB = 294.4 MiB   WebKitWebProcess (3)
---------------------------------
                        522.8 MiB
=================================
#

Seems that xorg is the hog here. Obviously I have some applications open, but one can see mainly what is generally opened on startup.



Are you still using bash?

That's as bloated as the rest of GNU's software range and can be swapped out for mksh (as found in your smartphone) for a faster, lighter, less buggy shell.

https://packages.debian.org/stretch/mksh

Was using zsh but am now running mksh as I have just looked into it and seems to fit the needs of the system.

Bulkley wrote:You might be interested in this old thread on streamlining Debian. There are good tips in it.

Thank you. I have just finished the aforementioned stuff and wanted to get this post in. Will update on progress. :)
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 81
Joined: 2012-12-16 19:34

Re: Minimalistic setups - what are you running?

Postby Head_on_a_Stick » 2018-02-10 10:10

bedtime wrote:
Code: Select all
768.0 KiB + 574.0 KiB =   1.3 MiB   getty (5)

If you're using sysvinit then you can disable the TTYs you don't use in /etc/inittab

Interestingly, under systemd the TTY screens are only started "on demand" so that step is not needed :)

Code: Select all
 24.7 MiB +  24.9 MiB =  49.6 MiB   Xorg

Ouch.

If this an Intel machine try removing xserver-xorg-video-intel; if you're using any proprietary drivers switch back to the open version — fglrx is a complete memory hog, for example.

Code: Select all
 61.9 MiB +  12.0 MiB =  73.9 MiB   WebKitNetworkProcess (3)
 36.2 MiB +  39.6 MiB =  75.7 MiB   surf (3)
245.6 MiB +  48.8 MiB = 294.4 MiB   WebKitWebProcess (3)

While surf is a beautiful piece of software, the webkit libraries upon which it is based are not updated in Debian stable and so are dangerously outdated and should not be used.

The Debian stretch release notes have a warning to this effect:

https://www.debian.org/releases/stable/ ... r-security

The suckless site also has a warning about webkit:
suckless.org wrote:Note On Webkit Versions

Compile your own webkit or expect hell. The packaging of webkit is pure insane.

https://surf.suckless.org/

Good luck with that...

EDIT: I see you're using buster, that will be at least 10-14 days behind sid in respect of fixes for webkit so switching to unstable may be wise.

I prefer this technique when tracking sid:

https://www.debian.org/doc/manuals/debi ... al_literal
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7783
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Minimalistic setups - what are you running?

Postby Nili » 2018-02-10 14:01

24MB on idle
Code: Select all
#! nili ~ $ pstree
init─┬─dbus-daemon
     ├─login───startx───xinit─┬─Xorg
     │                        └─spectrwm─┬─conky───7*[{conky}]
     │                                   └─urxvt───bash───pstree
     └─udevd

Code: Select all
#! nili ~ $ psmem
 Private  +   Shared  =  RAM used   Program

176.0 KiB + 118.5 KiB = 294.5 KiB   startx
200.0 KiB + 159.0 KiB = 359.0 KiB   init
188.0 KiB + 305.5 KiB = 493.5 KiB   xinit
576.0 KiB + 196.0 KiB = 772.0 KiB   dbus-daemon
648.0 KiB + 210.0 KiB = 858.0 KiB   conky
564.0 KiB + 358.5 KiB = 922.5 KiB   login
856.0 KiB + 422.0 KiB =   1.2 MiB   sudo
  1.3 MiB + 211.5 KiB =   1.5 MiB   udevd
  1.5 MiB + 625.0 KiB =   2.1 MiB   bash
  1.1 MiB +   1.2 MiB =   2.3 MiB   spectrwm
  3.3 MiB +   1.4 MiB =   4.6 MiB   urxvt
  8.3 MiB + 479.5 KiB =   8.7 MiB   Xorg
---------------------------------
                         24.2 MiB
=================================
Warning: Swap is not reported by this system.
#! nili ~ $
OS: Devuan
WM: Openbox (maximized:true|decor:no|focus:yes)
-
Android: S8+/S9+ Audio Hi-Res (24-bit) WAV/FLAC @ mora.jp (awesome cleanliness)
User avatar
Nili
 
Posts: 329
Joined: 2014-04-30 14:04
Location: $HOME/♫♪

Re: Minimalistic setups - what are you running?

Postby Head_on_a_Stick » 2018-02-10 18:52

^ very impressive Nili :cool:

Is that a 32-bit system?

How much RAM are you running?
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7783
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Minimalistic setups - what are you running?

Postby Nili » 2018-02-10 19:29

Thanks :D Of course it is (x32/i686-pae). I could not made 20 MB with x64 with my ability.
I have 2GB installed.

It starts that way
18MB on boot or X
22MB startx + spectrwm + conky-cli
28MB ### +URxvt
40MB #### +SpaceFM
150MB ##### +Browser
300MB ###### +mpv
+ other daily tools/apps, so the tightened usage is 400MB. The rest are waste RAM.
OS: Devuan
WM: Openbox (maximized:true|decor:no|focus:yes)
-
Android: S8+/S9+ Audio Hi-Res (24-bit) WAV/FLAC @ mora.jp (awesome cleanliness)
User avatar
Nili
 
Posts: 329
Joined: 2014-04-30 14:04
Location: $HOME/♫♪

Re: Minimalistic setups - what are you running?

Postby pylkko » 2018-02-11 16:08

not to rain on the parade, but like some one said here previously: 32 (or 20) MB RAM idle, also known as 1 GB+ of RAM web browsing

check out nanolinux, which claims the total OS ( most common desktop applications and several games) is 14 MB.
https://sourceforge.net/projects/nanolinux/
User avatar
pylkko
 
Posts: 1314
Joined: 2014-11-06 19:02

Re: Minimalistic setups - what are you running?

Postby Head_on_a_Stick » 2018-02-11 16:26

pylkko wrote:1 GB+ of RAM web browsing

Depends on the browser :)

Here's a browser, a terminal and a task manager all running in less than 45MiB:

https://cdn.scrot.moe/images/2018/02/11 ... _scrot.png

nanolinux

Nice!
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7783
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Minimalistic setups - what are you running?

Postby HuangLao » 2018-02-11 19:32

Head_on_a_Stick wrote:Version: Alpine Linux, edge repositories
Kernel: 4.14.17, stock Alpine kernel
WM: dwm [1]
Terminal: rxvt-unicode (daemon+clients)
Network: wpa_supplicant & static IPs
Init: OpenRC
System memory: 4GiB (amd64)
Memory used: 32MiB

ps_mem screenshot

You should switch from bloated old sysvinit to something more Unix-like :mrgreen:


SalixOS/Slackware
Kernel: 4.4.115
WM: fluxbox
Init: BSD/sysv
Mem: 8G
Used: when loads 50MB, idle closer to 100MB
Image
Last edited by HuangLao on 2018-02-11 19:53, edited 1 time in total.
User avatar
HuangLao
 
Posts: 459
Joined: 2015-01-27 01:31

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable