all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gaute Amundsen <gaute@div.org>
To: tomas@tuxteam.de
Cc: Peter Dyballa <Peter_Dyballa@Web.DE>, help-gnu-emacs@gnu.org
Subject: Re: Strange font / frame size problem makes emacs unusable.
Date: Mon, 26 Apr 2010 08:59:45 +0200	[thread overview]
Message-ID: <1272265185.9877.461.camel@totiki> (raw)
In-Reply-To: <20100426052858.GA4875@tomas>

On Mon, 2010-04-26 at 07:28 +0200, tomas@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sun, Apr 25, 2010 at 11:49:20PM +0200, Peter Dyballa wrote:
> >
> > Am 25.04.2010 um 21:43 schrieb Gaute Amundsen:
> >
> >> read(3, 0x9f10018, 4096)                = -1 EAGAIN (Resource
> >> temporarily unavailable)
> >> read(3, 0x9f10018, 4096)                = -1 EAGAIN (Resource
> >> temporarily unavailable)
> >
> > What is there "temporarily unavailable?" And why at all?
> >
> >> poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3,
> >> revents=POLLOUT}])
> >> writev(3, [{"2\30\21\0\1\0<\0", 8},
> >> {"-misc-fixed-medium-r-normal--161"..., 60}, {"", 0}], 3) = 68
> >
> >
> > [...] Find and check them! Some trace variant is able to record files 
> > being opened.
> 
> As Peter says, try to find what fd=3 is (somewhere higher in the trace
> there should be a call to open/connect returning 3).

Searching backwards for ' = 3$' in less gets me this bit:

socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, 20) = 0
getpeername(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0i\1"}, [20])
= 0

To me that looks like a socket to the current X server.

> Linux makes it difficult to find the "other end" of a Unix domain
> socket; nevertheless, if you say "ls -l /proc/fd/<pid of your Emacs>,

ls -l /proc/<pid>/fd/ gives me "3 -> socket:[1218659]"
the first socket emacs opened.

> you'll see where fd3 is going to; with "lsof" or "netstat -axp" you'll
> "see" the connection, but not which process is at the other end...

Both say about the same yes.

emacs   11410 gaute    3u  unix 0xdd478000      0t0 1218659 socket

unix  3      [ ]         STREAM     CONNECTED     1218757  11410/emacs


> So your best bet is to search for connect/open/whatever other calls
> might be returning an fd of 3 up your trace.

Precisely :) 

So emacs is waiting a lot on X..
Particularly while doing something related to one enormous font.

But I can't say I've noticed any particular slowness otherwise..

And what related to X could have been disturbed by my moving of the
system.. 
The xorg.conf is default and as simple as can be.

My first intuition was that X somehow has saved, or relies on an
external "pointer", to a "video device" that is no longer there, and
emacs relies on some info about screen size that is now wrong or
missing.

Guess I could try to reproduce the problem in some other program that
relies on X... but what?

or I could try to start emacs with a remote X server in different ways.
Perhaps I could sidestep gnome somehow, and see if that's related.

But I ramble :)

Gaute






  reply	other threads:[~2010-04-26  6:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-24 20:53 Strange font / frame size problem makes emacs unusable Gaute Amundsen
2010-04-25  8:28 ` Peter Dyballa
2010-04-25 19:43   ` Gaute Amundsen
2010-04-25 21:49     ` Peter Dyballa
2010-04-26  5:28       ` tomas
2010-04-26  6:59         ` Gaute Amundsen [this message]
2010-04-26  9:44           ` Peter Dyballa
2010-04-26 10:05             ` Gaute Amundsen
2010-04-26 15:52               ` Peter Dyballa
2010-04-26 16:56                 ` Gaute Amundsen
2010-04-26  7:18       ` Gaute Amundsen
2010-04-26  9:36         ` Peter Dyballa
2010-04-26  9:58           ` Gaute Amundsen
2010-04-26 15:46             ` Peter Dyballa
2010-04-26 16:56               ` Gaute Amundsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1272265185.9877.461.camel@totiki \
    --to=gaute@div.org \
    --cc=Peter_Dyballa@Web.DE \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.