http://bugs.winehq.org/show_bug.cgi?id=26658
Mihail Balabin mbalabin@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mbalabin@googlemail.com
--- Comment #7 from Mihail Balabin mbalabin@googlemail.com 2012-12-23 02:20:06 CST --- I have just upgraded from wine 1.5.18 to 1.5.20. It seems that steam startup became much faster. Were any steam-related changes made between those versions?
--- Comment #8 from Javier Kohen jkohen@users.sourceforge.net 2013-01-12 03:29:11 CST --- Created attachment 43156 --> http://bugs.winehq.org/attachment.cgi?id=43156 Instrumentation for FILE_CreateFile
I've used the attached patch to instrument FILE_CreateFile. First, I see no calls with FILE_OPEN_BY_FILE_ID. Second, on my SSD drive the cumulative search time for Steam startup and shutdown adds up to less than a second, and the cumulative time in FILE_CreateFile is less than 1.5 seconds. Yet Steam takes 45 seconds to start (measured with a stop watch).
In any case, a quick grep/sort/uniq on the trace shows that on average Steam makes 3 identical calls to FILE_CreateFile (same handle/name/etc.), and visual inspection indicates that most of the calls are for the same files over and over. Caching might help HDD owners (it'd be nice if somebody ran my test though, because the file system cache should cover that), but it doesn't seem to be the worst contributor to the overall startup.
I'm curious, has anybody compared the start up time to native Linux Steam start up times? It seems a hassle to install it on Debian, so I haven't bothered.
To reproduce: 1. patch in my change (diff against Wine 1.5.21). 2. make LDFLAGS=-lrt 3. env WINEDEBUG=+ntdll wine … &> /tmp/wine-ntdll.log
Search time: $ grep "search took" /tmp/wine-ntdll.log | awk 'BEGIN { total = 0; } { total += $5; } END { print total; } ' 909038970
NtCreateFile time: $ grep "createfile took" /tmp/wine-ntdll.log | awk 'BEGIN { total = 0; } { total += $5; } END { print total; } ' 1346543118