lkml.org 
[lkml]   [2015]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Regression: Requiring CAP_SYS_ADMIN for /proc/<pid>/pagemap causes application-level breakage
From
>> Something like this (see patch in attachment)
>
> THP is not covered.
>
> Any comments on kcmp() idea?

It seems like a modified kcmp() would also be a valid approach but, as
you noted, probably speed-limited for our purposes. As you say, there
is the option of a vector-oriented equivalent. It seems like a
generally nice facility to have available in the kernel but my
suspicion is that it wouldn't be optimal for us...

My thinking is that using soft-dirty might give us the best
performance on platforms where it's available. We're only using
fork() as a cunning/hacky way of tracking what pages change;
soft-dirty would allow us to avoid that too, whereas using kcmp()
would still require the forking overhead.

Does that make sense, or have I missed something?

Thanks,
Mark


\
 
 \ /
  Last update: 2015-04-30 21:21    [W:1.901 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site