Debian 6.0: Fat, Fatter, SlimA few days ago I mentioned Conky, the desktop system resource monitor. I'd been meaning to install this for some time, and did so after my upgrade to Debian 6.0 "Squeeze". And I was immediately alarmed to see that with only my web browser and email client open, I was using over 450 MB of RAM!
Now, partly this is due to my preferred web browser, Opera. Once upon a time Opera was lean and mean, but after my recent upgrade to Opera 11, I've noticed it's become quite the memory hog, typically using between 100 and 200 MB of RAM. But still, that didn't explain it all. Enter Conky, which reported that Xorg (the graphical display server) was using over 17% of my 1GB available RAM...over 170 MB. And the first thing I thought of was KDE 4. So I decided it was time for some comparison tests. I decided to restart the X server, launch one of the installed desktop environments, open a solitary terminal window, and use "top" to display the biggest memory consumers. Here's KDE 4: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
"RES" is the amount of physical RAM the task is using, in this case 138 MB, which is 13.7% of available memory (%MEM). After installing Trinity (formerly known as KDE 3.5), I got a slightly better result: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
112 MB is better than 138 MB, but it's still too damned much. Because of a long-ago installation mistake, I still had the Gnome desktop installed, so I tried that: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
And I noticed that Debian includes an absoultely-minimal window manager, TWM (Tiny Window Manager), which lived up to its name: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
Now that was reassuring: it told me that Xorg was not itself a memory hog, but rather the desktop environments that use Xorg were making wildly different demands. Today I decided to install LXDE, the Lightweight X Desktop Environment, and run the test again: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
All of these tests were run on the exact same hardware, with the same Xorg.conf file. And here's a summary of the results: KDE 4: 138 MB Trinity: 112 MB Gnome: 52 MB LXDE: 36 MB TWM: 15 MB TWM is a bit too minimalistic for me to use as an everyday desktop, but LXDE seems to have the features I need. The default LXDE appearance will be familiar to anyone who has used Windows 95/98, and since I've never used Vista or Win7, I really don't care if my desktop has their glitz. So, I've made LXDE my default desktop environment, and I'll be giving it a spin for the next week or so. Trinity was nice, but I really don't want that much overhead when I've got RAM-hungry applications to run. |