Prevent CTDs from heavily modded games
http://www.gamesas.com/bgsforums/index.php?showtopic=1076274&st=0&start=0
UPDATES: An important discovery for those who still experience a 1.8gb memory ceiling after applying the 4gb LAA patch...
It's highly suggested for all who are interested in using the 4gb LAA patch to read http://www.anandtech.com/printarticle.aspx?i=3034(Thanks to tajikhan for digging this 3 year old article from the grave. Also, thanks to gothemasticator for suggesting it's addition to the OP.)
=============================================================================
Past Updates:
So, it's confirmed that the 4gb LAA patch does not allow Oblivion.exe to use more than it's 2gb limit of physical memory on any 32-bit OS. The 2gb limit is actually closer to 1.8gb on most machines. With the exception of a 32-bit OS with 4gb of ram installed, 1.8gb would be the highest amount of memory a player can expect there Oblivion.exe process to reach before it experiences a CTD. (This was tested on fresh installs WinXp/Vista/7 32-bit in 2gb and 4gb amounts. Memory Ceiling CTDs can vary depending on the amount of RAM the OS and other programs are using during the time Oblivion.exe is running. Some 32-bit OSs with 4gb of ram installed may reach up to 1.95gb on a higly efficient Windows 32-bit memory cleanup.)
* Here is a video of http://www.youtube.com/watch?v=jq5uJQKMV6s. This is an example of a CTD that will consistently occur (without LAA enabled) regardless if you have a ton of ram. This test was created with a 100% vanilla game (patched to 1.2.0416) with shivering isles and KoTN. - (credit to http://www.gamesas.com/bgsforums/index.php?showuser=572837 for this sweet HD vid!)
* Here is a video of http://www.youtube.com/watch?v=dgPsdraKyBQ (Although this test proved that system memory can be used for VRAM when the dedicated VRAM on a graphics card runs out, exceeding your dedicated graphics VRAM isn't recommended and can cause additional stutter and lag.)
=============================================================================
Important Reminders
* Please be aware that the patch listed on this page may produce undesirable results if used on an altered or modified Oblivion.exe file. This may include loading the game from a virtual drive.
* An important reminder to 64bit XP players using, or thinking of using the 4gb LAA patch within this page.
=============================================================================
How to determine if your physical memory usage is the cause of your CTD issues.
* The type of CTD that this topic will identify a fix for is the type associated with players that have a large amount of resource intensive mods loaded at the same time. These types of mods include... High resolution texture replacements (QTP3, Bomret Normal Textures), Any mod that adds a multitude of new NPCs, (Modems City Life etc...) Large overhaul mods (FCOM, OOO, MMM etc...) Large landscape mods (Unique Landscapes, RAEVWD, Better Cities, Open Cities etc...) If you don't run these types of mods, your CTD issues are more than likely not going to be related to this topic. (note that I am in no way stating that the above mods contain issues. Only that they use large amounts of memory that Oblivion was not initially intended to run.)
I've noticed many topics are created with titles like "Oblivion Crashes After 20-30 Minutes" A crash that seems to happen as if it has a timer is almost certainly going to be from the Oblivion.exe process reaching it's allocated memory peak. Especially when Oblivion may be loaded with a ton of mods that are filling up available memory very quickly. If you run a modded Oblivion, and have a moderate to heavy mod load you will eventually hit a memory ceiling resulting in a CTD. Even if you have 4gb, 8gb or even 16gb of ram, a memory ceiling crash is imminent. The best that can be done is to prolong it using the patch below...
=============================================================================
How to monitor your memory usage while playing the game
If you're experiencing consistent CTD episodes such as the infamous "20-30 minute CTD" Please follow these steps in order to monitor your games memory usage. You will know if you have hit a ceiling once you notice your crashes happening around the same amount of memory usage on the Oblivion.exe process. (it's best to test within the same area your last crash was experienced. Or in a largely NPC populated city, i.e. Anvil docks is a good place to test.)
The Fix
Oblivion was only meant to allocate up to 2gb of ram. This actually turns out to be around 1.6 - 1.75gb of ram on most systems. Once your Oblivion.exe process reaches around 1.6 - 1.8gb of memory, you will experience a CTD. However, with this http://www.ntcore.com/4gb_patch.php you will be able to raise the ceiling up to 3.8gb (these numbers vary depending on XP or Vista/7 32bit or 64bit)
* Please be aware that the patch listed on this page may produce undesirable results if used on an altered or modified Oblivion.exe file. This may include loading the game from a virtual drive.
=================================================================================
Helpful notes
1. Add the LAA http://www.ntcore.com/4gb_patch.php to your Oblivion.exe and not obseloader.exe (I made this mistake at first) Also, be sure to make a backup of your original Oblivion.exe file.
*Please be aware that the patch may produce undesirable results if used on an altered or modified Oblivion.exe file.
* A important reminder to 64bit XP players using, or thinking of using the 4gb LAA patch within this page
2. Adding http://www.tesnexus.com/downloads/file.php?id=23208will provide system stability improvements as well as decrease CPU load and memory fill rate."Saw my CPU usage drop from 50% to 25% and the amount of time which my memory increased or filled up was cut by half. This is because of the 30fps cap set by the OSR default .ini file"
3. Adding a PCB mod will help increase system stability by purging cached memory. This includes both physical system memory and your graphics card video ram (vram) This basically frees up the cached memory that no longer needs to be stored. That is to say it will prolong the amount of time before your memory fills up to it's ceiling point. Search on http://www.tesnexus.com/ for a good purge cell buffer mod. Or just search the topics here.
=============================================================================
How I figured this out
I stumbled across a mod that I determined had a memory leak after noticing my Oblivion.exe process memory size would continuously increase to a consistent size limit before crashing. From this, I decided to create a test which would prove Oblivion had a memory ceiling that causes a consistent CTD when reached. After installing Vanilla Oblivion with SI and all the DLC packages, I loaded the mod with the memory leak and ran Oblivion in windowed mode so that I could monitor the Oblivion.exe process with task manager.
In a nutshell, I purposely overloaded Oblivion's physical memory process in order to see where it's breaking point was. This helped me simulate the type of CTD that most of us experience from a heavily modded game. Just like we know what our video ram limit is for texture mods, wouldn't we want to know our physical ram limit for game stability?
=============================================================================