X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; q=dns; s=default; b=MD/afJZfxNumWUdz3/QpIT05zpA5hTTFvE9jMKMvygp sCX5Mj7UKFBeRySfCs0Rdlm7GmVdXuwsCEwbN33ZkswJua56aUhw4XoIPNCKlKQI i0QEHb7a9S5GoRcFVK6eSPXyVx5kPyP8x0/oTdPZt2Hx7e9UgWVvbnn7/0b9qndM = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=default; bh=CzfNGulytloLETmmRaCihpQL1Uo=; b=cCkZ8CfTTr/QuU8ps 0BqfzWS7NbPDiCkT5GkbSXHrCVZ6wRA9F84JB0Xxnm3aFGT210+/DAO5DpoTqgLl SCpQGkLr77QfiVTdYpra7ecg3OWyg7CWP3TIv+ETWBxpu3MOC2oABrCbTCeS99pA b1r0Nvow6/IVfEJQEG0AOXweu0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f175.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=RCxrh6nZY/dK0iI50yKD3Wt5cd1m1mhPsA4hwZOuB+0=; b=ZsZdJW4oty8IYkS1mxClOO/YeiMeob1tQho1Ly0RlfdTNkzwKcfUjKDO2P13xKuecw auMkEEjMkICxFbShBrdieyVEMHPVi3thyLD/itoU1E4zOu9RSdjXTMLmLblq3Iglg0vp SyxH5J1T9Fvi18Uq/NnH1CaoLfOJSpNv7bRfrwtaWAjj3YD2I8JfLEinn/W7P9rfE8mw QMjRNQIAkKqtnyFAr3qkWrkgJ7RLr8sMWxVcz4pM1r+NxiqzBFDYEsxbziupNtDISN/z hZUgxiJLoMbCSnmCR2N3fC3sQE9rX4OpUxB5eC9tJeUDPvd5Fzyqw0RkWVS3Mf59Dee0 MzXQ== X-Gm-Message-State: ALoCoQlTG379K4pSgw2cE8Wj+Kj6vxLkPc5QPOcOWQfi7kN6ZVRPVq365PY+Rq1DCadMfZ62xYR+ X-Received: by 10.180.9.111 with SMTP id y15mr23058219wia.18.1433777180007; Mon, 08 Jun 2015 08:26:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20150608124159 DOT GE3005 AT calimero DOT vinschen DOT de> <20150608132103 DOT GJ3005 AT calimero DOT vinschen DOT de> From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Mon, 8 Jun 2015 18:25:59 +0300 Message-ID: Subject: Re: More details about the tmux 2.0 regression To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t58FQZbs012397 On Mon, Jun 8, 2015 at 6:12 PM, İsmail Dönmez wrote: > On Mon, Jun 8, 2015 at 4:21 PM, Corinna Vinschen > wrote: >> On Jun 8 14:41, Corinna Vinschen wrote: >>> On Jun 6 12:58, İsmail Dönmez wrote: >>> > Hi, >>> > >>> > I had a nice discussion with tmux maintainers over at >>> > https://github.com/tmux/tmux/issues/13 about the tmux 2.0 regression >>> > on Cygwin. >>> > >>> > Long story short, tmux is trying to read /proc//cmdline and >>> > /proc//cwd for various reasons and for non-Cygwin programs this >>> > is quite slow. You can reproduce this easily run cmd.exe inside bash >>> > and try to >>> > >>> > cat /proc//cmdline >>> >>> Good catch! >>> >>> The problem here was that this functionality is very Cygwin centric. It >>> tries to call into the process itself to fetch the information. >>> >>> E.g, assuming you have some /proc/1234, it tries to fetch the information >>> by sending a request to process 1234 and then waits for that process >>> setting a semaphore. A non-Cygwin process will obviously fail to do so, >>> not knowing about the method at all. >>> >>> I fixed that in the Cygwin git repo and it seems to work much better now >>> to run native tools inside tmux with this change. >>> >>> I'll upload a developer snapshot on https://cygwin.com/snapshots/ later >>> today. >> >> Snapshot is up. > > That resolves the problem for me, cheers! One question though, would it be possible to return executable name instead of for non-Cygwin processes? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple