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

Linux Emerging as Alternative to MS Windows

According to industry sources, Linux-based operation systems of Tmax OS and InfraWare are gaining much attention as alternatives to the Microsoft Windows. The latest version of the Linux has been significantly improved in terms of installation and use, providing a user interface similar to that of the Windows and coming with various software tools for documentation, multimedia utilization, etc. In addition, constraints on the Linux in the financial and public sectors are being removed one after another with Internet environments adopting Web standards. Under the circumstances, the software industry is expecting that the utilization of open-source operating systems will spread to the general consumer market as well as the enterprise market. Read more

NethServer 6.8 Linux Server Fights Spam with DNS-Based Blackhole List (DNSBL)

NethServer Community Manager Alessio Fattorini informs Softpedia today about the general availability of the first Beta release of the NethServer 6.8 server-oriented GNU/Linux operating system. Based on the recently released CentOS 6.8 operating system, which in turn builds on the freely distributed sources of the commercial Red Hat Enterprise Linux 6.8 distro, NethServer 6.8 is now in development as the newest long-term support release. Read more

Comparing live version upgrade methods

When I review a distribution I always begin by performing a fresh installation of the operating system. This gives the latest version of the project a chance to stand on its own without complications. However, many of us do not perform fresh installations on our operating systems each time we want to upgrade to the latest release. Some of us, in order to preserve settings or installed packages, prefer to upgrade our existing operating system without starting over from scratch. This week I decided to take five open source operating systems through an upgrade process from their penultimate release to their latest version. Read more

Porteus Kiosk 4.0 Modular Linux Web Kiosk Released, Drops Chrome 32-bit Support

Porteus Solutions' Tomasz Jokiel announced on May 30, 2016, the release of the final Porteus Kiosk 4.0.0 Web Kiosk operating system based on the latest GNU/Linux technologies and open-source software. Porteus Kiosk 4.0.0 comes three months after the release of the last maintenance build in the Porteus Kiosk 3.x series, introducing numerous new features and improvements. But first, let's take a quick look under the hood, as the OS is now powered by Linux kernel 4.4.11 LTS (Long Term Support), and it's based on the Mozilla Firefox 45.1.1 ESR and Google Chrome 50.0.2661.102 web browsers. Read more