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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1388341026.52582.YahooMailNeo@web160105.mail.bf1.yahoo.com>
Date:	Sun, 29 Dec 2013 10:17:06 -0800 (PST)
From:	PINTU KUMAR <pintu_agarwal@...oo.com>
To:	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"mgorman@...e.de" <mgorman@...e.de>
Subject: Help about calculating total memory consumption during booting

Hi,

I need help in roughly calculating the total memory consumption in an embedded Linux system just after booting is finished.
I know, I can see the memory stats using "free" and "/proc/meminfo"

But, I need the breakup of "Used" memory during bootup, for both kernel space and user application.

Example, on my ARM machine with 128MB RAM, the free memory reported is roughly:
Total: 90MB
Used: 88MB
Free: 2MB
Buffer+Cached: (5+19)MB

Now, my question is, how to find the breakup of this "Used" memory of "88MB".
This should include both kernel space allocation and user application allocation(including daemons).

If anybody knows about any tools(or techniques) please help.

Few doubts:
1) If I add up all "Pss" field in "proc/<PID>/smaps, do I get the total Used memory?
2) Is the Pss value includes the kernel side allocation as well?
3) What fields I should choose from ?proc/meminfo" to correctly arrive at the "Used" memory in the system?
4) What about the memory allocation for kernel threads during booting? Why does its Pss/Rss value shows 0 always?

Please help.


Thank You!
Regards,
Pintu
--
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