bugGNU Octave - Bugs: bug #46954, long initialization time of octave

 
 

bug #46954: long initialization time of octave

Submitted by:  Peter <yangbaxter>
Submitted on:  Sat 23 Jan 2016 11:26:31 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Performance
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 23 Jan 2016 09:16:08 PM UTC, comment #3:

Good to know it has been fixed. Closing report.

Rik <rik5>
Project Administrator
Sat 23 Jan 2016 04:54:09 PM UTC, comment #2:

Dear Rik,

real 0m6.053s
user 0m5.617s
sys 0m0.116s

real 0m0.090s
user 0m0.072s
sys 0m0.016s

Thanks for the hint using "-f".

I found ppa:octave/stable leading to v. 4.0.0.

Indeed, there the error is gone, now I get 0.22s real time,
that's perfect. Strace now gives a pretty short output,
the futexes seem to be replaced by rt_sigaction.

In summary, the problem is solved in 4.0.0.

Thanks for your help and I apologize for any inconvenience,
Peter

Peter <yangbaxter>
Sat 23 Jan 2016 03:58:35 PM UTC, comment #1:

First, version 3.8.1 is ancient and no longer supported. Unless you can replicate this on the current stable version (4.0.0) there's not much to be done.

Second, try a simpler test case. Create a file called "stop.m" with the single command

and then run

For reference, this took 0.6 seconds of wall time on my computer.

Also, try bypassing any initialization files you may have by running with the '-'f switch.

This saved about 25% in my case.

Rik <rik5>
Project Administrator
Sat 23 Jan 2016 11:26:31 AM UTC, original submission:

Dear All,

I suffering a long initialization time of octave,
it's only about 5s to 6s but it's annoying if you use
octave in batch scripts calling it hundreds of times.

It tried to investigate this using strace and realized, that
octave is looking at lots of java related files:

However, the real delay is seems to come from time outs of futex requests:

typically looking like

I didn't attached the complete strace output, as it's 2.4 MB long.

I'm runnin kubuntu:
lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Any help would be highly appreciated,
best regards,
Peter

Peter <yangbaxter>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by yangbaxter (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 23 Jan 2016 09:16:08 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1