Can I stop Windows from over-eagerly reclaiming physical memory? -


i writing server app want efficiently use available physical ram of machine when possible. plan allocate physical pages using awe until detects 99% of physical memory , stop when 1% free, , time physical memory drops below 1% free, free physical pages doesn't need.

however when put plan practice, windows seems think time has 99% of ram in use idea free more physical memory, , starts paging sorts of stuff disk, , system crashes.

how can tell windows ok have 99% of ram in use , doesn't need try page stuff disk until reaches whatever default perceived ideal level of usage (i guess 90%...)

note: raymond says 'unless designing system program running on computer, bad idea.'

in server scenario is intended app running on computer. unfortunately there os/background tasks need run...

but don't expect there other process on computer indulging in 'use 1% of ram' behavior...?

update: i've done more experimentation , started wonder if i'm asking wrong question. assumption windows being overeager may wrong. perhaps question should instead have been 'how can determine how physical ram process can safely use without compromising overall responsiveness on machine'?

you can't. windows memory manager runs @ lower level program , knows nothing program (and if did, has no reason assume program citizen claim be. if program crashes, or has off-by-one error in loop mallocs? other programs need memory while yours running? thousand other scenarios guys wrote windows mm encountered when writing it?)

don't try cleverer windows. more productive use of time consider if application really needs allocate 99% physical memory front.


Popular posts from this blog