Language Selection

English French German Italian Portuguese Spanish

How to measure memory usage in Linux

Filed under

Whether you are a system administrator or a developer, sometimes you need to consider the use of memory in GNU/Linux processes and programs. Memory is a critical resource, and limited memory plus processes that use a lot of RAM can cause a situation where the kernel goes out of memory (OOM). In this state Linux activates an OOM killer kernel process that attempts to recover the system by terminating one or more low-priority processes. Which processes the system kills is unpredictable, so though the OOM killer may keep the server from going down, it can cause problems in the delivery of services that should stay running.

In this article we'll look at three utilities that report information about the memory used on a GNU/Linux system. Each has strengths and weaknesses, with accuracy being their Achilles' heel. I'll use CentOS 6.4 as my demo system, but these programs are available on any Linux distribution.

rest here

More in Tux Machines

Linksys Endorses OpenWrt Linux-Based Open Source OS in Latest Router

Open source firmware is the headline feature in the newest router from Linksys, the WRT1900ACS, which features vendor-endorsed compatibility with the latest version of the Linux-based OpenWrt router OS. Read more

Oneplus One with Ubuntu Touch Just Got Cellular Support

We recently covered the fact that Ubuntu Touch is being ported for the famous and elusive Oneplus 2 phone, even before the port for the Oneplus One was finished. The developer promised back then that he's working on both ports, and he just delivered. Read more

Ubuntu Devs Don't Want Android Compatibility Layer for the OS

The Ubuntu Touch OS is home to a lot of apps, but not nearly enough to satisfy the users who are coming from other platforms. Canonical is taking the long way around this problem and wants to have native apps for the OS instead of just working to port the Android ones. Read more

MyPaint Fills a Graphics Void on Linux

When you think of Linux and graphic art tools, you probably consider Gimp or Blender to be the only available software. With that thought, you’d be very wrong. Yes, Gimp and Blender are the de facto standard tools for either image manipulation (Gimp) or Blender (3D graphics and animation), but what if you need a tool to create images from scratch? Read more