New
#31
Last edited by NTN; 21 Jan 2023 at 06:40.
@Berton, @FreeBooter, @zebal, @OldGuyFromCdn, @Anak
As mentioned above, @NTN has had a problem with thePagefile
parameters being changed possibly due to running the program. As I have only used the following commands to extract thePagefile
data, I wonder if any of you have also noticed this behaviour/change please ?
Code:Get-CimInstance Win32_PageFileUsage Get-CimInstance Win32_PageFileSetting Get-wmiObject Win32_PageFileUsage
I have spent over two hours on this so far and I just canNOT
find an answer for it, hence the request.
Thanks in advance.
@Paul Black
No, I have not noticed any changes, but then the pagefile setting has become a moot point for me, I'll bet I haven't touched that setting for oh, 20years.
This, is just a random thought. . . As your .bat reads the pagefile info then releases the file Windows is interpreting the release as a random addition to the file?
As @cereberus; has stated, that style of memory management has become obsolete. I have experimented with the pagefile settings when machines only had 2 to 4MB of ram but again, that was "back in the day" so, with not noticing any improvement I have left that setting alone.
jfi: I just set up Custom Managed Pagefiles on 5 Drives and their settings haven't changed after running the script.
I'll leave them there for the time being in case further testing is required (although, the codelets used are simply "GETting" the information from the System and echoing the same to console in a simplified format).Code:Name Initial Size Maximum Size ---- ------------ ------------ c:\pagefile.sys 8,192 MB 10,240 MB d:\pagefile.sys 2,048 MB 10,240 MB l:\pagefile.sys 2,048 MB 8,192 MB t:\pagefile.sys 3,072 MB 10,240 MB u:\pagefile.sys 4,096 MB 4,096 MB --- Pagefile(s) - Locations [5] - Sorted by [Name] --- c:\pagefile.sys - Automatic Managed Pagefile: False [Custom Managed] d:\pagefile.sys - Automatic Managed Pagefile: False [Custom Managed] l:\pagefile.sys - Automatic Managed Pagefile: False [Custom Managed] t:\pagefile.sys - Automatic Managed Pagefile: False [Custom Managed] u:\pagefile.sys - Automatic Managed Pagefile: False [Custom Managed]
I haven't seen any change you could also check for pagefile size with following command.
Code:Systeminfo | Find "Total Physical Memory:"
Hello @FreeBooter,
Thanks for the feedback.
It isNOT
the integrity of the output data that is in question. @NTN has stated that the program could have possibly changed thePagefile
parameters, which appears at present to ONLY be affecting him. This is strange as theGet
commands only extract data and doNOT
change / amend data in the format that I have used.
None of those commands will change pagefile settings.
The output of those commands confusing which one of them shows size of the pagefile?
Code:PS C:\Users\FreeBooter> Get-CimInstance Win32_PageFileSetting MaximumSize Name Caption ----------- ---- ------- 0 d:\pagefile.sys d:\ 'pagefile.sys' PS C:\Users\FreeBooter> Get-CimInstance Win32_PageFileUsage Caption Name PeakUsage ------- ---- --------- D:\pagefile.sys D:\pagefile.sys 33 PS C:\Users\FreeBooter> Get-wmiObject Win32_PageFileUsage Caption Name PeakUsage ------- ---- --------- D:\pagefile.sys D:\pagefile.sys 33
Hello @FreeBooter,
Exactly.
The commands that I posted were just to show that I was usingGet
commands [ short version ]. The commands actually used in the program are obviously longer than those in order to get the correct and desired output needed.
Last edited by Paul Black; 21 Jan 2023 at 12:37.
I understand thanks!