Re: ELinks hogging CPU?

Chris Jones <[email protected]>
Newsgroups gmane.comp.web.elinks.user
Message-ID <[email protected]>
On Thu, Feb 19, 2009 at 08:30:30AM EST, Sven Hartrumpf wrote:
> Thu, 19 Feb 2009 13:25:43 +0000, thomas.adam22 wrote:
> > Attach strace to the running instance, please.

> You can do this from htop by pressing s.  Also, please check if the
> accumulated user and system time is really large. Sometimes, the
> current percentages are not accurate.

Handy!

The accumulated time is also very large - roughly ten times that of the
X server and about thirty times that of my window manager.

Here's a short excerpt of the strace:

stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
time(NULL)                              = 1235122444
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
time(NULL)                              = 1235122444
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
open("/home/gavron/.elinks/formhist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/gavron/.elinks/formhist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/gavron/.elinks/formhist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
time(NULL)                              = 1235122444
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
time(NULL)                              = 1235122444
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
time(NULL)                              = 1235122444
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
open("/home/gavron/.elinks/formhist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/gavron/.elinks/formhist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/gavron/.elinks/formhist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

The same calls are repeated over and over so that should be enough to
nail it.

I'll look for doc re: the "formhist" file in the morning and why I need
one (mismatch between my elinks.conf file and my environment?)

Thanks,

CJ
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.