Performance issue

Daniel Eischen deischen at freebsd.org
Mon May 9 11:36:34 PDT 2005


On Mon, 9 May 2005, Suleiman Souhlal wrote:
> Hello,
>
>
> I ran ktrace(1) on it, and it appears that python keeps calling
> sigprocmask() continually:
>
>     673 python   0.000007 CALL  sigprocmask(0x3,0,0x811d11c)
>     673 python   0.000005 RET   sigprocmask 0
>     673 python   0.000009 CALL  sigprocmask(0x1,0,0x8113d1c)
>     673 python   0.000005 RET   sigprocmask 0
> etc..
>
> This explains why it's using so much system time. Now the question is
> why is python doing this?

I don't know what python's doing, but it might not be calling
sigprocmask directly.  There are a few libc functions that use
sigprocmask:

	db/btree/
	db/hash/
	pselect(),
	setmode(),
	{sig}setjmp(), {sig}longjmp(),
	grantpt(),
	system()

to name a few.  Python may also be using other libraries which
use sigprocmask().

-- 
DE



More information about the freebsd-stable mailing list