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: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 5Linux Top 3: Debian Dumps SPARC, Ubuntu Takes Over Linux 3.13 and the Core Infrastructure Initiative