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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=RyESXm1y/t0bYVSkm08+xEO/8hP7q1P9cmOah6u6TcX6Df5SPwPv2 NrHQqWnhIdjIR2hEeDLLCCgKAhs57nAHdYJhkcLLLzduhWEROs8PIUI2rKtAhwiZ GFt2yidECng+jMqn4QSqEZJFwGvHviBxg99akkmh6+ajRwGnGt65rs= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=1yfoDGPei1vheu4Rn5VAykwaE54=; b=R0vDM+E/cpubT22slt2joHeQ6P2v R5S1wY8frmub0zpd1IuLAotV1sInuGMF4By1HB8KIFChNsTpNOLDMbk0iC9btMVv 5Uf6MtSqXEplxAA0+oqavZeq4GAB4cArMzKjUFwIW1acivPEPWo1m977Zg7xcu0a kHa8jHAw4IDw6AA= 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=-4.5 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 8 Jun 2015 14:41:59 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: More details about the tmux 2.0 regression Message-ID: <20150608124159.GE3005@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="imjhCm/Pyz7Rq5F2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --imjhCm/Pyz7Rq5F2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 6 12:58, =C4=B0smail D=C3=B6nmez wrote: > Hi, >=20 > 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. >=20 > 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 >=20 > 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. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --imjhCm/Pyz7Rq5F2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVdY2XAAoJEPU2Bp2uRE+gcuwP/1oTsEpaQvFPCq0335VQK4xj 6nuXcXTnPIQIHYNqeULlCKVQGA8fy6BDHQ7+/BAhumydFcjOeZIqhGRb5OSQBjQ8 FraJxz8WialOl7iIZokgX2zsLgt3p/387vuqFYm88H7YHmQEZ9tRXtiChqSPA3ko UESaGjwJtplMOG2x2m3Y9b9+3q48kHMm36BI6B1YFgCAbQxdnbfs0IEjI3U0KWm2 QlnXc//XHOrEodo6G39JkzWRy8S/RDjIeb+q/dlf9L0A/KjAM/p1w5qHspTl6HHh 1DtCNEKDQXiGouuRDFnGDdPczZVUNRAlO2kRXVTdbX1AeNYDUqfJcR9uLpeaUx7R TQREi0/QW+FRNRUCEx8+2WNy4h/FGcWbQVwnfF7Dn06xVRv1W0RZ90sW85nmeSTl zuRsYNzVyWGs4M0dznGJHG/6v6a7/QJO7jyWlM3cPCq1moeHufLsPBCg3dmOTVQe PtERxwBcdqjJba3CpzgBp+getgbXIg3KvgHzGSejqjlW1r1MS0kmlxEnQ9kI0SsI lO5NpNnUsKClkkDFhj75o4wT9qnzTA4zETLhIzqlDwoLpE2lk6HCkf4OgqwHsnqS 2mloR3CaikNfQS8brARax/jG0cMR0TECQ9yN8fZ/TZZttm+17c7uIyIKUtMe8vIt +0Bc31upY84YwSK6YD9r =IWEy -----END PGP SIGNATURE----- --imjhCm/Pyz7Rq5F2--