[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d7e76bee-80c3-d787-b854-91e631ab29cd@yandex-team.ru>
Date: Mon, 28 Oct 2019 15:55:19 +0300
From: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
To: Florian Weimer <fw@...eb.enyo.de>
Cc: linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, linux-api@...r.kernel.org,
Michal Hocko <mhocko@...e.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Johannes Weiner <hannes@...xchg.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Roman Gushchin <guro@...com>
Subject: Re: [PATCH RFC] fs/fcntl: add fcntl F_GET_RSS
On 28/10/2019 14.46, Florian Weimer wrote:
> * Konstantin Khlebnikov:
>
>> This implements fcntl() for getting amount of resident memory in cache.
>> Kernel already maintains counter for each inode, this patch just exposes
>> it into userspace. Returned size is in kilobytes like values in procfs.
>
> I think this needs a 32-bit compat implementation which clamps the
> returned value to INT_MAX.
>
32-bit machine couldn't hold more than 2TB cache in one file.
Even radix tree wouldn't fit into low memory area.
Powered by blists - more mailing lists