Hi, I'm having same or similar issue here. Did anyone get to the root cause ot the problem here?
I'm using exec.Command to start external process. On Windows 10 and 11 it runs quickly (under 1 second), but on Windows 7 (without SP1) it takes about 9 seconds to start external exe or script. It is not issue with external process since I tried it with different executables and bat scripts and problem is always the same on the same machine, and there is not problem on others. BR Damir On Wednesday, November 20, 2019 at 4:07:43 PM UTC+1 Ian Lance Taylor wrote: > On Wed, Nov 20, 2019 at 5:09 AM Robert Engels <ren...@ix.netcom.com> > wrote: > > > > You should include -r to show the relative time stamps. This would be > helpful. > > Also tell us what the different processes are. I'm guessing that in > the fragment above 20441 is wine itself? What is file descriptor 7? > > Perhaps you could put the whole trace online somewhere so that we can see > it. > > Ian > > > > On Nov 20, 2019, at 1:58 AM, miha.v...@gmail.com wrote: > > > > > > The first wait is on read, the 2nd on futex > > [pid 20441] read(5, > "\0\0\0@\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) > = 64 > > [pid 20441] rt_sigprocmask(SIG_SETMASK, [HUP INT USR1 USR2 ALRM CHLD > IO], NULL, 8) = 0 > > [pid 20441] rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], > [HUP INT USR1 USR2 ALRM CHLD IO], 8) = 0 > > [pid 20441] rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], > [HUP INT USR1 USR2 ALRM CHLD IO], 8) = 0 > > [pid 20441] writev(3, > [{iov_base="\34\0\0\0000\0\0\0\0\0\0\0\2\0\0\0\250r\204\377\0\0\0\0\0ty\270\377\377\377\377"..., > > iov_len=64}, > {iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., > > iov_len=40}, {iov_base="\1\0\0\0\20\0\0\0", iov_len=8}], 3) = 112 > > [pid 20441] read(5, > "\3\1\0\0\0\0\0\0\330\2656\374w\237\325\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., > > 64) = 64 > > [pid 20441] rt_sigprocmask(SIG_SETMASK, [HUP INT USR1 USR2 ALRM CHLD > IO], NULL, 8) = 0 > > [pid 20441] rt_sigprocmask(SIG_SETMASK, [HUP INT USR1 USR2 ALRM CHLD > IO], NULL, 8) = 0 > > [pid 20441] read(7, > > > > > > <unfinished ...> > > [pid 20437] <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out) > > [pid 20437] nanosleep({tv_sec=0, tv_nsec=20000}, NULL) = 0 > > [pid 20437] futex(0x59fb70, FUTEX_WAIT_PRIVATE, 0, {tv_sec=60, tv_nsec=0} > > > > > > BR, > > Miha > > > > On Tuesday, November 19, 2019 at 10:09:12 PM UTC+1, Ian Lance Taylor > wrote: > >> > >> On Tue, Nov 19, 2019 at 11:45 AM <miha.v...@gmail.com> wrote: > >> > > >> > > Doesn't seem to happen with a exec of "/usr/bin/date" so it is most > likely something wine+Go specific. > >> > Yeah, I did try catting the file and it was fast enough. So you are > probably right. > >> > > >> > Whats interesting is if I do it indirectly via shell script (then > this is only 5 times slower not 28): But still too slow. Hell PHP can't be > faster at this than Go. > >> > >> Use strace -f to see what the Go program is doing. > >> > >> Ian > > > > -- > > You received this message because you are subscribed to the Google > Groups "golang-nuts" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to golang-nuts...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/c12d38c3-618f-499a-bcaf-d2862272cfed%40googlegroups.com > . > > > > -- > > You received this message because you are subscribed to the Google > Groups "golang-nuts" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to golang-nuts...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/9553B4A3-0589-4D3B-A330-7AE867E2A3C5%40ix.netcom.com > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9a0e5e66-a02d-42b7-afae-ff8f6cf1eacen%40googlegroups.com.