Re: [wine-devel] Re: Severe startup latencies for Windows applications run under wine

2011-09-17 Thread Alan W. Irwin
On 2011-09-01 01:25+1000 Ben Peddell wrote: On 31/08/2011 3:12 AM, Dan Kegel wrote: Try oprofile instead. ( A really old intro is at http://www.winehq.org/wwn/249#oprofile%20%20Wine ) Using oprofile, testing 500 iterations of ExitProcess.exe with msys-bash under wine: About 2/3 of the

Re: [wine-devel] Re: Severe startup latencies for Windows applications run under wine

2011-09-17 Thread Henri Verbeet
On 17 September 2011 20:34, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: In sum, from my perspective it is important for the Wine developers to figure out exactly what the issue is and deal with it.  0.5-second Did anyone look into writing to /proc/pid/mem like I mentioned? Aside from perhaps

Severe startup latencies for Windows applications run under wine

2011-09-01 Thread Alan W. Irwin
Hi Ben: Thanks for your further tests. On 2011-08-30 08:20+1000 Ben Peddell wrote (but then later forwarded to list so I am repeating my off-list reply to the list as well): Some things I have seen while investigating: I created a program which had a startup that immediately called

Re: Severe startup latencies for Windows applications run under wine

2011-08-31 Thread Ben Peddell
On 31/08/2011 3:12 AM, Dan Kegel wrote: Try oprofile instead. ( A really old intro is at http://www.winehq.org/wwn/249#oprofile%20%20Wine ) Using oprofile, testing 500 iterations of ExitProcess.exe with msys-bash under wine: About 2/3 of the active processor time was in wineserver. About

Re: Severe startup latencies for Windows applications run under wine

2011-08-31 Thread Henri Verbeet
On 31 August 2011 17:25, Ben Peddell klightsp...@netspace.net.au wrote: msys-bash uses WriteProcessMemory() to copy 500kB during an emulated fork.  This equates to about 125000 ptrace(PTRACE_POKEDATA,...) syscalls, each of which takes about 0.8us on linux 2.6.38. I wonder if writing to

Re: Severe startup latencies for Windows applications run under wine

2011-08-30 Thread Ben Peddell
On 08/30/11 10:33, Alan W. Irwin wrote: On 2011-08-30 08:20+1000 Ben Peddell wrote: Some things I have seen while investigating: I created a program which had a startup that immediately called ExitProcess to attempt to eliminate most of the initialization of the process being forked. On

Re: Severe startup latencies for Windows applications run under wine

2011-08-30 Thread Octavian Voicu
On Tue, Aug 30, 2011 at 6:56 PM, Ben Peddell klightsp...@netspace.net.auwrote: A modification of the timestamp patch from Bernhard Loos should help us find what calls are taking the longest. Speaking of that, I've been trying to compile cmd tests with profiling (-pg, for use with gprof), but

re: Severe startup latencies for Windows applications run under wine

2011-08-30 Thread Dan Kegel
Try oprofile instead. ( A really old intro is at http://www.winehq.org/wwn/249#oprofile%20%20Wine )