[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Slow ETerms



Ross Burton <ross.burton@mail.com> writes:

> On Wed, 2001-11-07 at 15:21, DvB wrote:

<snip>

> 
> I have recreated the strace file and dug around:
> 
> socket(PF_UNIX, SOCK_STREAM, 0)         = 3
> connect(3, {sin_family=AF_UNIX, path="/tmp/.X11-unix/X0"}, 19) = 0
> ...
> A few pages later there are hundreds (well, maybe not quite that many,
> but lots) of readv(3, ...) calls which return "-1 EAGAIN (Resource
> temporarily unavailable)".  I this this is what is causing the
> slowdown.  Does anyone know why this is?  I guess that socket is used to
> talk to the X server.  However, the protocol appears to be binary not
> textual (fair enough) so I have no idea what exactly is causing the
> slowdown.  Is there a way I can profile the server end of the
> connection. or any other way of determining the problem?
> 

If it helps, I ran an strace on eterm and got the same socket and
connect lines (exactly). However, I have only 3 readv(3...) calls with
non-negative return values (32, 64 and 64) so I'm guessing that's your
problem... but you probably knew that already :-)
Anyway, if it'll help I can send you my strace file off-list.

HTH



Reply to: