[lkml]   [2012]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/2] ima: policy search speedup
On Wed, Dec 12, 2012 at 8:56 AM, Kasatkin, Dmitry
<> wrote:

> I have done few tests.
> Ratio between lookups is different, but I do not really remember what
> exactly it was.
> Probably I did measurement with directory integrity protection...
> First test is done using upstream IMA.
> IMA-appraisal
> [ 59.554072] counter1 - before (inode->i_flags & S_NOIMA): 74586
> [ 59.554628] counter2 - after (inode->i_flags & S_NOIMA): 74558
> [ 59.555024] counter3 - after (inode->i_sb->s_feature_flags & SF_NOIMA): 52895
> You can see 3 counters after 55 seconds uptime.
> Counters count entries to the policy search function.
> First counter counts every entry.
> Second counter counts if control passes after inode flag S_NOIMA.
> Third counts if control passes after SB flag SF_NOIMA.
> As you can see, inode flag does not make a difference - just 28
> entries differences.

That is quite shocking to me that on system start up we only ever
reference the same /proc file 28 times. Wow. I just don't know what
to say. Obviously the per inode flag is dead. Now there is probably
some CPU benefit to a per-sb flag, but I'm not sure it is worth the
code to do it if you can't really measure that as something that makes
a difference in userspace.

Maybe if you can show that after your integrity protection work is
done we can revisit. But I'd think this patch is dead until you can
show the impact on real userspace. Someone else might disagree, but
that's my thought.



 \ /
  Last update: 2012-12-12 16:01    [W:0.048 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site