delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/04/09:36:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_34,J_CHICKENPOX_43,SPF_PASS
X-Spam-Check-By: sourceware.org
From: Haojun Bao <baohaojun AT gmail DOT com>
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>
Date: Sat, 04 Jul 2009 21:35:23 +0800
In-Reply-To: <4A4F3D39.4070908@cornell.edu> (Ken Brown's message of "Sat, 04 Jul 2009 07:30:01 -0400")
Message-ID: <7v63e8efl0.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (cygwin)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ken Brown <kbrown AT cornell DOT edu> 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.

ehhh, man, very sorry, I might been busted by gmail, I don't know how
 this happen. The following is the reply I wrote to your
 request. Luckily Gmail saved it in Sent Mail.

Here it is, without the attachment:

----------------------------------------------------------------

Sorry.

Cygwin is 1.7, I update very often, and I can reproduce it both at home
and in office.

Here's the steps to reproduce it:

0. Start X, and set DISPLAY:
  $startxwin.sh
  $export DISPLAY=:0

1. start bash from cygwin.bat:
   $cygstart /Cygwin.bat

2. In the cygwin.bat console window, start emacs-X11 using run.exe:
  $run emacs-X11.exe -q


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]=

a2. Quit emacs, start it again in cygwin.bat window, this time use:
   $emacs-X11.exe -q #without the `run'

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]=

Also, I used Procmon to see how emacs is doing. Emacs is sending/recving
lots of TCP packets to localhost 1053 (X server I guess), but in the 1st
case, 552/861 of their sizes are 32 bytes, while on the 2nd case, 318
out of 723 packets are of size 32.

Also, I checked how many of the packets are of size [100, 1000), the
result is more illustrative, in the 1st case, 86/861, in the second
case, 281/723

The Procmon result with only TCP data is attached, after unpack, there
is a slow.csv and a fast.csv.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019