Josh Berkus <josh@agliodbs.com> writes:
>> I suspect the reason recalc_sigpending_tsk is so high is that the
>> original coding of PG_TRY involved saving and restoring the signal mask,
>> which led to a whole lot of sigsetmask-type kernel calls. Is this test
>> with beta3, or something older?
> Beta3, *without* Gavin or Neil's Futex patch.
Hmm, in that case the cost deserves some further investigation. Can we
find out just what that routine does and where it's being called from?
regards, tom lane