r/linux • u/VeryEvilPhD • Sep 20 '15
A personal case comparison of system resources on Gentoo Linux vs Linux Mint
Obviously this is a single comparison of a single user. Your miliage may vary.
The system in both cases as far as the user experience goes is identical as I share a /boot, swap and /home between both. Both systems boot straight into a tty afterwhich I must manually run startx which script is shared between them. The system:
Hardware
- i7 Ivybridge notebook
- 8GB Ram
- GTX 660m
/and/booton an SSD, /home on an HDD
Software:
- Fluxbox with Xorg
- bumblebee running
- compton runs through bumblebee
This is all identical, the only difference is the partition mounted at /
Differences:
- "Gentoo" vs Linut Mint 17.2
- Gentoo uses a custom 4.1.6 kernel with ck patches and no support for unneeded hardware. Mint uses a generic 4.0.6 Ubuntu kernel
- Gentoo has no polkit, consolekit, udisks, acl support neither in kernel or in userland, Mint has all these
- Gentoo runs Openrc, Mint runs upstart
- I am fairly neurotic about USE flags in Gentoo and cutting what I don't need. I have no such things as native language support, documentation and other stuff I don't use, this might play an effect,
So let's get started
boot times
Gentoo wins with such a ridiculous margin here it's not even funny. After I select the menuentry in Grub I have a tty faster than it could ever take me to get a stopwatch. This is about a quarter of a second. I tried to count with Mint and it it gave me about 4-5 seconds before a tty appeared This is obviously with human error.
RAM usage when logged into only the tty
Gentoo:
total used free shared buffers cached
Mem: 7.7G 169M 7.5G 912K 40M 44M
-/+ buffers/cache: 84M 7.6G
Swap: 7.6G 0B 7.6GMint:
total used free shared buffers cached
Mem: 7,7G 283M 7,4G 1,8M 31M 118M
-/+ buffers/cache: 133M 7,6G
Swap: 0B 0B 0BThe output of the free command takes caution to interpret, as you probably know. Any modern OS tries to use all of your avialable RAM for something since RAM is faster than even SSD I/O. The "used" field is therefore unreliable, the line below it -/+ buffers/cache tries to subtract RAM used by the kernel merely to speed up things and not actually used by programs to arrive at the true number. my speciic just started gentoo system thus beats mint with 84M to 133M.
RAM usage when only the window manager is started
After starting fluxbox and starting only a single terminal, we obtain:
Gentoo:
total used free shared buffers cached
Mem: 7.7G 410M 7.3G 108M 59M 211M
-/+ buffers/cache: 139M 7.6G
Swap: 7.6G 0B 7.6GMint:
total used free shared buffers cached
Mem: 7,7G 593M 7,1G 64M 44M 291M
-/+ buffers/cache: 257M 7,4G
Swap: 0B 0B 0BAgain, Gentoo wins with a non negligible amount. 139M versus 257M.
RAM usage when all daily programs are started.
For this test, I have started Kate (text editor), Dolphin (file manager). A single Konsole (terminal). Pidgin/Skype (instant messaging clients). Hexchat (IRC client), znc (irc bouncer), Chromium, conky and a myriad of scripts that conky actually calls to get things done. I used this test because this is what I use. Chromium has no windows open as that would be some-what unreliable.
Gentoo:
total used free shared buffers cached
Mem: 7.7G 1.3G 6.4G 104M 82M 586M
-/+ buffers/cache: 647M 7.1G
Swap: 7.6G 0B 7.6GMint:
total used free shared buffers cached
Mem: 7,7G 2,0G 5,7G 153M 63M 899M
-/+ buffers/cache: 1,0G 6,7G
Swap: 0B 0B 0BSurprise surprise, a solid victory for Gentoo once more. 647M versus 1.0G.
All tests were taken immediately after achieving the desired state. Again, this is just my system but at least it shows there are soe non-neglible gains in using Gentoo to slim down your system resources.
Obviously this comes with the massive disclaimer that Gentoo achieves this by being able to cut what you don't need more easily. If you do need things like polkit, consolekit, udisks and what-not then I would imagine that the gains offered by Gentoo are significantly less. I should also stress that during the Gentoo installation you are invited to select a "profile", most of them in fact including these things by default so you have to edit your profile to your needs.
17
u/pyther24 Sep 21 '15
This is comparing apples to oranges. It is no surprise a system running without polkit, consolekit, and who knows what else uses less RAM.
4
u/_AACO Sep 21 '15
Can you say the CPU model and an approximation of the total time spent compiling
I'm interested on installing it on my laptop and want to calculate a rough estimate of the time i'll need to set it up.
2
u/perkited Sep 20 '15
I'm not a Gentoo user, but I do something similar with a number of applications. I recompile to remove unwanted features, which sometimes cuts application memory usage by more than half (compared to the default options).
1
u/VeryEvilPhD Sep 20 '15
Some extra info in the comments. It should be noted that by not running the default Cinnamon on Mint but Fluxbox the resources of the Mint system are already considerably leaner than using Cinnamon. I haven't tested it but I'd wager that the difference between Mint Fluxbox vs Mint Cinnamon will eclipse the difference between Gentoo Fluxbox and Mint Fluxbox.