Originally posted by Brane215
View Post
Announcement
Collapse
No announcement yet.
Torvalds Is Unconvinced By LTO'ing A Linux Kernel
Collapse
X
-
-
BTW, I have noticed on Jan Hubicka's blog that LTO brings most benefits when used with aggressive optimisations like -O3 and profiling driven optimisation.
So it would be nice to have that option with kernel, too. If it wouldn't break anything.
Leave a comment:
-
Originally posted by tpruzina View PostLTO option sounds nice for release kernels of distributions (because generally you don't wanna wait hours for kernel to build while consuming a _lot_ of ram).
I tried building my custom kernel with LTO and it ate 3GB of ram (and my kernel is fairly slim - stripped of unneeded modules).
I dont think my 8gb of ram would suffice for allconfig, though patches seem to have mitigated ram usege to some extent (firefox LTO build takes 7gigs easily on 64bit).
Leave a comment:
-
Guest repliedLTO option sounds nice for release kernels of distributions (because generally you don't wanna wait hours for kernel to build while consuming a _lot_ of ram).
I tried building my custom kernel with LTO and it ate 3GB of ram (and my kernel is fairly slim - stripped of unneeded modules).
I dont think my 8gb of ram would suffice for allconfig, though patches seem to have mitigated ram usege to some extent (firefox LTO build takes 7gigs easily on 64bit).
Leave a comment:
-
The promised numbers on LTO and FIrefox http://hubicka.blogspot.ca/2014/04/l...2-firefox.html
Leave a comment:
-
Originally posted by Brane215 View PostAnd WEEKS of lost time, mopping the cr*p afteer each such gain have lost me half of lifetime already. And it is adding up infinitely faster.
Doing it for testing is fine, but using this in kernel for 1% gain on some irellevant test for 99.999% of the planet while risking for the thing to ge berserk and make fruit salad out of one's disk/s/ is IMHO moronic.
Leave a comment:
-
Originally posted by gens View Postyes, floating point is banned from the kernel for a couple reason
one being just that, that its behavior is dependent on some flags (and they are cpu wide)
check out http://softpixel.com/~cwright/programming/simd/sse.php , the mxcsr register is for sse (x87 has even more stuff)
http://wiki.osdev.org/SSE better explains what needs to be done
also i'm not 100% about how userspace floating point is handled, never had problems with it (tbh never needed to change the state, so..)
Leave a comment:
-
Originally posted by ryao View PostIt turns out this is not strictly correct. Older Linux kernels use the ts bit on x86 to try to avoid reloads as much as possible:
This is related to this question. I'm not an expert on Linux device drivers or kernel modules, but I've been reading "Linux Device Drivers" [O'Reilly] by Rubini & Corbet and a number of online
It is still basically what I described earlier though. The kernel simply does not need floating point arithmetic. Sometimes, vector instructions are useful, but in those times, we use critical sections. Anyway, few kernel developers ever use these functions.
one being just that, that its behavior is dependent on some flags (and they are cpu wide)
check out http://softpixel.com/~cwright/programming/simd/sse.php , the mxcsr register is for sse (x87 has even more stuff)
Leave a comment:
-
Originally posted by erendorn View PostFTFY.
One can care about linux and still not care about what you specifically care.
Leave a comment:
Leave a comment: