![]() ![]() ![]() For instance, ps aux -sort -rss sorts by resident set size, which represents the non-swapped physical memory that each taskuses. The -sortargument takes key values that indicate how you want to order the output. ![]() If you are searching for memory hogs, you probably want to sort the output. Typical output looks something like this: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND Running ps aux shows every process on the system. ps shows the percentage of memory that is used by each process or task running on the system, so you can easily identify memory-hogging processes. For the purposes of this article I’ll focus on how to display information about memory usage. Ps displays information about active processes, with a number of custom fields that you can decide to show or not. I’ll use CentOS 6.4 as my demo system, but these programs are available on any Linux distribution. Each has strengths and weaknesses, with accuracy being their Achilles’ heel. In this article we’ll look at three utilities that report information about the memory used on a GNU/Linux system. 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 state Linux activates an OOM killer kernel process that attempts to recover the system by terminating one or more low-priority processes. 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). Whether you are a system administrator or a developer, sometimes you need to consider the use of memory in GNU/Linux processes and programs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |