cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
10,530 Views
Registered: ‎05-28-2009

Slow startup in Linux

Jump to solution

 

I''m running vivado_hls -i to start interactive mode in Ubuntu 14.04 ( I know it's not supported ) and it seems to take about 20 seconds to print the first line of output on the screen. Any idea why it would take so long?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
17,997 Views
Registered: ‎05-28-2009

Ah, indeed, it's going to an IP address. I had to unnset my LM_LICENSE_FILE variable to avoid it, now it's snappy.


Thanks!

View solution in original post

0 Kudos
7 Replies
Highlighted
Observer
Observer
10,517 Views
Registered: ‎05-28-2009

It seems to be perfectly quick if I run it as sudo, less than a second to start up.

0 Kudos
Highlighted
Scholar
Scholar
10,512 Views
Registered: ‎06-23-2013
Try strace -tt -T vivado_hls -i 2>/tmp/strace.txt and then do it with sudo.

I am guessing that you are waiting for a network permissions server to respond as a non-root user.
0 Kudos
Highlighted
Observer
Observer
10,510 Views
Registered: ‎05-28-2009

OK, as my own user, the trace has this 40 second gap after calling a wait4(-1

 

 

4:19:48.820439 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f54d5e61a10) = 3821 <0.000085>
14:19:48.820593 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000016>
14:19:48.820648 close(3) = 0 <0.000016>
14:19:48.820711 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0 <0.000015>
14:19:48.820780 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000015>
14:19:48.820831 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0 <0.000014>
14:19:48.820883 rt_sigaction(SIGINT, {0x443760, [], SA_RESTORER, 0x3be3436c30}, {SIG_DFL, [], SA_RESTORER, 0x3be3436c30}, 8) = 0 <0.000016>
14:19:48.820942 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3820 <42.533905>
14:20:31.354895 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3821 <0.000018>
14:20:31.354936 rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3be3436c30}, {0x443760, [], SA_RESTORER, 0x3be3436c30}, 8) = 0 <0.000006>
14:20:31.354966 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000006>
14:20:31.354986 close(3) = -1 EBADF (Bad file descriptor) <0.000005>
14:20:31.355005 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000005>

0 Kudos
Highlighted
Observer
Observer
10,509 Views
Registered: ‎05-28-2009

Here's a larger past back to the clone of process 3820.

 

14:19:48.818474 rt_sigreturn() = 0 <0.000015>
14:19:48.818520 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000016>
14:19:48.818574 rt_sigaction(SIGINT, {0x443760, [], SA_RESTORER, 0x3be3436c30}, {SIG_DFL, [], SA_RESTORER, 0x3be3436c30}, 8) = 0 <0.000015>
14:19:48.818629 rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3be3436c30}, {0x443760, [], SA_RESTORER, 0x3be3436c30}, 8) = 0 <0.000016>
14:19:48.818684 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000014>
14:19:48.818767 read(255, "VIVADO_HLS_LOG=${RDI_PROG}.log\nR"..., 1630) = 409 <0.000017>
14:19:48.818930 open("/opt/Xilinx/Vivado_HLS/2014.2/bin/vivadohlsArgs.sh", O_RDONLY) = 3 <0.000027>
14:19:48.818999 fstat(3, {st_mode=S_IFREG|0755, st_size=429, ...}) = 0 <0.000016>
14:19:48.819057 read(3, "#!/bin/bash\n\nexport VIVADO_HLS_A"..., 429) = 429 <0.000017>
14:19:48.819110 close(3) = 0 <0.000017>
14:19:48.819170 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 <0.000014>
14:19:48.819636 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000020>
14:19:48.819714 pipe([3, 4]) = 0 <0.000021>
14:19:48.819835 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0 <0.000016>
14:19:48.819894 rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0 <0.000015>
14:19:48.819947 rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0 <0.000014>
14:19:48.819998 lseek(255, -22, SEEK_CUR) = 1608 <0.000016>
14:19:48.820046 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f54d5e61a10) = 3820 <0.000083>
14:19:48.820200 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000015>
14:19:48.820256 close(4) = 0 <0.000016>
14:19:48.820316 close(4) = -1 EBADF (Bad file descriptor) <0.000016>
14:19:48.820381 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0 <0.000016>
14:19:48.820439 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f54d5e61a10) = 3821 <0.000085>
14:19:48.820593 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000016>
14:19:48.820648 close(3) = 0 <0.000016>
14:19:48.820711 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0 <0.000015>
14:19:48.820780 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 <0.000015>
14:19:48.820831 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0 <0.000014>
14:19:48.820883 rt_sigaction(SIGINT, {0x443760, [], SA_RESTORER, 0x3be3436c30}, {SIG_DFL, [], SA_RESTORER, 0x3be3436c30}, 8) = 0 <0.000016>
14:19:48.820942 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3820 <42.533905>

0 Kudos
Highlighted
Scholar
Scholar
10,504 Views
Registered: ‎06-23-2013
So it is forking. Add -f to the strace options to follow the forked process.
0 Kudos
Highlighted
Observer
Observer
17,998 Views
Registered: ‎05-28-2009

Ah, indeed, it's going to an IP address. I had to unnset my LM_LICENSE_FILE variable to avoid it, now it's snappy.


Thanks!

View solution in original post

0 Kudos
Highlighted
Scholar
Scholar
10,499 Views
Registered: ‎06-23-2013
Very cool. Mark your last message as "solution accepted" so others can search for it.

Daniel
0 Kudos