lkml.org 
[lkml]   [2015]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 2/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/status
On Thu 20-08-15 08:26:27, Naoya Horiguchi wrote:
> Currently there's no easy way to get per-process usage of hugetlb pages,

Is this really the case after your previous patch? You have both
HugetlbPages and KernelPageSize which should be sufficient no?

Reading a single file is, of course, easier but is it really worth the
additional code? I haven't really looked at the patch so I might be
missing something but what would be an advantage over reading
/proc/<pid>/smaps and extracting the information from there?

[...]
> Documentation/filesystems/proc.txt | 3 +++
> fs/hugetlbfs/inode.c | 12 ++++++++++
> fs/proc/task_mmu.c | 1 +
> include/linux/hugetlb.h | 36 +++++++++++++++++++++++++++++
> include/linux/mm_types.h | 7 ++++++
> kernel/fork.c | 3 +++
> mm/hugetlb.c | 46 ++++++++++++++++++++++++++++++++++++++
> mm/mmap.c | 1 +
> mm/rmap.c | 4 +++-
> 9 files changed, 112 insertions(+), 1 deletion(-)
[...]
--
Michal Hocko
SUSE Labs


\
 
 \ /
  Last update: 2015-08-20 13:21    [W:0.251 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site