Language Selection

English French German Italian Portuguese Spanish

How to measure memory usage in Linux

Filed under
Software
HowTos

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

SBC runs Linux on new quad-core Cortex-A9 SoC

Actions Technology released a quad-core Cortex-A9 “S500″ SoC, along with an “ActDuino S500″ SBC based on it, plus support for Android 5.0 and Linux. Read more

Reglue at LibrePlanet

  • LibrePlanet & the Sounds of Silence
    My sponsor for attending LibrePlanet was John Sullivan, the executive director of the Free Software Foundation, and I was surprised that he took the time to get me shown around. I wanted to kiddingly say to John, “Hey, you got people to do this, right?” I didn’t because I was afraid the humor would not have translated well…and I’m not sure it did here either.
  • Have You Decided Yet?
    On March 21st of this year, the Free Software Foundation presented our organization Reglue with the Award for Projects of Social Benefit. We share that announcement link with Sébastien Jodogne for being given the Award for the Advancement of Free Software. We're specifically thankful that people like Sean "NZ17" Robinson spearheaded this nomination campaign and got us into the running.

Hisense And Haier Launch $149 Chromebooks

A few weeks ago Google made headlines with the launch of the new Chromebook Pixel, the highest-end Chromebook on the market (and with a price to show for it). Today, the Chrome OS laptop ecosystem is launching two products that are the exact opposite: the Haier Chromebook 11 (now available online at Amazon) and the Hisense Chromebook (now available at Walmart). Both of these 11.6-inch Chromebooks will retail for $149, making them the most affordable Chromebooks yet. Read more Also: Hands on: The $149 Hisense Chromebook succeeds at being incredibly affordable

today's leftovers

  • Who is Going to be the Ubuntu of Developer Infrastructure?
    There were many things that made the early Linux desktop candidates difficult to manage. Lacking the vast catalog of drivers that Windows had at its disposal, for example, peripheral device support was a challenge. As was getting functionality like suspend working properly – not that Windows supported it flawlessly, of course. But assuming you could get these early builds up and running, at least, one of the most under-appreciated challenges of navigating the very different user interface was choice.
  • IBM's Spending $3 Billion to Connect Internet of Things to Enterprises
    The Internet of Things (IoT) continues to emerge as one of this year's big tech stories. IBM has announced that it will invest $3 billion across four years to build out an Internet of Things (IoT) unit, and the unit's first job is to build a cloud-based open platform. IBM actually has a lot of tools and experience in the area of sifting and sorting real-time data, and may be able to contribute a lot of momentum to the Internet of Things. Here are details.
  • Why KDE's KWin Doesn't Integrate Weston/QtCompositor For Wayland Support
    KDE developers have been porting their Plasma 5 + KDE Frameworks 5 stack over to Wayland, but at this point it's not nearly as mature as the GNOME Wayland support. As such, KDE developers have to fend off questions from time-to-time why they don't "just integrate QtCompositor" or the Weston library for speeding up their efforts.
  • GNU/Linux By Continent In 2015 So Far
    Europe and North America were the stars. Oceania, Africa and Asia are still lagging but also moving up. It’s interesting that Europe seemed more enthusiastic for GNU/Linux than USA, the home of GNU/Linux, but USA is rapidly catching up.
  • How similar are OS X and Linux?