lkml.org 
[lkml]   [2016]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 2/3] /proc/kpageflags: return KPF_SLAB for slab tail pages
On Thu, Feb 04, 2016 at 04:08:02PM +0900, Naoya Horiguchi wrote:
> Currently /proc/kpageflags returns just KPF_COMPOUND_TAIL for slab tail pages,
> which is inconvenient when grasping how slab pages are distributed (userspace
> always needs to check which kind of tail pages by itself). This patch sets
> KPF_SLAB for such pages.
>
> With this patch:
>
> $ grep Slab /proc/meminfo ; tools/vm/page-types -b slab
> Slab: 64880 kB
> flags page-count MB symbolic-flags long-symbolic-flags
> 0x0000000000000080 16220 63 _______S__________________________________ slab
> total 16220 63
>
> 16220 pages equals to 64880 kB, so returned result is consistent with the
> global counter.
>
> Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>

Reviewed-by: Vladimir Davydov <vdavydov@virtuozzo.com>

\
 
 \ /
  Last update: 2016-02-04 18:21    [W:0.053 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site