X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_34,SPF_PASS X-Spam-Check-By: sourceware.org From: Haojun Bao To: cygwin AT cygwin DOT com Subject: Re: `run emacs' in win32 console cause bad emacs performance References: <831voye808 DOT fsf AT gmail DOT com> <4A4DFE7B DOT 1050500 AT cornell DOT edu> <7veisxsonu DOT fsf AT gmail DOT com> <4A4F3D39 DOT 4070908 AT cornell DOT edu> <7v63e8efl0 DOT fsf AT gmail DOT com> Date: Sat, 04 Jul 2009 22:34:32 +0800 In-Reply-To: <7v63e8efl0.fsf@gmail.com> (Haojun Bao's message of "Sat, 04 Jul 2009 21:35:23 +0800") Message-ID: <7vk52ojz47.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (cygwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Haojun Bao writes: > Ken Brown writes: > >> On 7/3/2009 12:43 PM, Haojun Bao wrote: >> [empty message with attachment] >> >> Was this supposed to be a reply to my request for more information? >> I'll repeat what I said: >> >>> I can't reproduce this, but you haven't really given enough details. >>> I don't know if you're using cygwin 1.5 or 1.7, or which version of >>> emacs you're running, or.... >>> >>> http://cygwin.com/problems.html >>> http://www.catb.org/~esr/faqs/smart-questions.html >> >> Please look at those two links and follow the guidelines for reporting >> a problem. > > ... > 3. In the emacs window, move cursor up/down, take a note it's speed, and > run: > $ps aux|grep emacs > $ls -l /proc/3804/fd/ #3804 is the emacs pid > Here's the output: > lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 0 -> socket:[1584]= > > ... > a3. In the emacs window, move cursor up/down, I can see it's smoother > this time. It's reproducible on my PCs both at home/office. And the fd > list: > lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 0 -> /dev/console > lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 1 -> /dev/console > lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 2 -> /dev/console > lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 3 -> socket:[1612]= > hi, I have simplified the test case a bit. Wrote 2 .py files, one I get slow emacs, the other I get normal(smooth) emacs: $cat slow.py #!/bin/python import os os.close(0) os.close(1) os.close(2) #must make sure X server is running already, or else this doesn't show #anything, even no -nw version of emacs. my /bin/emacs is alternative to #/usr/bin/emacs-X11 os.system("emacs -q") $cat fast.py #!/bin/python import os os.system("emacs -q") (And my original problem is `run emacs' in cygwin.bat console will cause emacs slow, and I observed there's only one fd (socket to X) open for the emacs process started this way; no stdin/out/err). -- 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