* emacs 22.1 hogging CPU
@ 2007-06-18 18:04 David L
0 siblings, 0 replies; 4+ messages in thread
From: David L @ 2007-06-18 18:04 UTC (permalink / raw)
To: bug-gnu-emacs
I started emacs like this:
emacs -l shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.nep2 -f
nep-build-and-load-tags -title "fc6debug1_1t gtkview"
For several minutes after I started it, emacs was using between 10%
and 40% of a 3GHz P4. This problem is either new with the 22.1
release or is much worse now. I don't know how to profile emacs
to tell what's using the CPU, but emacs appears to be doing nothing
at the time except waiting for user input... the building and loading
of etags had long since finished.
The contents of the gtkview.nep2 file looked like this:
(defconst nep-project-name "shared/sw/gvu/bin/fc6debug1_1t/gtkview.nep"
"Define the full name of this project file relative to the CVS root
level")
(defconst nep-build-dir "shared/sw/gvu/src"
"Defines the build directory relative to the CVS root level")
(defconst nep-bin-dir "shared/sw/gvu/src/../bin"
"Defines the bin directory relative to the CVS root level")
(defconst nep-exec-root "gtkview"
"Defines the DL-style executable root name")
(defconst nep-build-script "./buildgtkview"
"Defines the DL-style buildscript")
(defconst nep-build-target "fc6debug1_1t"
"Defines the DL-style target")
(defun nep-debug-project ()
(interactive)
(gdb "gdb -cd=/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src
--annotate=3
/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview"))
(defconst nep-tags-file-name
"/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.etags")
(defconst nep-cvsrootlevel "/projects/ct/team/dl/tim/svncvs/trunk")
(defconst nep-current-project
"/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.el")
(defconst nep-current-project-makefile
"shared/sw/gvu/src/makefile.gtkview")
The function nep-build-and-load-tags looks like this:
;; function called when using the "emacs" target
(defun nep-build-and-load-tags ()
(add-hook 'compilation-finish-functions 'nep-load-tags-after-compile)
(nep-build-etags)
(visit-tags-table nep-tags-file-name)
(find-tag "main")
)
The function nep-build-etags looks like this:
(defun nep-build-etags ()
(interactive)
(compile (concat "cd " nep-cvsrootlevel "/"
nep-build-dir "; "
nep-build-script " "
nep-build-target " etags"))
)
The problem seems to be intermittent.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.1/etc/DEBUG for instructions.
In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.8)
of 2007-06-18 on chewbacca.x.com
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--with-x-toolkit=gtk''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: C++/l
Minor modes in effect:
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
abbrev-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <help-menu> <report-emacs-b
ug>
Recent messages:
Loading cc-mode...done
Loading /home/dl/ecb/semantic-1.4.4/semantic-c.el (source)...done
Loading vc-svn...done
Loading vc...done
Mark set
(iconify-frame (#<frame emacs@chewbacca.x.com 0x85f0e28>))
(make-frame-visible (#<frame emacs@chewbacca.x.com 0x85f0e28>))
(iconify-frame (#<frame emacs@chewbacca.x.com 0x85f0e28>))
(make-frame-visible (#<frame emacs@chewbacca.x.com 0x85f0e28>))
Loading emacsbug...done
_________________________________________________________________
Like puzzles? Play free games & earn great prizes. Play Clink now.
http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs 22.1 hogging CPU
@ 2007-06-19 15:59 David L
2007-06-19 16:02 ` Jason Rumney
0 siblings, 1 reply; 4+ messages in thread
From: David L @ 2007-06-19 15:59 UTC (permalink / raw)
To: bug-gnu-emacs
>I started emacs like this:
>emacs -l shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.nep2 -f
>nep-build-and-load-tags -title >"fc6debug1_1t gtkview"
>
>For several minutes after I started it, emacs was using between 10%
>and 40% of a 3GHz P4. This problem is either new with the 22.1
>release or is much worse now. I don't know how to profile emacs
>to tell what's using the CPU, but emacs appears to be doing nothing
>at the time except waiting for user input... the building and loading
>of etags had long since finished.
emacs is now using 98.1% of a P4 3GHz while apparently doing
nothing. It is continuously using more than 50%.
Here's the output of top:
26022 rmel 39 19 104m 37m 10m R 98.1 1.9 51:01.88 emacs
One of my co-workers is logged into my machine running emacs and
it is his session that is hogging the CPU. I just went and talked to him
and he wasn't doing anything in that session. He had left the emacs
code browser open, so I asked him to deactivate it to see if that would
make the problem go away. It did not. Is there a way to get emacs to
profile itself while this problem is happening so I can provide some
more useful debugging info?
Thanks,
David
_________________________________________________________________
Hotmail to go? Get your Hotmail, news, sports and much more!
http://mobile.msn.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-19 16:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-18 18:04 emacs 22.1 hogging CPU David L
-- strict thread matches above, loose matches on Subject: below --
2007-06-19 15:59 David L
2007-06-19 16:02 ` Jason Rumney
2007-06-19 16:24 ` David L
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).