Re: [elinks-users] ELinks hogging CPU?

2009-02-20 Thread Chris Jones
On Thu, Feb 19, 2009 at 08:30:30AM EST, Sven Hartrumpf wrote:
 Thu, 19 Feb 2009 13:25:43 +, 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
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] ELinks hogging CPU?

2009-02-20 Thread Chris Jones
On Thu, Feb 19, 2009 at 09:25:14AM EST, Miciah Dashiel Butler Masters wrote:
 On 02/19/2009 07:52 AM, Chris Jones wrote:
  A bit of an exaggeration, but I noticed recently that on an idle system
  top had just about every process using a fraction of 1% CPU while ELinks
  with 2-3 tabs open on general purpose sites such as google news was
  using c. 5% CPU.
 
 What version of ELinks are you using?
 
 Try disabling clock and LEDs under the Setup - Options manager - User
 Interface.  

Good catch!

Disabled the LEDs.. htop now says 0% CPU and strace is empty.

 Also, you can check that you don't have a timer enabled
 (User Interface - Timer options - Enable), but it shouldn't be unless
 you explicitly configured it to be.

Had disabled not long ago.

Must have enabled stuff didn't need when first configuring ELinks just
to take a look at what it did.

Thanks,

CJ

___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] ELinks hogging CPU?

2009-02-19 Thread Thomas Adam
2009/2/19 Chris Jones cjns1...@gmail.com:
 A bit of an exaggeration, but I noticed recently that on an idle system
 top had just about every process using a fraction of 1% CPU while ELinks
 with 2-3 tabs open on general purpose sites such as google news was
 using c. 5% CPU.

 I haven't been able to guess at why this might be happening. Only thing
 that I noticed is that if I bounce ELinks and reopen the same tabs it
 will behave for a few hours and then go back to using CPU cycles for no
 apparent reason.

 Can't say I've lost sleep over this, just curious.

 Any suggestion as to how I could figure out what ELinks is actually
 doing?

Attach strace to the running instance, please.

-- Thomas Adam
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] ELinks hogging CPU?

2009-02-19 Thread Sven Hartrumpf
Thu, 19 Feb 2009 13:25:43 +, 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.

Sven


pgpcQwM6bEQMf.pgp
Description: PGP signature
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] ELinks hogging CPU?

2009-02-19 Thread Miciah Dashiel Butler Masters
On 02/19/2009 07:52 AM, Chris Jones wrote:
 A bit of an exaggeration, but I noticed recently that on an idle system
 top had just about every process using a fraction of 1% CPU while ELinks
 with 2-3 tabs open on general purpose sites such as google news was
 using c. 5% CPU.

What version of ELinks are you using?

Try disabling clock and LEDs under the Setup - Options manager - User
Interface.  Also, you can check that you don't have a timer enabled
(User Interface - Timer options - Enable), but it shouldn't be unless
you explicitly configured it to be.

-- 
Miciah Masters miciah.mast...@gmail.com / mdm0...@ecu.edu
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users