Skip to contentSkip to conversation

What is the performance when using frame pointers in the kernel?

DISCUSSION Justin Piszcz 5 participants 6 messages Dec 3, 2009 – Dec 6, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

What is the performance hit when the kernel is compiled with frame pointers?

Justin.

#1 lore raw
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.

#2 lore raw
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.
#3 lore raw
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.

#4 lore raw
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

#5 lore raw
In reply to Jiri Kosina
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.