Re: [PATCH RFC] fs/fcntl: add fcntl F_GET_RSS

From
Florian Weimer <hidden>
Date
2019-10-28 13:06:03
Also in
linux-fsdevel, linux-mm, lkml
* Konstantin Khlebnikov:
On 28/10/2019 14.46, Florian Weimer wrote:
quoted
* Konstantin Khlebnikov:
quoted
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.
I meant a 32-bit process running on a 64-bit kernel.
Thread (1 message) 1 message, 1 author, last reply 2019-10-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help