[apparmor] [patch] - performance again... small changes
Peter Maloney
peter.maloney at brockmann-consult.de
Wed Nov 26 21:57:13 UTC 2014
In my testing, these small changes affected the "aa-logprof" measured
from the running of the command until the interactive options appear,
made it take 10-17% less time.
Here's a short test that takes 17% less time (I think this log was
around 50 MB). I also did a much huger log which was also around 13%.
And then after my previous patches, I tested again and got 10%. I'm not
sure if it affects more than the start up.
before:
real 0m9.704s
user 0m9.474s
sys 0m0.224s
real 0m9.949s
user 0m9.770s
sys 0m0.179s
real 0m9.951s
user 0m9.763s
sys 0m0.187s
real 0m9.848s
user 0m9.650s
sys 0m0.198s
after:
real 0m8.075s
user 0m7.954s
sys 0m0.122s
real 0m8.310s
user 0m8.196s
sys 0m0.114s
real 0m8.260s
user 0m8.075s
sys 0m0.173s
real 0m8.109s
user 0m7.958s
sys 0m0.151s
scale=10
o=(9.484+9.77+9.76+9.65)
p1=(7.954+8.196+8.075+7.958)
p1/o
.8323763707
I was going to test the 2 separately to see if p1b is necessary, but
cboltz seems to like its readability and prefers it anyway, so here it is.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1a-securityfsthing.patch
Type: text/x-patch
Size: 1844 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20141126/ee3d4dbc/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1b-regexthing.patch
Type: text/x-patch
Size: 1452 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20141126/ee3d4dbc/attachment-0003.bin>
More information about the AppArmor
mailing list