What is the performance when using frame pointers in the kernel?
Hello,
What is the performance hit when the kernel is compiled with frame pointers?
Justin.
Quoted 2 lines · Justin Piszcz
What is the performance hit when the kernel is compiled with frame pointers?
build both kernels and run your favourite workload to find out.
Quoted 4 lines · Peter Zijlstra
Quoted 2 lines
What is the performance hit when the kernel is compiled with frame pointers?
build both kernels and run your favourite workload to find out.
But generally speaking, frame pointers impose quite some performance penalty indeed. lmbench syscall microbenchmark can give you some hint. I expect you'll see approx. 10% performance increase for various syscalls if you disable them, as that's what we have measured lately.
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.
Quoted 5 lines · Jiri Kosina
Quoted 3 lines · Peter Zijlstra
Quoted 2 lines
What is the performance hit when the kernel is compiled with frame pointers?
Quoted 11 lines
Quoted 1 line
build both kernels and run your favourite workload to find out.
But generally speaking, frame pointers impose quite some performance penalty indeed. lmbench syscall microbenchmark can give you some hint. I expect you'll see approx. 10% performance increase for various syscalls if you disable them, as that's what we have measured lately.
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.
Thanks for the response.. Good to know.
Justin.
Quoted 14 lines · Justin Piszcz
Quoted 12 lines · Jiri Kosina
Quoted 4 lines · Peter Zijlstra
Quoted 2 lines
What is the performance hit when the kernel is compiled with frame pointers?
build both kernels and run your favourite workload to find out.
But generally speaking, frame pointers impose quite some performance penalty indeed. lmbench syscall microbenchmark can give you some hint. I expect you'll see approx. 10% performance increase for various syscalls if you disable them, as that's what we have measured lately.
Quoted 6 lines
Quoted 4 lines
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.Thanks for the response.. Good to know.
I dont buy the 10% without seeing precise measurement results. 1-2% maybe, in some cases.
Ingo
Quoted 11 lines · Jiri Kosina
Quoted 4 lines · Peter Zijlstra
Quoted 2 lines
What is the performance hit when the kernel is compiled with frame pointers?
build both kernels and run your favourite workload to find out.
But generally speaking, frame pointers impose quite some performance penalty indeed. lmbench syscall microbenchmark can give you some hint. I expect you'll see approx. 10% performance increase for various syscalls if you disable them, as that's what we have measured lately.
It'll depend on the CPU. On many common cores frame pointer cause a a few cycles stall on each function entry, but not on all.
-Andi
Signature · 1 line
[email protected] -- Speaking for myself only.