[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180723140925.GA4285@amd>
Date: Mon, 23 Jul 2018 16:09:25 +0200
From: Pavel Machek <pavel@....cz>
To: Joerg Roedel <joro@...tes.org>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>,
"H . Peter Anvin" <hpa@...or.com>, x86@...nel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andy Lutomirski <luto@...nel.org>,
Dave Hansen <dave.hansen@...el.com>,
Josh Poimboeuf <jpoimboe@...hat.com>,
Juergen Gross <jgross@...e.com>,
Peter Zijlstra <peterz@...radead.org>,
Borislav Petkov <bp@...en8.de>, Jiri Kosina <jkosina@...e.cz>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Brian Gerst <brgerst@...il.com>,
David Laight <David.Laight@...lab.com>,
Denys Vlasenko <dvlasenk@...hat.com>,
Eduardo Valentin <eduval@...zon.com>,
Greg KH <gregkh@...uxfoundation.org>,
Will Deacon <will.deacon@....com>, aliguori@...zon.com,
daniel.gruss@...k.tugraz.at, hughd@...gle.com, keescook@...gle.com,
Andrea Arcangeli <aarcange@...hat.com>,
Waiman Long <llong@...hat.com>,
"David H . Gutteridge" <dhgutteridge@...patico.ca>,
jroedel@...e.de, Arnaldo Carvalho de Melo <acme@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>
Subject: Re: [PATCH 0/3] PTI for x86-32 Fixes and Updates
Hi!
> here are 3 patches which update the PTI-x86-32 patches recently merged
> into the tip-tree. The patches are ordered by importance:
It seems PTI is now in -next. I'll test that soon.
Meanwhile... it looks like gcc is not slowed down significantly, but
other stuff sees 30% .. 40% slowdowns... which is rather
significant.
Would it be possible to have per-process control of kpti? I have
some processes where trading of speed for security would make sense.
Best regards,
Pavel
cd ~/g/tui/nowcast
time ./nowcast -x (30%)
KPTI: 139.25user 73.65system 269.90 (4m29.901s) elapsed 78.88%CPU
133.35user 73.15system 228.80 (3m48.802s) elapsed 90.25%CPU
140.51user 74.21system 218.33 (3m38.338s) elapsed 98.34%CPU
133.85user 75.89system 212.02 (3m32.026s) elapsed 98.93%CPU (no chromium)
139.34user 75.00system 235.75 (3m55.752s) elapsed 90.92%CPU
4.18: 116.99user 43.79system 217.65 (3m37.653s) elapsed 73.87%CPU
115.14user 43.97system 178.85 (2m58.855s) elapsed 88.96%CPU
128.47user 47.22system 178.24 (2m58.245s) elapsed 98.57%CPU
132.30user 49.27system 184.40 (3m4.408s) elapsed 98.46%CPU
134.88user 48.59system 186.67 (3m6.673s) elapsed 98.29%CPU
132.15user 48.65system 524.68 (8m44.684s) elapsed 34.46%CPU
120.38user 45.45system 168.72 (2m48.720s) elapsed 98.29%CPU
time cat /dev/urandom | head -c 10000000 | bzip2 -9 - | wc -c (40%)
v4.18: 4.57user 0.23system 4.64 (0m4.644s) elapsed 103.53%CPU
4.86user 0.23system 4.95 (0m4.952s) elapsed 102.81%CPU
5.13user 0.22system 5.19 (0m5.190s) elapsed 103.14%CPU
KPTI: 6.39user 0.48system 6.74 (0m6.747s) elapsed 101.96%CPU
6.66user 0.41system 6.91 (0m6.912s) elapsed 102.51%CPU
6.53user 0.51system 6.91 (0m6.919s) elapsed 101.99%CPU
v4l-utils: make clean, time make
v4.18: 191.93user 11.00system 211.19 (3m31.191s) elapsed 96.09%CPU
221.21user 14.69system 248.73 (4m8.734s) elapsed 94.84%CPU
198.35user 11.61system 211.39 (3m31.392s) elapsed 99.32%CPU
204.87user 11.69system 217.97 (3m37.971s) elapsed 99.35%CPU
203.68user 11.88system 217.29 (3m37.291s) elapsed 99.20%CPU
KPTI: 156.45user 40.08system 204.77 (3m24.777s) elapsed 95.97%CPU
183.32user 38.64system 225.03 (3m45.031s) elapsed 98.63%CPU
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists