zsh-workers
 help / color / mirror / code / Atom feed
From: Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
To: zsh-workers@zsh.org
Subject: 100,000 calls to rt_sigprocmask for a single <Tab>?
Date: Mon, 21 Oct 2013 12:29:20 +0200	[thread overview]
Message-ID: <1382351360.2595.0@numa-i.igpm.rwth-aachen.de> (raw)

Hi,

on one of my machines ZSH is incredibly slow for <tab> completion.

In a directory with a single executable 'hg_upd' and a single  
subdirectory

./hg<tab>

takes more than 20 seconds. An strace shows that zsh executes nearly  
100,000
calls to rt_sigprocmask  like


mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,  
0) = 0x7ff4da23f000

then 2602 times

rt_sigprocmask(SIG_UNBLOCK, [WINCH], [CHLD WINCH], 8) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [CHLD], 8) = 0

and this pattern about 20 times.

The whole strace log has 111,036 lines for just one entry of <tab>

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  
strace.

Many thanks for a hint,
Helmut.

P.S. On a different but very similar machine this doesn't occur.




             reply	other threads:[~2013-10-21 10:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-21 10:29 Helmut Jarausch [this message]
2013-10-21 15:30 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382351360.2595.0@numa-i.igpm.rwth-aachen.de \
    --to=jarausch@igpm.rwth-aachen.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).