Memory usage - 'mapped file'??

Page 1 of 2 12 LastLast

  1. Posts : 260
    Windows 10 (Home Ed.)
       #1

    Memory usage - 'mapped file'??


    I have 16GB of physical RAM, about 2.5GBs of which is used up after Windows 10 (20H2) loads.

    I just moved a few files from one of the SSDs to an external drive and did one or two other 'management' tasks. Now, with all applications closed again, my used RAM registers as around 7GBs and I have been browsing forums trying to understand where the extra 4.5GBs is being 'held'. But I am not really getting that far. Can anyone help please?

    In essence, is it possible to ascertain which processes I ran are responsible for the RAM usage? (Also read articles about Windows' 'Standby Memory' but not sure if that is relevant to what I am seeing or not).

    I got as far as installing RamMap, but I am not sure how to proceed now in identifying which processes are involved. And if I do identify them, what do I do to regain the RAM without rebooting? Kill them (not usually the best option!)? Or will the RAM be released as needed, so I shouldn't even worry about this? (Even so, be good to know what's going on).

    I attach a couple of screenshots. How do I investigate this further? The PC is mostly used for X-Plane 11, so I tend to reboot before running it (as it can use up up to 90% of my RAM - though usually a lot less than that).

    Thanks
    Attached Thumbnails Attached Thumbnails Memory usage - 'mapped file'??-grab_007.jpg   Memory usage - 'mapped file'??-grab_008.jpg  
      My Computers


  2. Posts : 6,851
    22H2 64 Bit Pro
       #2

    Use the "file summary" tab. Standby list.

    https://techcommunity.microsoft.com/...ap/ba-p/374717

    Use Empty>Empty Standby List and see what gives.
      My Computer


  3. Posts : 6,851
    22H2 64 Bit Pro
       #3

    Might be of interest:

    Memory issue. Browser crashing, laptop apps not loading.

    Install and test. If no improvment just uninstall.
      My Computer


  4. Posts : 42,994
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    It's a complex question: see
    debugging - What is private bytes, virtual bytes, working set? - Stack Overflow

    and then perhaps Process Explorer:
    Memory usage - 'mapped file'??-1.jpg
      My Computers


  5. Posts : 1,223
    W10-Pro 22H2
       #5

    martinlest said:
    I have 16GB of physical RAM, about 2.5GBs of which is used up after Windows 10 (20H2) loads.
    With 16GB, you mostly don't need to think about it. But if you do:
    martinlest said:
    In essence, is it possible to ascertain which processes I ran are responsible for the RAM usage?
    Well, you have obviously found Task Manager - why not look at (one of) the relevant tabs, like this:
    Memory usage - 'mapped file'??-memory.png
    Click on the memory column to make it sort in descending size, and you will see what is using it up. You can see more detail under the details tab.
      My Computer


  6. Posts : 260
    Windows 10 (Home Ed.)
    Thread Starter
       #6

    .. thanks for the replies. Am kind of otherwise occupied at the moment, but will look at the links carefully and post back as soon as I can.

    Well, you have obviously found Task Manager - why not look at (one of) the relevant tabs, like this
    ... because the tasks are no longer running by then.. it's what they leave behind after they have been closed that I am querying.
      My Computers


  7. Posts : 1,223
    W10-Pro 22H2
       #7

    martinlest said:
    because the tasks are no longer running by then.. it's what they leave behind after they have been closed that I am querying.
    If the tasks are not running, they shouldn't be using any memory. If they are using memory, this should show up - or you wouldn't know there was a problem. Either way, TM (or Performance monitor, or any other memory utility) should be able to show you how much is being used, and by what process.
      My Computer


  8. Posts : 260
    Windows 10 (Home Ed.)
    Thread Starter
       #8

    If the tasks are not running, they shouldn't be using any memory
    I couldn't agree more, they shouldn't: but if you read my original questions, the point I am making is that after closing down programmes, some do not give back their RAM (so to speak).. a problem as old as Windows really.

    My question concerned how to identify which processes (now stopped) contribute to the 'mapped file' and 'process private' columns shown in the screenshot. They do not belong to currently active processes... the sum of RAM being used shown in TM for instance is far smaller than the actual amount of RAM which is 'taken'.
      My Computers


  9. Posts : 920
    Windows 10 Pro
       #9

    When you copy files to for example an external drive, move files around internal drives, load, use, quit apps..... Windows uses system RAM to cache operations, parcel out memory to apps that require it etc. That RAM is then shown as cached but not currently in use, if you then start an operation that requires 12Gb Windows will use that 7Gb + 5Gb more of unused RAM so that RAM you see as "not given back by apps" is actually released by the apps but shown by Windows as having been used but ready for reallocation.
    All this is a dynamic process, usually you will see that amount of used RAM increase over time but it is actually free for use by other apps when needed.
    An example on my system is if I use Macrium to image my system drive just after start up that figure will go from around 2Gb (Windows at start up) to almost 32Gb (Macrium using RAM to cache the imaging process), but if I then load blender with a 20+Gb project file it loads almost instantly but that 32Gb after Macrium doesn't change. Macrium released the memory it used, but Windows shows it as having been used but free for further use.
    You can use apps like Process Explorer, Process Monitor and RAMMap from Sysinternals to keep an eye on which processes claim RAM, how much they claim and what they use it for.
      My Computer


  10. Posts : 1,223
    W10-Pro 22H2
       #10

    I accept that I didn't address the question of mapped files - because I didn't really know about it. What was not clear from your original post was whether any memory shown as 'used' but not linked to an active proces was preventing other programs from running. I would expect stuff held in reserve (because it has recently been accessed) to quietly disappear when new data is required to be accessed. I don't know if that is failing to happen for you.

    However, I have had the full (?) suite of Sysinternals programs on my PC for years, so thought I'd give Rammap a go. This is what my 'use counts' tab looked like:
    Memory usage - 'mapped file'??-rammap-use-counts-1.png
    As you can see, I have over 12GB of mapped file space, but only 600MB is active. AIUI, the standby stuff will make room for anything new as required. The bulk of yours was in standby, it is the 2.6GB of active lump you need to identify. To find out what is in that MF space, my file summary tab shows this:
    Memory usage - 'mapped file'??-rammap-file-summary-1.png
    In my case, most of the space is taken by a Reflect image, as MR was running (or had run recently). So you should be able to use this tab to see what is occupying your MF space. I wondered how I could learn more about the MF space, so had a look on the Sysinternals Rammap page. https://docs.microsoft.com/en-us/sysinternals/downloads/rammap

    and there is a link to definitions of the Rammap labels! - disappointingly, this is to a printed book which MS is not giving away. However, under 'learn more' there is a link to an informative (if frustrating) video about Rammap, which I have watched some of. In particular, the speaker refers to 'zombie' processes (~23minutes in) which are in some way disconnected (dead) but still using RAM - but he doesn't really explain how to identify them - but does mention looking for PIDs in the 'processes' tab that are not real - I guess that means the same PIDs don't appear in TM. Those would be quite a chore to identify. But he does explain a bit about the MF space, which seems to be anything that has been read from disc (executable, data etc).

    But I also googled for 'windows internals book' and amongst the many offers for a printed copy I found a link to a pdf of at least part of the 7th edition. I won't copy the link here, but if you find it, on p328 of 1120 (!) there is discussion about 'mapped files' (but it was not that helpful to me).

    Note that over an hour later, after a refresh, my system was still 'hanging on' to those Reflect image files, just in case.

    Hope that helps a bit - Martin
      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 14:23.
Find Us




Windows 10 Forums