In my previous article I’ve tried to investigate the RAM memory requirements for running some of the most common light window managers and desktop environments available in the Linux world. Prompted by a number of readers, I’ve decided to include also the big, well-known memory hogs that grab most of the Linux market, i.e. KDE, Unity and Gnome 3.
I am using the same setup, based on virtenv. It includes its own xserver (Xephyr) and a virtualization container (LXC). The computer is an older 64-bit machine, running Ubuntu 12.04 with LXDE as desktop environment.
I use free command to measure the memory before and after the WM/DE is started. The command prints on the screen data made available by Linux kernel. It is believed the kernel knows at any moment how much memory is using and how many buffers it has available.
I measure the WM/DE as it comes out of the box, with all the features the authors intended to be run as default. Arguably, this is not the best way to measure. All window managers are highly configurable, and users in general tend to personalize them. This adds more memory to whatever numbers I publish here.
Lightning fast and stable, Ratpoison is a e tiling window manager for the X Window System. The major design goal of the project is to let the user manage application windows without using a mouse, hence the name.
On Ubuntu, install it as sudo apt-get install ratpoison and start it with ratpoison command. Be prepared to read the documentation. It runs in 1MB of RAM memory.
wm2 simply adds a frame to each window and attempts to look stylish. In the quest for being simple, fast, and small, wm2 does not support icons, menus, toolbars, panels and docking areas.
I installed it on Ubuntu as apt-get install wm2, and started it as wm2. It runs in 0.7MB, this is the smallest WM I’ve tried so far.
FVWM (Feeble Virtual Window Manager) is one of the most ancient window managers still in use today. It is a powerful and highly configurable environment for Unix-like systems. Some very popular window managers and desktop environments, such as Afterstep, Xfce, are derived from FVWM.
I installed it on Ubuntu as apt-get install fvwm, and started it as fvwm. It runs in 13MB of memory.
Window Maker is again under active development after seven years without an official release. It is not available in Ubuntu software repositories, you can however install it from a PPA:
sudo add-apt-repository ppa:profzoom/wmaker sudo apt-get update sudo apt-get install wmaker
Start it as wmaker. It runs in 7MB of memory.
Razor-qt is an advanced, easy-to-use, and fast desktop environment based on Qt technologies. It is a desktop for people who think KDE is bloated and suffers from over-engineering. It runs in 139MB of RAM memory.
Razor-qt is a new open-source project, and it is not officially supported by most Linux distributions. For Ubuntu users, the development team keeps a PPA up-to-date. The software works on any Ubuntu from version 9.10 onwards. Installation is as follows:
sudo add-apt-repository ppa:razor-qt sudo apt-get update sudo apt-get install razorqt
Start it as razor-session.
I’ve always liked KDE. Elegant and reasonably fast, it is an excellent desktop choice for people developing GUI software. In particular I like Kate text editor and KDiff3. Qt development tools are also well supported, but that was to be expected from a desktop based on Qt library.
I installed kde-plasma-desktop packet from Ubuntu 12.04. The packet is described here as “the bare-minimum required”. I started it in console as openbox-kde-session. It runs in 201MB. On a real KDE desktop such as Kubuntu it will be much more.
Note: the 201MB measurement was done on top of Openbox window manager. Usually, distros will pair KDE with KWin window manager. This will add 100MB.
Unity is the default desktop in Ubuntu. Ubuntu is what they recommend you to try when you move to Linux. It is friendly, functional, and geared towards “human beings”. Too bad it runs in 192MB of memory! It would be a good idea to trim it down, let’s say by 50%. As a note, DOS conquered the world by running in 64KB of memory.
Unity is installed as sudo apt-get install ubuntu-desktop. You can start it with unity command.
Gnome 3 is an experimental desktop developed mostly by RedHat. Not all the functionality is ready (for example the taskbar and the menus are missing), and there are problems in the listening-to-your-users department. If you are looking for Gnome 2 functionality or something similar, check out Linux Mint website.
I installed Gnome 3 as sudo apt-get install gnome-shell and started it as gnome-session. It will burn through 155MB of memory before painting anything on the screen.
Trinity, Mate, Cinnamon
In a normal world, where development teams listen to users, this should never have happened. Not only these environments are smaller and faster, they actually do what desktop environments are supposed to do.
I installed Cinnamon as follows:
sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable sudo apt-get update sudo apt-get install cinnamon
I’ve started it as cinnamon. It runs in 79MB.
If you have some ancient hardware that you need to breathe new life into, or if you need to fit a distro on a modestly sized memory stick, the first thing you should look at is the window manager/desktop environment. Whatever your needs, Linux is much more than Gnome and KDE.