Jump to content
Sign in to follow this  
RTK1972

VAS 450MByte left but OOM

Recommended Posts

Good evening,

 

Maybe someone of you can help me with an idea what to do.

 

Thing ist that while on approach into Aerosoft EGFF i have appx 450 megs of VAS left. But then i get a OOM crash.

I have no idea why this happens. With my old machine i could land even with 100 left and everything was fine.

I have out of the stock p3d.cfg with latest 3.4 version. Sometimes when i repeat this flight it is possible to land but then not all textures from the airport are loaded and they stay black.

 

No idea on this :-(

 

Thanks for your ideas !

 

Carsten


Carsten U

Share this post


Link to post

As you continue a flight, VAS not only gets used up, but it also gets fragmented. If a request for memory exceeds the size of the largest open contiguous block of VAS, the sim with either OOM or worse, crash, usually with an NTDLL.DLL error. P3d 3.4 HF2 does its best to free up VAS that is no longer needed, but it is a game that a 32 bit sim will eventually lose.

 

The only solutions are to turn down such settings as scenery LOD, AI traffic and building autogen.

  • Upvote 1

Share this post


Link to post

As you continue a flight, VAS not only gets used up, but it also gets fragmented. If a request for memory exceeds the size of the largest open contiguous block of VAS, the sim with either OOM or worse, crash, usually with an NTDLL.DLL error. P3d 3.4 HF2 does its best to free up VAS that is no longer needed, but it is a game that a 32 bit sim will eventually lose.

 

The only solutions are to turn down such settings as scenery LOD, AI traffic and building autogen.

Thanks a lot Jay for you fast answer. Will try some more scenarios....


Carsten U

Share this post


Link to post

If you own the payware version of FSUIPC, see this thread for a way to limited the number of AI aircraft without losing too much realism as a consequence:

 

http://www.avsim.com/topic/500104-fsuipc-4959-now-has-an-ai-traffic-limiter-somewhat-like-the-traffic-optimizer-addon/

Inown it and i use the values 100, 70, 20, 70 value.

 

What ai density did you choose in p3d settings ? I have mine at 50%


Carsten U

Share this post


Link to post

The only value that could substantially impact VAS usage is the number of aircraft which you list as 100. The other three values just cause shifts in the spatial distribution of the 100 aircraft within the user's reality bubble. For example, if one is on the ground at an airport and you want to see all the traffic you would set the GroundPreference setting to 0. Setting this value to 50 gives you an equal probability that an aircraft on the ground but without clearance will either be deleted or not. 

 

If one likes to see aircraft in the air and landing around nearby airports, then the AirportPrefrence setting does this. At 0 all airborne planes will stay untouched. At a value of 50, there is an equal probability that airborne planes will either be deleted or not. The NearerPreference setting prevents newly spawned aircraft at the edges of URB from being instantly deleted. Without this setting,  the furthest away flights are always the ones being deleted.

 

Keep in mind that FSUIPC will still maintain a maximum of 100 (or whatever one chooses as a limit) within the URB. The other three preference settings just vary the deletions spatially. By using the Traffic Toolbox to monitor where aircraft are in the URB, one can fine tune the settings to match personal preferences.

Share this post


Link to post

Jay,

 

What would you say to the following:

 

The above happened with nvidia drivers 37x.x series

 

I just installed 368.69 driver and in the same scenario with the same settings i get no oom and no black textures. Nearly 450 mbyte left.

 

I really don't get it.......


Carsten U

Share this post


Link to post

Carsten - Windows or the applications manage the memory allocation. As Jay said - the OOM occurs because the application has requested an allocation of memory that is larger than any CONTIGUOUS block. You could have 2G of free memory but if the largest contiguous block is only 250MB and the application requested 260MB - you'd get an OOM with 2G of VAS free.

 

You could do the same steps 10 times in a row and get different results each time - just a question of timing and as long as we're 32bit, this will be a way of life.

 

 

Vic


 

RIG#1 - 7700K 5.0g ROG X270F 3600 15-15-15 - EVGA RTX 3090 1000W PSU 1- 850G EVO SSD, 2-256G OCZ SSD, 1TB,HAF942-H100 Water W1064Pro
40" 4K Monitor 3840x2160 - AS16, ASCA, GEP3D, UTX, Toposim, ORBX Regions, TrackIR
RIG#2 - 3770K 4.7g Asus Z77 1600 7-8-7 GTX1080ti DH14 850W 2-1TB WD HDD,1tb VRap, Armor+ W10 Pro 2 - HannsG 28" Monitors
 

Share this post


Link to post

Carsten - Windows or the applications manage the memory allocation. As Jay said - the OOM occurs because the application has requested an allocation of memory that is larger than any CONTIGUOUS block. You could have 2G of free memory but if the largest contiguous block is only 250MB and the application requested 260MB - you'd get an OOM with 2G of VAS free.

 

You could do the same steps 10 times in a row and get different results each time - just a question of timing and as long as we're 32bit, this will be a way of life.

 

 

Vic

yeah i know Vic, at least i thought that i know it.

I really wondered actually that there is a different behaaviour with thos two versions of display drivers...

 

I will test for myself and will see what happens and then come back.

No intention to spam the forum.

 

Thanks a lot, carsten


Carsten U

Share this post


Link to post

Carsten,

 

Remember when everybody had mechanical hard drives and after months of writing and deleting, the drive would get fragmented? That situation is analogous to VAS fragmentation.The difference is that even though a disk was fragmented, all that happened was that disk performance got degraded, as the OS thrashed about trying to squeeze ten pounds of poop into a 5 lb bag ( or more correctly 160 one ounce bags). With VAS, an app just hasn't a big enough block to work with and the app fails. And since the circumstances change from run to run, the results look random in nature.

 

Jay

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...