RFC: Reducing the number of non volatile GPRs in the ppc64 kernel
Anton Blanchard
anton at samba.org
Wed Aug 5 14:03:00 AEST 2015
Hi,
While looking at traces of kernel workloads, I noticed places where gcc
used a large number of non volatiles. Some of these functions
did very little work, and we spent most of our time saving the
non volatiles to the stack and reading them back.
It made me wonder if we have the right ratio of volatile to non
volatile GPRs. Since the kernel is completely self contained, we could
potentially change that ratio.
Attached is a quick hack to gcc and the kernel to decrease the number
of non volatile GPRs to 8. I'm not sure if this is a good idea (and if
the volatile to non volatile ratio is right), but this gives us
something to play with.
Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-volatiles.patch
Type: text/x-patch
Size: 5092 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20150805/62c196ca/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-volatiles.patch
Type: text/x-patch
Size: 2258 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20150805/62c196ca/attachment-0003.bin>
More information about the Linuxppc-dev
mailing list