Whats this folder and can it be deleted?

Discussion in 'macOS High Sierra (10.13)' started by jwolf6589, Jun 2, 2018.

  1. jwolf6589 macrumors 65816

    jwolf6589

    Joined:
    Dec 15, 2010
    Location:
    Colorado
    #1
    Root Directory/vm/swapfile0

    Its take up over a gigabyte
     
  2. treekram macrumors 68000

    Joined:
    Nov 9, 2015
    Location:
    Honolulu HI
    #2
    No - do not delete this if the disk it is on is your system disk. It means you've run out of memory and the OS has to temporarily some of it on disk. If you need the disk space, you can disable swapping. Or, after a reboot, this file should be deleted until such time that you run out of memory.

    https://www.asylab.com/single-post/2017/11/29/Disable-Swapfile-MacOs-Mac-OS-X

    You can use Activity Monitor to monitor your memory - maybe there's an app that's taking a lot of it.
     
  3. jwolf6589 thread starter macrumors 65816

    jwolf6589

    Joined:
    Dec 15, 2010
    Location:
    Colorado
    #3
    I have 190GB's free so I have plenty of space. I was just curious what that file was. No reason to disable it. Thanks...
     
  4. DeltaMac macrumors G3

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #4
    The swapfile can get fairly large at times. It's a pretty normal occurrence. It may change in size while you are using your Mac, even might shrink somewhat on its own. You used to see a large performance hit, when the swap file was in use, but SSDs make that result much less noticeable. If you notice that your system is really slowing down, and also have a large swap file, that's usually your clue that you need more RAM memory (storage space on your drive doesn't count!) If your Mac is an older one, you may be able to add more RAM. Newer Macs, same issue, often means that you need to pay attention to which apps are needing all that swap space, and go easy :D
    You can remove an existing Swapfile by restarting your Mac. The swapfile might come back quite quickly, or you might work for a few days without seeing it return. It all depends on what you do on your Mac, and how you work.

    Final thought: If you don't really notice any performance issues, you can choose to ignore the swapfile. It's a natural part of the system - a normal result of memory management on your Mac.
     
  5. aliensporebomb macrumors 68000

    aliensporebomb

    Joined:
    Jun 19, 2005
    Location:
    Minneapolis, MN, USA, Urth
    #5
    It's ram you need not more disk space. How much ram do you have on your system?
     
  6. elf69 macrumors 68020

    elf69

    Joined:
    Jun 2, 2016
    Location:
    Cornwall UK
    #6
    If sig of OP is right he has 8GB ram.

    i have mid 2012 macbook pro i5 with 6GB ram and 240GB SSD.

    the swap file OP talks of is 1.07GB on my laptop
     
  7. jwolf6589 thread starter macrumors 65816

    jwolf6589

    Joined:
    Dec 15, 2010
    Location:
    Colorado
    #7
    MacBook has not used the swapfile since June 1st.
     
  8. DeltaMac macrumors G3

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #8
    Any existing swapfile is deleted when your restart your Mac.

    A swapfile would be created and used whenever needed by the system, and may change as you work.
    I don't know of a method to report when a swapfile is used. It either exists (and the system has used it to some degree), or the system has not yet needed to create one.
     
  9. elf69 macrumors 68020

    elf69

    Joined:
    Jun 2, 2016
    Location:
    Cornwall UK
    #9
    activity monitor has a current swap file usage at bottom.
    it not same size as the file but the activity monitor is current usage not total used.

    I'd not worry about the file as relatively small anyway and is a temp file.
     

Share This Page