octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46954] long initialization time of octave


From: Peter
Subject: [Octave-bug-tracker] [bug #46954] long initialization time of octave
Date: Sat, 23 Jan 2016 11:26:32 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

URL:
  <http://savannah.gnu.org/bugs/?46954>

                 Summary: long initialization time of octave
                 Project: GNU Octave
            Submitted by: yangbaxter
            Submitted on: Sa 23 Jan 2016 11:26:31 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.


$ time octave -V <<EOF
quit
EOF
GNU Octave, version 3.8.1
Copyright (C) 2014 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

executing commands from /usr/share/octave/site/m/startup/octaverc ... done.
executing commands from /usr/share/octave/3.8.1/m/startup/octaverc ... done.



real    0m5.585s
user    0m5.261s
sys     0m0.083s


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


 strace -f octave <<EOF 2>&1 | grep "/usr/share/java/" | wc
quit
EOF

   6151   49102  640816


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


strace -f octave -V <<EOF 2>&1 | grep "futex" | grep "ETIMEDOUT" | wc 
 quit
EOF

    204    2462   16262


typically looking like


[pid  5950] futex(0x7f8304085b28, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  5950] futex(0x7f8304085854, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished
...>
[pid  5939] futex(0x7f8304085854, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8304085850,
{FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1} <unfinished ...>
[pid  5950] <... futex resumed> )       = 0
[pid  5939] <... futex resumed> )       = 1
[pid  5950] futex(0x7f8304085828, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished
...>
[pid  5939] futex(0x7f8304085828, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>


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





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46954>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]