/srv/irclogs.ubuntu.com/2017/12/21/#ubuntu-kernel.txt

=== himcesjf_ is now known as him-cesjf
=== Elimin8r is now known as Elimin8er
alkisgHi, https://wiki.ubuntu.com/Security/Features#Built_as_PIE says that it has 5-10% performance penalty09:00
alkisgDoes that mean that if I run `echo 0 > /proc/sys/kernel/randomize_va_space` on a pentium 4, it'll run Ubuntu 16.04 faster?09:00
alkisgOr compiling with PIE enabled will result in performance loss anyway?09:05
apwcompiling as PIE will alter the emitted code10:21
alkisgapw: I mean, does PIE mean a syscall that can be disabled in the kernel at runtime, avoiding the extra overhead, or is it a compiler time thing only, which cannot be disabled after compilation?10:22
apwpie is a compilation option which changes the code to not assume its location, which has a cost associated with it10:23
alkisgapw, thank you, so the only way to measure that overhead would be to recompile, which isn't really an option if one wants to use a recent Ubuntu version :)10:24
apwright, you'd need to turn it off and rebuild the kernel10:24
alkisgThe kernel or the apps?10:24
alkisgI thought that was about the apps...10:25
apwboth indeed, depends what you are trying to measure10:25
alkisgWell in general how much slower a "desktop feels", maybe that would be 80% userspace and 20% kernel...10:25
apwhard to say indeed, and humans are immensly sensitive to that kind of thing10:26
alkisgE.g. a few years ago it was possible to watch youtube with a p4 1.7 ghz, now it's not even with p4 at 2.4 ghz10:26
apwa few % and you can tell often10:26
apware the videos at the same resolution i wonder10:26
alkisgYes, but I'm not sure about the players10:26
apwbut it doesn't supprise me entierly, old h/w does get left behind over time10:27
apwi wonder how old a pentium-4 mbased mchine could be at its youngest now10:27
alkisgI used the same video back then and now, and tried with flash now as well as then when html5 didn't exist, but I don't know if flash or youtube added unrelated code that made them slower10:27
apwbrowsers are more tightly controlled now days too10:29
apwand video playback is one of those things where your computer is either fast enough or not10:29
alkisgAnd there's compositing even in the legacy desktops, adding to delays... https too...10:29
alkisgAh, playing with vlc is fast now too10:29
apwit might have been 1% faster than needed before and be 2% slower now and ... you lose10:29
alkisgThe browsers make it like 4 times slower10:30
apwso it is ok in vlc ?10:30
alkisgYeah10:30
apwso not inherantly unplayable then10:30
alkisgUbuntu 16.04 i386 is still fast enough to play an e.g. 1024x768 full screen movie without dropped frames10:30
alkisgIndeed, but there's no way to convince youtube/firefox etc etc to make them more efficient for older machines, so I was looking to gain that 10% performance in case it makes things barely more functional10:31
alkisgapw: so with regards to aslr/pie, we're not expecting any performance differences between e.g. 12.04 and 18.04, since all "major" programs like the kernel or firefox were already using them, correct?10:33
apwthat'd be my feeling10:33
alkisgThank you, I was worried that I would have to hold those machines with 16.0410:34
alkisgLet them work with 18.04 as long as they have a bit of life in them10:34
apwalkisg, as with all things, testing it out is a good plan10:40
alkisgIndeed... hmm I'll actually do a larger comparison, 10.04/12.04/18.04 live cds, and watching the same youtube video...10:41
apwsounds like "fun"10:42
=== Dmitrii-Sh is now known as Dmitrii-Sh-PTO
=== _ruben_ is now known as _ruben

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!