Explorer shows empty drive, but 128 GB is used by swap file


  1. Posts : 1,810
    Windows 10 Pro
       #1

    Explorer shows empty drive, but 128 GB is used by swap file


    I'm using an old SSD drive for my Windows swap file. Since I have 64 GB RAM, I figured, what the heck, double that amount and set that as minimum and maximum for the swapfile. Only issue is that a drive window doesn't show any files, even though I have VIEW options set to show HIDDEN OBJECTS. The main window for my system does show part of this drive space used.

    Explorer shows empty drive, but 128 GB is used by swap file-capture1.pngExplorer shows empty drive, but 128 GB is used by swap file-capture2.png

    What configuration option(s) do I need to change?

    Win 10 Pro 2H22

    EDIT: Forgot to mention that CMD window dir command also shows no files in drive Y:
      My Computers


  2. Posts : 43,366
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Where is the Swapfile in Windows 10?
    Also known as the swap file, pagefile, or paging file, the page file is located at C:\pagefile. sys by default, but it's hidden by default. You won't see it unless you tell File Explorer to show protected operating system files
    If you need more, post a screenshot similar to this:
    Explorer shows empty drive, but 128 GB is used by swap file-1.jpg

    And with that much RAM, you may even find it's never actually used...

    If you actually needed a swap file that large, something very unusual would be happening.
      My Computers


  3. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    As dalchina says, it's a system file so you need to set File explorer to display them.
    File, ... options, View - Set Show hidden files & clear Hide protected OS files.

    If you want to use Dir then you need to specify showing them by adding the relevant switches
    Code:
    Dir /AHS


    Denis
      My Computer


  4. Posts : 1,337
    Windows 10
       #4

    128GB for a page file? That is massively overkill did you see the thread just recently about page files? Seems excessive and also rendering the Hard drive pretty redundant.
      My Computer


  5. Posts : 282
    Windows 10 Pro
       #5

    How to extract forensic artifacts from pagefile.sys? | Andrea Fortuna

    https://learn.microsoft.com/en-us/tr...-the-page-file

    The HDD should show a pagefile.sys file when show hidden and protected files is on...

    In my signature below is Everything.exe. Use that and search for pagefile.sys.
      My Computer


  6. Posts : 1,810
    Windows 10 Pro
    Thread Starter
       #6

    Malneb said:
    128GB for a page file? That is massively overkill did you see the thread just recently about page files? Seems excessive and also rendering the Hard drive pretty redundant.
    Maybe. But I use Photoshop with layers, etc, and some of those file sizes grow and grow.

    I should probably cut the swap file down to 64 GB, and use the other 64 GB for something else.

    - - - Updated - - -

    Try3 said:
    As dalchina says, it's a system file so you need to set File explorer to display them.
    File, ... options, View - Set Show hidden files & clear Hide protected OS files.

    If you want to use Dir then you need to specify showing them by adding the relevant switches
    Code:
    Dir /AHS


    Denis
    @denis

    After some experimentation, it turns out that dir /a will work to show the hidden files. just dir /hs actually give an lnvalid Switch error message, at least for me. Of course dir /ahs works.
      My Computers


  7. Posts : 1,337
    Windows 10
       #7

    But can you justify that requirement? You would probably have to open a few hundred layers in the project before Photoshop needs to start paging.

    Ram usage could be high in an application like this but that does not necessarily mean it needs to start paging or the page file needs to even be that big if it does. Further in you would know by way of error if the application crashed with "Out of memory" which is telling you two things one the ram is full and two the page file is non existent or not big enough.

    If this never happens then you would want to justify if 128gb is really necessary. Windows does say its recommended set size of a few GB if you are going to overstate that then you need to know if its required.
      My Computer


  8. Posts : 1,810
    Windows 10 Pro
    Thread Starter
       #8

    Malneb said:
    If this never happens then you would want to justify if 128gb is really necessary. Windows does say its recommended set size of a few GB if you are going to overstate that then you need to know if its required.
    I have already agreed that 128 GB is too much, so I cut that back to 64 GB. I may even try just 32 GB when I'm "caught up" on various systems work.
      My Computers


  9. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #9

    x509 said:
    dir /hs actually give an lnvalid Switch error message
    Of course it does.
    I don't know why you tried it.


    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:49.
Find Us




Windows 10 Forums