Finding and Trimming Linux Bloat
Analyzing Linux Memory
I ate way too much pizza tonight. I know I'll be sorry tomorrow morning when I step on the scale. That darn scale tells me right off if I'm getting bloated.
It should be just as easy with programs, right? If you're running on a low-memory system -- and these days, anything with less than two gigabytes qualifies as low-memory -- it would be handy to know which programs have been spending a little too much at the pizza and ice cream joints and not enough time at the gym.
Unfortunately, memory on Linux isn't as easy as that single number the bathroom scale gives you. So let's take a look and see what information is available.
The tool that's closest to your bathroom scale is gmemusage (Figure 1).
It's a really nifty tool that gives you an overview of where all the memory is going on your system.
It's generally not installed by default, but most major Linux distros offer it as a package. Unfortunately, Ubuntu Jaunty user have a complication: there's a package you can install, but it doesn't work. Check out Ubuntu bug 370735 for various fixes.
gmemusage shows you your memory graphically, so you can see at a glance where the hogs are. The colors are a bit garish and sometimes hard to read, but if you use the program a lot you can configure it with your choice of colors and fonts (see the man page).
While gmemusage is great for getting a quick overview of memory,
you shouldn't put too much faith in the absolute numbers reported
there, because there are a lot of different ways to look at memory
use on a Linux machine.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: RHEL 6.7, BackBox Linux 4.3 and RoboLinux 8.1
- 2Linux Top 3: SLES 11 SP4, Chromixium OS 1.5 and Canonical Licensing
- 3Linux Top 3: VirtualBox 5, Point Linux 3.0 and OpenSUSE Leap 42.x
- 4Linux Top 3: Linux 4.2 rc1, 4MLinux 13 and antiX15
- 5Linux Top 3: Linux Mint Rafaela, OpenMandriva Lx 2014.2 and VectorLinux 7.1