From: naveen yadav <yad.naveen@gmail.com> To: kernelnewbies <Kernelnewbies@kernelnewbies.org>, linux-kernel@vger.kernel.org Subject: shmem info issue Date: Fri, 12 Jul 2013 17:08:32 +0530 [thread overview] Message-ID: <CAJ8eaTw9o+ZBAzR+1qe-5XEpfZzv-6DJ_EHK_BF_32-va-KL+g@mail.gmail.com> (raw) Hi All I am working on tmpfs. During code analysis I found shmem driver register itself as tmpfs . cat /proc/meminfo Shmem field read NR_SHMEM enum filed and shows used memory in tmpfs [root@localhost linux-3.8.2]# cat /proc/meminfo | grep -r Shmem Shmem: 704 kB [root@localhost linux-3.8.2]# include/linux/mmzone.h enum zone_stat_item { -----cut here------- NR_SHMEM, /* shmem pages (included tmpfs/GEM pages -----cut here } I have the following query 1-> cat /proc/meminfo | grep -r Shmem show only the used tmpfs memory or it show used tmpfs memory + mata data also (because I found Shmem is bit larger then tempfs used memory ) 2-> as per the developer comments NR_SHMEM included tmpfs and GEM pages whct is Gem pages 3-> is my above code analysis is correct?
WARNING: multiple messages have this Message-ID (diff)
From: yad.naveen@gmail.com (naveen yadav) To: kernelnewbies@lists.kernelnewbies.org Subject: shmem info issue Date: Fri, 12 Jul 2013 17:08:32 +0530 [thread overview] Message-ID: <CAJ8eaTw9o+ZBAzR+1qe-5XEpfZzv-6DJ_EHK_BF_32-va-KL+g@mail.gmail.com> (raw) Hi All I am working on tmpfs. During code analysis I found shmem driver register itself as tmpfs . cat /proc/meminfo Shmem field read NR_SHMEM enum filed and shows used memory in tmpfs [root at localhost linux-3.8.2]# cat /proc/meminfo | grep -r Shmem Shmem: 704 kB [root at localhost linux-3.8.2]# include/linux/mmzone.h enum zone_stat_item { -----cut here------- NR_SHMEM, /* shmem pages (included tmpfs/GEM pages -----cut here } I have the following query 1-> cat /proc/meminfo | grep -r Shmem show only the used tmpfs memory or it show used tmpfs memory + mata data also (because I found Shmem is bit larger then tempfs used memory ) 2-> as per the developer comments NR_SHMEM included tmpfs and GEM pages whct is Gem pages 3-> is my above code analysis is correct?
next reply other threads:[~2013-07-12 11:38 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-12 11:38 naveen yadav [this message] 2013-07-12 11:38 ` shmem info issue naveen yadav 2013-07-12 22:58 ` Hugh Dickins 2013-07-12 22:58 ` Hugh Dickins
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=CAJ8eaTw9o+ZBAzR+1qe-5XEpfZzv-6DJ_EHK_BF_32-va-KL+g@mail.gmail.com \ --to=yad.naveen@gmail.com \ --cc=Kernelnewbies@kernelnewbies.org \ --cc=linux-kernel@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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.