Re: [go-nuts] ultra slow os.Exec

2023-01-13 Thread Damir Ivankovic
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

Re: [go-nuts] ultra slow os.Exec

2019-11-20 Thread Ian Lance Taylor
On Wed, Nov 20, 2019 at 5:09 AM Robert Engels 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

Re: [go-nuts] ultra slow os.Exec

2019-11-20 Thread Robert Engels
You should include -r to show the relative time stamps. This would be helpful. > On Nov 20, 2019, at 1:58 AM, miha.vrhov...@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) =

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread miha . vrhovnik
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 CHL

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread Ian Lance Taylor
On Tue, Nov 19, 2019 at 11:45 AM 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 shel

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread miha . vrhovnik
at 6:13:23 PM UTC+1, Robert Engels wrote: > > > > > > > > -Original Message- > >From: Robert Engels > > >Sent: Nov 19, 2019 10:54 AM > >To: Ian Lance Taylor >, > miha.v...@gmail.com > >Cc: golang-nuts > > >Subject:

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread Robert Engels
-Original Message- >From: Robert Engels >Sent: Nov 19, 2019 10:54 AM >To: Ian Lance Taylor , miha.vrhov...@gmail.com >Cc: golang-nuts >Subject: Re: [go-nuts] ultra slow os.Exec > > >I am guessing - because it is close to 30 secs (which sounds a lot like a

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread Robert Engels
d it before. It should be trivial to write a test. I'll be back... -Original Message- >From: Ian Lance Taylor >Sent: Nov 19, 2019 10:28 AM >To: miha.vrhov...@gmail.com >Cc: golang-nuts >Subject: Re: [go-nuts] ultra slow os.Exec > >On Tue, Nov 19, 2019 at 7:2

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread Ian Lance Taylor
n he runs the command from the >> Linux command line it completes in 2 sec - so the Wine startup time should >> not be the issue. >> >> >> -Original Message- >> >From: Ian Lance Taylor >> >Sent: Nov 19, 2019 9:15 AM >> >To: miha.

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread miha . vrhovnik
Nov 19, 2019 9:15 AM > >To: miha.v...@gmail.com > >Cc: golang-nuts > > >Subject: Re: [go-nuts] ultra slow os.Exec > > > >On Tue, Nov 19, 2019 at 6:52 AM > > wrote: > >> > >> I'm running windows cli exe on linux via wine usin

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread Robert Engels
t;Cc: golang-nuts >Subject: Re: [go-nuts] ultra slow os.Exec > >On Tue, Nov 19, 2019 at 6:52 AM wrote: >> >> I'm running windows cli exe on linux via wine using os.Exec command.. this >> takes 28s to complete. >> If I run the same command via linux cli it takes

Re: [go-nuts] ultra slow os.Exec

2019-11-19 Thread Ian Lance Taylor
On Tue, Nov 19, 2019 at 6:52 AM wrote: > > I'm running windows cli exe on linux via wine using os.Exec command.. this > takes 28s to complete. > If I run the same command via linux cli it takes 2s to complete, if I run the > same command via php's exec it also takes about 2 seconds to complete.

[go-nuts] ultra slow os.Exec

2019-11-19 Thread miha . vrhovnik
Hey, I'm running windows cli exe on linux via wine using os.Exec command.. this takes 28s to complete. If I run the same command via linux cli it takes 2s to complete, if I run the same command via php's exec it also takes about 2 seconds to complete. == linux cli == time WINEDEBUG=err-all,fi