http://bugs.winehq.org/show_bug.cgi?id=33365
Bug #: 33365 Summary: Poor performance of memory allocator Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: alexpigna.dev@gmail.com Classification: Unclassified
If there are many blocks of the same size in one of the free lists and a slightly larger block which falls into the same free list is allocated the list will be linearly scanned for a suitable block, potentially blocking for a very long time. This situation actually happens in the game Deponia, under certain conditions.
A possible solution would be to round up all allocated blocks in a size category to the maximum size of the category. In this way the allocator could always get the first block from a free list. This would waste some bytes, for each allocation, but avoid the linear search. This solution would be similar to how the jemalloc allocator works AFAIK.
http://bugs.winehq.org/show_bug.cgi?id=33365
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com 2013-04-11 10:12:36 CDT --- I'm not sure its related but you could try this patch: http://www.winehq.org/pipermail/wine-patches/2012-November/119620.html
https://bugs.winehq.org/show_bug.cgi?id=33365
--- Comment #2 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.37 or newer) wine? If so, please attach the terminal output in 1.7.37 (see http://wiki.winehq.org/FAQ#get_log).
https://bugs.winehq.org/show_bug.cgi?id=33365
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?, download, | |performance, source Severity|major |minor
https://bugs.winehq.org/show_bug.cgi?id=33365
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #3 from Ken Sharp imwellcushtymelike@gmail.com --- Abandoned.
https://bugs.winehq.org/show_bug.cgi?id=33365
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Austin English austinenglish@gmail.com --- Closing.