From: "Abu M. Muttalib" <abum@aftek.com>
To: kernelnewbies@nl.linux.org, linux-newbie@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mm <linux-mm@kvack.org>
Subject: the /proc/meminfo statistics
Date: Tue, 1 Aug 2006 15:09:32 +0530 [thread overview]
Message-ID: <BKEKJNIHLJDCFGDBOHGMEEJDDEAA.abum@aftek.com> (raw)
Hi,
I am running the following application.
#include<stdio.h>
#include<stdlib.h>
int main()
{
unsigned char* arr;
system("cat /proc/meminfo");
sleep(25);
arr = (char *)malloc (1048576);
system("cat /proc/meminfo");
sleep(25);
free(arr);
system("cat /proc/meminfo");
sleep(25);
}
I am getting the following meminfo statistics. As I am allocating and
freeing 1024 kb, so I should get the same information through /proc/meminfo:
MemTotal: 14296 kB
MemFree: 912 kB
Buffers: 1448 kB
Cached: 5564 kB
SwapCached: 0 kB
Active: 5480 kB
Inactive: 3664 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14296 kB
LowFree: 912 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 5144 kB
Slab: 1560 kB
CommitLimit: 7148 kB
Committed_AS: 6492 kB
PageTables: 188 kB
VmallocTotal: 630784 kB
VmallocUsed: 262560 kB
VmallocChunk: 366588 kB
MemTotal: 14296 kB
MemFree: 920 kB
Buffers: 1448 kB
Cached: 5564 kB
SwapCached: 0 kB
Active: 5492 kB
Inactive: 3660 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14296 kB
LowFree: 920 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 5152 kB
Slab: 1544 kB
CommitLimit: 7148 kB
Committed_AS: 7652 kB
PageTables: 188 kB
VmallocTotal: 630784 kB
VmallocUsed: 262560 kB
VmallocChunk: 366588 kB
MemTotal: 14296 kB
MemFree: 924 kB
Buffers: 1448 kB
Cached: 5564 kB
SwapCached: 0 kB
Active: 5488 kB
Inactive: 3660 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14296 kB
LowFree: 924 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 5148 kB
Slab: 1544 kB
CommitLimit: 7148 kB
Committed_AS: 6624 kB
PageTables: 188 kB
VmallocTotal: 630784 kB
VmallocUsed: 262560 kB
VmallocChunk: 366588 kB
I think that the values given in first Committed_AS and 3rd Committed_AS
should be same. But the same is not the case. Why its so?
Anticipation and regards,
Abu.
--
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>
reply other threads:[~2006-08-01 9:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BKEKJNIHLJDCFGDBOHGMEEJDDEAA.abum@aftek.com \
--to=abum@aftek.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox