Ask Your Question
0

Execution time of trivial program appears excessive

asked 2017-05-20 07:29:35 -0600

BerndP gravatar image

This question concerns running binary code in line mode of fedora 24. The software is called praat, a speech analysis program.

I have tried the praat-users forum, they apparently don't know. So, I try this forum although it really may be a praat issue.

My question concerns the running time of a trivial execution of praat. I test this in line mode via

time /usr/bin/praat --version (or similar trivial usage of the program)

and I get the following times:

real   0m24.033s
user   0m 0.008s
sys    0m 0.018s

The real time can vary between 21 and 28 seconds, totally unacceptable. If I do the same thing on my (less powerful) laptop running Windows 7, the execution is instant.

The size of this binary code is about 31.6 MB, my processor is

Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz (2 cores), 64-bit

  Info in /proc/meminfo tells me 
       MemTotal:       4.0 GB
       MemFree:         0.1 GB
       MemAvailable:  0.2 GB

So the real question is: Is there anything I could do to speed up the execution, or is this really a pure praat issue?

Thanks in advance for any hints (usage of memory?), and or for telling me which other info I have to provide.

edit retag flag offensive close merge delete

Comments

time ./praat --version

Praat 6.0.28 (March 23 2017)

real 0m0.025s user 0m0.019s sys 0m0.006s

Try playing with kernel real time capabilities

fcomida gravatar imagefcomida ( 2017-05-21 09:47:31 -0600 )edit
1

Thank you very much, this gives me something to look into. Looks fairly complicated (and dangerous) but in the fedora doc, chapter 3 they talk about "unfair scheduling", and this is what it looks like.

The System Monitor shows that this computer is basically doing nothing (apart from very low activity of some gnome apps). However, when I then run my trivial praat script, it again takes this endless time ...

May I ask you on which type of machine, operation system you achieved your times? BTW, I also ran the trivial praat script on ten-year old laptop-MAC. It was as instant as on Windows

BerndP gravatar imageBerndP ( 2017-05-21 12:24:38 -0600 )edit

f24, Intel(R) Core(TM) i3-4030U CPU @ 1.90GHz, 8GB RAM, kernel 4.10.15-100.fc24.x86_64, ulimit unlimited

fcomida gravatar imagefcomida ( 2017-05-21 13:06:27 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-05-21 08:35:45 -0600

There is no real way to really know what is going on. I don't know or ever used praat. You will have to look at the code or go back on the praat forum.

edit flag offensive delete link more

Comments

Thank you, but the answer of fcomida reinforces my suspicion that it has to do with my fedora installation (which may have something against the praat software, for some yet unknown reason).

BerndP gravatar imageBerndP ( 2017-05-21 12:28:49 -0600 )edit
0

answered 2017-06-07 04:58:33 -0600

BerndP gravatar image

The author of praat finally found a kind of bug, which for a strange reason manifested itself only in fedora.

As we found out, this "almost" bug, did not do any harm when running praat in other linux distributions, but consistenly gave trouble in other fedora installations as well (=not just on my machine).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-05-20 07:29:35 -0600

Seen: 146 times

Last updated: Jun 07 '17