From xemacs-m  Fri Jan 17 00:31:20 1997
Received: from UCSD.EDU (mailbox2.ucsd.edu [132.239.1.54])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id AAA01370 for <xemacs-beta@xemacs.org>; Fri, 17 Jan 1997 00:31:19 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by UCSD.EDU (8.8.3/8.6.9) with SMTP id WAA06691 for <xemacs-beta@xemacs.org>; Thu, 16 Jan 1997 22:31:20 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id WAA20910; Thu, 16 Jan 1997 22:29:01 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: xemacs-beta@xemacs.org
Subject: Re: Xemacs taking up a lot of cycles while `idle'
References: <12215.853396330@alexandria11> <m2d8v4hoou.fsf@altair.xemacs.org>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
From: David Moore <dmoore@UCSD.EDU>
Date: 16 Jan 1997 22:29:00 -0800
In-Reply-To: Steven L Baur's message of 16 Jan 1997 21:10:25 -0800
Message-ID: <rvwwtclsr7.fsf@sdnp5.ucsd.edu>
Lines: 33
X-Mailer: Red Gnus v0.80/XEmacs 19.15

Steven L Baur <steve@miranova.com> writes:

> Soren Dayton writes:
> 
> > top says this about my xemacs process that has been idle for ten hours:
> > 24652 csdayton  25    0   23M   16M cpu    26.8H 29.17% 25.78% xemacs
> 
> > Now, I just iconify it and let it sit and I get this (repeating
> > indefinitely) from a truss.
> 
> > sigprocmask(SIG_UNBLOCK, 0xEFFFF0BC, 0x00000000) = 0
> > unlink("/homes/csdayton/.saves-4859-gargoyle164.cs.uchicago.edu") Err#2 ENOENT
> > ioctl(16, FIONREAD, 0xEFFFEFB4)                 = 0
> > ioctl(16, FIONREAD, 0xEFFFEFB4)                 = 0
> > poll(0xEFFFCDD0, 4, 0)                          = 0
> > poll(0xEFFFCD60, 3, 0)                          = 0
> 
> Isn't this due to defining BROKEN_SIGIO?

	I accidently sent an earlier reply to just Soren.  I've seen
this on solaris 2.5 also.  I believe the ioctl's and sigprocmasks are a
function of the multithreaded X client code and the implementation of
`select' on top of `poll'.  Although is it really necessary for XEmacs
to wake up every 15 seconds to check on autosaving, which it does now?
The unlink call is heavyish operation when your home directory is nfs
mounted.  Maybe turn off the handler when it has autosaved, and only
turn it back on when something changes the state of emacs?

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In cloud bones of steel.

