* Help about calculating total memory consumption during booting
@ 2013-12-29 18:17 PINTU KUMAR
2013-12-29 20:25 ` Stefan Beller
0 siblings, 1 reply; 4+ messages in thread
From: PINTU KUMAR @ 2013-12-29 18:17 UTC (permalink / raw)
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, mgorman@suse.de
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help about calculating total memory consumption during booting
2013-12-29 18:17 Help about calculating total memory consumption during booting PINTU KUMAR
@ 2013-12-29 20:25 ` Stefan Beller
2013-12-31 1:52 ` PINTU KUMAR
2013-12-31 1:54 ` PINTU KUMAR
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Beller @ 2013-12-29 20:25 UTC (permalink / raw)
To: PINTU KUMAR, linux-mm@kvack.org, linux-kernel@vger.kernel.org,
mgorman@suse.de
On 29.12.2013 19:17, PINTU KUMAR wrote:
> 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).
>
http://www.linuxatemyram.com/ dont panic ;)
How about htop, top or
"valgrind --tool massif"
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help about calculating total memory consumption during booting
2013-12-29 20:25 ` Stefan Beller
@ 2013-12-31 1:52 ` PINTU KUMAR
2013-12-31 1:54 ` PINTU KUMAR
1 sibling, 0 replies; 4+ messages in thread
From: PINTU KUMAR @ 2013-12-31 1:52 UTC (permalink / raw)
To: Stefan Beller, linux-mm@kvack.org, linux-kernel@vger.kernel.org,
mgorman@suse.de
[-- Attachment #1: Type: text/plain, Size: 2291 bytes --]
Hi,
Thanks for the reply, I know about top, but top does not help much in arriving at the total memory consumption.
I need the physical memory usage breakup of each process during bootup, with a segregate of user and kernel allocation.
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
I already tried adding up all "PSS" values in every PIDs, but still it does not match any where near to the total used memory in the system.
Please help.
Thanks,
Pintu
>________________________________
> From: Stefan Beller <stefanbeller@googlemail.com>
>To: PINTU KUMAR <pintu_agarwal@yahoo.com>; "linux-mm@kvack.org" <linux-mm@kvack.org>; "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>; "mgorman@suse.de" <mgorman@suse.de>
>Sent: Monday, 30 December 2013 1:55 AM
>Subject: Re: Help about calculating total memory consumption during booting
>
>
>On 29.12.2013 19:17, PINTU KUMAR wrote:
>> 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).
>>
>
>http://www.linuxatemyram.com/ dont panic ;)
>
>How about htop, top or
>"valgrind --tool massif"
>
>
>
>
>
>--
>To unsubscribe, send a message with 'unsubscribe linux-mm' in
>the body to majordomo@kvack.org. For more info on Linux MM,
>see: http://www.linux-mm.org/ .
>Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
>
>
[-- Attachment #2: Type: text/html, Size: 5587 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help about calculating total memory consumption during booting
2013-12-29 20:25 ` Stefan Beller
2013-12-31 1:52 ` PINTU KUMAR
@ 2013-12-31 1:54 ` PINTU KUMAR
1 sibling, 0 replies; 4+ messages in thread
From: PINTU KUMAR @ 2013-12-31 1:54 UTC (permalink / raw)
To: Stefan Beller, linux-mm@kvack.org, linux-kernel@vger.kernel.org,
mgorman@suse.de
>________________________________
> From: Stefan Beller <stefanbeller@googlemail.com>
>To: PINTU KUMAR <pintu_agarwal@yahoo.com>; "linux-mm@kvack.org" <linux-mm@kvack.org>; "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>; "mgorman@suse.de" <mgorman@suse.de>
>Sent: Monday, 30 December 2013 1:55 AM
>Subject: Re: Help about calculating total memory consumption during booting
>
>
>On 29.12.2013 19:17, PINTU KUMAR wrote:
>> 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).
>>
>
>http://www.linuxatemyram.com/ dont panic ;)
>
>How about htop, top or
>"valgrind --tool massif"
>
>
Thanks for the reply, I know about top, but top does not help much in arriving at the total memory consumption.
I need the physical memory usage breakup of each process during bootup, with a segregate of user and kernel allocation.
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
I already tried adding up all "PSS" values in every PIDs, but still it does not match any where near to the total used memory in the system.
Please help.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-31 1:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-29 18:17 Help about calculating total memory consumption during booting PINTU KUMAR
2013-12-29 20:25 ` Stefan Beller
2013-12-31 1:52 ` PINTU KUMAR
2013-12-31 1:54 ` PINTU KUMAR
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).