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=Hk4i5CDqr/YYDgCwLS/lTkJtsZ8Ag1ZRvAD7r0rnAE3 jmh1z7PhDUrIlMxdxbLpRnKNhAeEY5Hhxv9YlhGp4+9ElX43Ji0iHSkK07PoPtcy QsOEIl72l9Ux3f9OyMKN6nanMjHyrwpn2X0i7+nRyuxra5FmrMs/vkb0lXwBPkas = 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=RC7CS5Eg1hZ7SAy+Zv723olL8xI=; b=ZV25fdj26tUF6DVHz akBULurN6bJaPGy40D5NC1pSABnd3LhpjcvXMRHSSwpdNhZs5Cc0Pxk0VG2yE1Fm HTZZTUtrwp5yttIqJFk1Fc4z/aU8V1oS57mV7QW1q+2UMaycWknTxwiGTK1vxHLN npLkc/bMmAwKeiEjJ0YfHcj1Go= 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=-0.1 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f174.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=Po7/LE/hXz4a5Vlm+KAFAmwzDiRhK54kgY5gNe89PoA=; b=WNVDxh7V24R7lIoEJ5rsRAHwtcpQEEYxwkl4RKoKC/haGWE7ihHPMNC9r9GtIC/8OK Y8ceJpdE7O7Oy3+MlXNk/SOZSOZz9dhECRAAJxQTzb77QYe4VeKmoe2n1uf/Bz+oiStn BCbv6QaRswlME/tHdLvWICzrQ9PX6t/PS//0xBo0wBv92h2hCkydBgxKJbFnJxXQPWAR NPgoZXGC86hxkqzFz3I8o7fu6fGsTNeZO40BvKMDJcJzyR1XwElDQ46i2R/sk8Ow3VAa Me77vjcMyn/VKOtK8UK/lTwtxQbIfPj9380xO1B/DFLbvTXnsQYSmYKREgkHwcImZOl9 YSIA== X-Gm-Message-State: ALoCoQnOzxnd9dsUrc0lt0s6w+9t3HmI2vegpVdDZGd616HTR+2Cc+anywyzm2RKoiMakk3sOHg6 X-Received: by 10.194.161.138 with SMTP id xs10mr26535576wjb.37.1433776396938; Mon, 08 Jun 2015 08:13:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150608132103.GJ3005@calimero.vinschen.de> 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:12:56 +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 t58FDeUC011641 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! -- 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