* sys_rt_sigreturn calling sys_futex?
@ 2010-01-22 21:46 Ivan Novick
2010-01-22 22:00 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Novick @ 2010-01-22 21:46 UTC (permalink / raw)
To: linux-kernel
Hello,
I have a userspace app that I profiled using SystemTap.
It says there are frequent calls to sys_futex which come from sys_rt_sigreturn.
It is true, that my app has many signal handler calls due to
frequently set timers in the code.
I had a look at the source for my kernel: Suse: linux-2.6.27.39-0.3
but I don't see any calls to futex from inside sys_rt_sigreturn.
Do you know if sys_rt_sigreturn is somehow calling sys_futex?
And if so, does this imply that ultra-frequent signal handling can
create a bottleneck between many processes in the sys_rt_sigreturn
system call trying to access a futex?
Thank you and regards,
Ivan Novick
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sys_rt_sigreturn calling sys_futex?
2010-01-22 21:46 sys_rt_sigreturn calling sys_futex? Ivan Novick
@ 2010-01-22 22:00 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2010-01-22 22:00 UTC (permalink / raw)
To: Ivan Novick; +Cc: linux-kernel
On Fri, 22 Jan 2010, Ivan Novick wrote:
> Hello,
>
> I have a userspace app that I profiled using SystemTap.
>
> It says there are frequent calls to sys_futex which come from sys_rt_sigreturn.
>
> It is true, that my app has many signal handler calls due to
> frequently set timers in the code.
>
> I had a look at the source for my kernel: Suse: linux-2.6.27.39-0.3
> but I don't see any calls to futex from inside sys_rt_sigreturn.
>
> Do you know if sys_rt_sigreturn is somehow calling sys_futex?
Well, it is not calling sys_futex, it is resuming the sys_futex
syscall which was interrupted by the signal. When the signal handler
returns it returns to the system call automatically.
Thanks,
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-22 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-22 21:46 sys_rt_sigreturn calling sys_futex? Ivan Novick
2010-01-22 22:00 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®