William Cohen <wco...@redhat.com> writes:

> Has there been any thought about perf supporting function reordering? 

See autofdo http://gcc.gnu.org/wiki/AutoFDO and
http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01440.html

It's not in any standard compiler unfortunately.

Standard gcc can do it with profile feedback, but not for the standard kernel.

> Any thoughts on making it easier for perf make this statistical
> callgraph information available and using it to do code reordering?  I
> have experimented with code reorder with user space postgres package
> and it did help performance about 5% improvement in IPC

Is the mechanism of the IPC improvement understood? 

My understanding from older tools that did this the main advantage of
pure reordering (not full profile feedback, which has many advantages) 
is mainly in startup time improvements and lowering the TLB overhead 
slightly, apart from slightly smaller working.

However this all does not apply to the kernel, which does not do demand
paging. In general modern CPUs are pretty good at prefetching code.

For the TLB issues the better strategy is likely just going for
large pages, as Kirill's MM work enables.

-Andi

-- 
a...@linux.intel.com -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to