(imported topic written by thesurg3on91)
Hello,
Is there a task in BF to change the windows virtual memory to 1.5 times the installed ram? Can i do this progmatically?
(imported topic written by thesurg3on91)
Hello,
Is there a task in BF to change the windows virtual memory to 1.5 times the installed ram? Can i do this progmatically?
(imported comment written by thesurg3on91)
I found the registry key that needs to be changed:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
The reg_multi_sz value for PagingFiles says:
C:\pagefile.sys 2046 4092
what i would like to program in BigFix is, have the value rewritten to (c:\pagefile.sys (memory multiplied by 1.5) 4092)
Surely this is possible no? I think the latter value is the max size for the paging file.
(imported comment written by BenKus)
So you a couple questions/challenges here:
http://technet.microsoft.com/en-us/library/bb490962.aspx
and here is a relevance expression to get the ram size * 1.5 (with some work to make sure it is a reasonable looking memory size):
( ( ((it / 32) * 32) + (if (it mod 32 > 16) then 32 else 0)) of (size of ram / (1024*1024) * 3/2))
So your command would be something like:
waithidden cmd.exe /C pagefileconfig.vbs /change /m {( ( ((it / 32) * 32) + (if (it mod 32 > 16) then 32 else 0)) of (size of ram / (1024*1024) * 3/2))} /vo {name of drive of system folder}
I didn’t test this (or even run it at all) so you will need to play with it to make sure it works… I recommend lots of tests…
Ben