[Bug 39885] New: Cannot allocate more than 32gb of memory
https://bugs.winehq.org/show_bug.cgi?id=39885 Bug ID: 39885 Summary: Cannot allocate more than 32gb of memory Product: Wine Version: 1.9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: rynzar(a)gmail.com Distribution: --- Created attachment 53258 --> https://bugs.winehq.org/attachment.cgi?id=53258 wine debug I am having issues mallocing more than 32GB of memory running RAM intensive Windows applications using Wine on an Ubuntu amazon EC2 cloud with 128 GB of RAM. When I run the c++ code http://stackoverflow.com/questions/34516616/wine-cant-use-more-than-32gb-of-... in linux it works. If I run the .exe that does the same thing I can only allocate up to 32GB. I tried Wine 1.6, 1.7 and 1.9. I am using the 64 bit version as well. I talked in the IRC chat #winehq and they told me to run the code with WINEDEBUG=+heap,+virtual,+tid flags. He pointed out this line might be useful to look at in my logs: 0024:warn:heap:allocate_large_block Could not allocate block for 800000000 bytes and told me to submit a bug report. The log is attached. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #1 from rynzar(a)gmail.com --- The code I used was: #include <stdlib.h> #include <iostream> int main() { size_t gb_in_bytes = size_t(1)<<size_t(30); // 1 GB in bytes (2^30). // try to allocate 1 block of 'i' GB. for (size_t i = 25; i < 35; ++ i) { size_t n = i * gb_in_bytes; void *p = ::malloc(n); std::cout << "allocation of 1 x " << (n/double(gb_in_bytes)) << " GB of data. Ok? " << ((p==0)? "nope" : "yes") << std::endl; ::free(p); } } -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #2 from Alexandre Julliard <julliard(a)winehq.org> --- The virtual heap is running out of space. Storing the page protection flags for 32Gb requires 8Mb, which is the heap limit. You can increase VIRTUAL_HEAP_SIZE in dlls/ntdll/virtual.c to work around it, but we probably want a different mechanism for such cases. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #3 from rynzar(a)gmail.com --- Thanks Alexandre, this solved my issue. I updated Stack Overflow with the solution and credited you for the tip. http://stackoverflow.com/questions/34516616/wine-cant-use-more-than-32gb-of-... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |joseph.kucia(a)gmail.com Status|UNCONFIRMED |NEW Component|-unknown |ntdll --- Comment #4 from Józef Kucia <joseph.kucia(a)gmail.com> --- Witcher 3 is affected by this bug. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Shmerl <shtetldik(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shtetldik(a)gmail.com --- Comment #5 from Shmerl <shtetldik(a)gmail.com> --- Can you please add Witcher 3 to the list of applications affected by this bug? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 fjfrackiewicz(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz(a)gmail.com --- Comment #6 from fjfrackiewicz(a)gmail.com --- (In reply to Shmerl from comment #5)
Can you please add Witcher 3 to the list of applications affected by this bug?
I submitted this bug to this AppDB application: https://appdb.winehq.org/objectManager.php?sClass=application&iId=16884 Keep in mind, anyone can submit bug links and once they get accepted, they will get added as an affected application to this bug. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #7 from Shmerl <shtetldik(a)gmail.com> --- (In reply to Alexandre Julliard from comment #2)
The virtual heap is running out of space. Storing the page protection flags for 32Gb requires 8Mb, which is the heap limit. You can increase VIRTUAL_HEAP_SIZE in dlls/ntdll/virtual.c to work around it, but we probably want a different mechanism for such cases.
Is it possible to include this workaround in Wine staging, until better solution will be found? It will help testing applications which are otherwise failing to launch because of it. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 termac <terror.macbeth.I(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |terror.macbeth.I(a)gmail.com --- Comment #8 from termac <terror.macbeth.I(a)gmail.com> --- *** Bug 40858 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #9 from termac <terror.macbeth.I(a)gmail.com> --- In contrast to the original report I only have 8GB of RAM. Doubling the value of VIRTUAL_HEAP_SIZE allowed me to launch a 64 bit application that would start previously. For logs have a look at https://bugs.winehq.org/show_bug.cgi?id=40858. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |39180 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Adam Bolte <abolte(a)systemsaviour.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte(a)systemsaviour.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/ntdll-Grow_Vir | |tual_Heap Status|NEW |STAGED CC| |dmitry(a)baikal.ru, | |erich.e.hoover(a)wine-staging | |.com, michael(a)fds-team.de, | |sebastian(a)fds-team.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest(a)luukku.com --- Comment #10 from winetest(a)luukku.com --- I just wonder if space engineers game needs this. It has garbage rating all recent efforts with wine and the latest appdb entry had this mentioned preloader: Warning: failed to reserve range 00010000-00110000 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Mathieu Comandon <strider(a)strycore.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |strider(a)strycore.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 tokktokk <fdsfgs(a)krutt.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs(a)krutt.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 --- Comment #11 from Matteo Bruni <matteo.mystral(a)gmail.com> --- I think commit 3ecf069e45c12cf3cd79319a633acecba9a00553 from the latest Wine commit round might be a fix for this bug. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |3ecf069e45c12cf3cd79319a633 | |acecba9a00553 Status|STAGED |RESOLVED Resolution|--- |FIXED --- Comment #12 from Alexandre Julliard <julliard(a)winehq.org> --- Yes, it's fixed now. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39885 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #13 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 2.17. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org