Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #207559

Re: Need help analyzing (kernel?) memory usage and reclaiming RAM (Debian Stretch)

From Peter Wiersig <peter@friesenpeter.de>
Newsgroups linux.debian.user
Subject Re: Need help analyzing (kernel?) memory usage and reclaiming RAM (Debian Stretch)
Date 2019-04-16 16:40 +0200
Message-ID <xNxpD-1Z5-9@gated-at.bofh.it> (permalink)
References <xN9dD-3LR-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Martin Schwarz <debian-lists@alias.kuroi.de> writes:
> root@rad-m2m-srv02:~# ps aux --sort=-rss | head -15

you're choosing the wrong sort field to debug your problem here:
man ps:
"""
       rss         RSS       resident set size, the non-swapped physical memory that a task has used (in kiloBytes).
                             (alias rssize, rsz).
...
       vsz         VSZ       virtual memory size of the process in KiB (1024-byte units).  Device mappings are currently
                             excluded; this is subject to change. (alias vsize)."""

try the latter field if the problem is repeating.  VSZ can be very
misleading with graphical processes, but that should not occur here.

https://stackoverflow.com/questions/7880784/what-is-rss-and-vsz-in-linux-memory-management

https://stackoverflow.com/a/21049737/2911961
""RSS is the Resident Set Size and is used to show how much memory is
allocated to that process and is in RAM. It does not include memory that
is swapped out. It does include memory from shared libraries as long as
the pages from those libraries are actually in memory. It does include
all stack and heap memory.

VSZ is the Virtual Memory Size. It includes all memory that the process
can access, including memory that is swapped out, memory that is
allocated, but not used, and memory that is from shared libraries.""

Peter

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Martin Schwarz <debian-lists@alias.kuroi.de> - 2019-04-15 14:50 +0200
  Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Reco <recoverym4n@enotuniq.net> - 2019-04-15 15:40 +0200
    Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Martin Schwarz <debian-lists@alias.kuroi.de> - 2019-04-15 16:50 +0200
      Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Reco <recoverym4n@enotuniq.net> - 2019-04-15 18:10 +0200
        Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Martin Schwarz <debian-lists@alias.kuroi.de> - 2019-04-16 10:30 +0200
          Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Reco <recoverym4n@enotuniq.net> - 2019-04-16 11:00 +0200
            Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Martin Schwarz <debian-lists@alias.kuroi.de> - 2019-04-16 14:40 +0200
              Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Reco <recoverym4n@enotuniq.net> - 2019-04-16 15:10 +0200
  Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Kenneth Parker <sea7kenp@gmail.com> - 2019-04-15 16:50 +0200
    Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Martin Schwarz <debian-lists@alias.kuroi.de> - 2019-04-15 17:10 +0200
  Re: Need help analyzing (kernel?) memory usage and reclaiming RAM (Debian Stretch) Peter Wiersig <peter@friesenpeter.de> - 2019-04-16 16:40 +0200
    Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Reco <recoverym4n@enotuniq.net> - 2019-04-16 18:50 +0200
      Re: Need help analyzing (kernel?) memory usage and reclaiming RAM (Debian Stretch) Peter Wiersig <peter@friesenpeter.de> - 2019-04-17 01:20 +0200
        Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Reco <recoverym4n@enotuniq.net> - 2019-04-17 07:50 +0200
    Re: Need help analyzing (kernel?) memory usage and reclaiming RAM  (Debian Stretch) Martin Schwarz <debian-lists@alias.kuroi.de> - 2019-04-17 11:40 +0200
  Re: Need help analyzing (kernel?) memory usage and reclaiming RAM (Debian Stretch) Peter Wiersig <peter@friesenpeter.de> - 2019-04-17 01:40 +0200

csiph-web