lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200705020000.49959.jk-lkml@sci.fi>
Date:	Wed, 2 May 2007 00:00:49 +0300
From:	Jan Knutar <jk-lkml@....fi>
To:	linux-kernel@...r.kernel.org
Cc:	Christian Schmidt <lkml@...add.de>
Subject: Re: Memory consumption on linux

On Tuesday 01 May 2007 22:31, Christian Schmidt wrote:

> And, how does process memory relate to system memory? Usually the sum
> of the resident memory (ps -o rss) is way off from the used memory
> displayed by free.

RSS has all the shared pages in it too.

> where you can see discrepancies in either direction, in one case 2G
> more free than resident, in the other case 60M less.

> Is there a way to get more detailed information on process and kernel
> memory usage? I assume that dm-crypto and software-raid use memory
> that does not show up anywhere.

Slab in /proc/meminfo, I guess. Lots of other values there too.The 
command slabtop -s c too.

> dynamips and vmware both mmap() the ram of the emulated machines
> (dynamips emulates cisco routers). Still, obviously the majority of
> the resident memory is "free", or rather "cached".

mmap() with a backing file is probably counted as "cached". mmap and 
brk() without backing files would probably be AnonPages 
in /proc/meminfo...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ