1
Suggestions & Requests / Fix for memory limits and memory access violations
« on: November 20, 2011, 12:39:08 PM »
Hello everybody,
I want to introduce you a memory fix I have found when we had stability issues on our ATF-Blockland servers. (Involving random Runtime-Errors and Memory access violations)
You may know that blocklands memory limit is around 1.67GB
here a topic about the limit: http://forum.blockland.us/index.php?topic=156702.msg3757166
And now i have managed to exceed this limit by far and reach 3.8GB!! of memory usage until the server finally crashed!
Proof: http://oi41.tinypic.com/2v2bg60.jpg
You may now ask HOW i did it.
I have used a HEX editor to manually set the LAA flag (Large Address Aware Flag) of the blockland exe.
With this flag activated windows is going to provide the program a greater userspace thenthe default 2GB. In this 32bit case 4GB (64bit programs will get a userspace up to 8TB!!)
And a nice side effect is that blockland isn't causing random Runtime-Errors anymore.
Our servers are running perfectly fine again.
Now to the actual suggestion:
I would love it if Badspot (Or Kompressor) would set the LAA flag by default because this may fix a lot of crash problems of others too.
It just a small change of the compiler settings.
If you have further questions, just ask.
I want to introduce you a memory fix I have found when we had stability issues on our ATF-Blockland servers. (Involving random Runtime-Errors and Memory access violations)
You may know that blocklands memory limit is around 1.67GB
here a topic about the limit: http://forum.blockland.us/index.php?topic=156702.msg3757166
And now i have managed to exceed this limit by far and reach 3.8GB!! of memory usage until the server finally crashed!
Proof: http://oi41.tinypic.com/2v2bg60.jpg
You may now ask HOW i did it.
I have used a HEX editor to manually set the LAA flag (Large Address Aware Flag) of the blockland exe.
With this flag activated windows is going to provide the program a greater userspace thenthe default 2GB. In this 32bit case 4GB (64bit programs will get a userspace up to 8TB!!)
And a nice side effect is that blockland isn't causing random Runtime-Errors anymore.
Our servers are running perfectly fine again.
Now to the actual suggestion:
I would love it if Badspot (Or Kompressor) would set the LAA flag by default because this may fix a lot of crash problems of others too.
It just a small change of the compiler settings.
If you have further questions, just ask.