From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25849 invoked by alias); 21 Oct 2013 10:39:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31868 Received: (qmail 13745 invoked from network); 21 Oct 2013 10:39:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 X-IronPort-AV: E=Sophos;i="4.93,538,1378850400"; d="scan'208";a="154615764" Date: Mon, 21 Oct 2013 12:29:20 +0200 From: Helmut Jarausch Subject: 100,000 calls to rt_sigprocmask for a single ? To: zsh-workers@zsh.org X-Mailer: Balsa 2.5.1-78-ga06951b Message-Id: <1382351360.2595.0@numa-i.igpm.rwth-aachen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, on one of my machines ZSH is incredibly slow for completion. In a directory with a single executable 'hg_upd' and a single =20 subdirectory ./hg takes more than 20 seconds. An strace shows that zsh executes nearly =20 100,000 calls to rt_sigprocmask like mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =20 0) =3D 0x7ff4da23f000 then 2602 times rt_sigprocmask(SIG_UNBLOCK, [WINCH], [CHLD WINCH], 8) =3D 0 rt_sigprocmask(SIG_BLOCK, [WINCH], [CHLD], 8) =3D 0 and this pattern about 20 times. The whole strace log has 111,036 lines for just one entry of What's wrong with my machine/installation? I'm using zsh-5.0.2-dev-0 (GIT version) on my Gentoo system, which is nearly "bleeding edge". This problem is not knew, I've been just too lazy to run zsh under =20 strace. Many thanks for a hint, Helmut. P.S. On a different but very similar machine this doesn't occur. =