1 2 Previous Next 22 Replies Latest reply: Mar 6, 2014 3:56 PM by Richard Glaser Go to original post
  • 15. Re: Is it ok to delete the contents of /private/var/folders/*?
    Jim_witte Level 1 Level 1 (5 points)

    I fuond some stuff that xcode (or something developer-related) had stuck in /var/folders/m1/..  It came up because gcc apparently wouldn't compile a program (that had compiled before - it's Paul Guyot's 'Albert' decompiler/disassembler for the Newton ROM)  The following was the command and error:

     

    gcc db2src.cpp disarm.cpp disarm_c.cpp nsDecode.cpp  ∂

          EasyBMP/EasyBMP.cpp -lstdc++-static  -o ../db2src

     

    ld: duplicate symbol _gFnameRomBuilt in   ∂

         /var/folders/m1/m1JMuhFvE2a7LetqP5+Rpk+++TI/-Tmp-//ccfiL600.o and  ∂

         /var/folders/m1/m1JMuhFvE2a7LetqP5+Rpk+++TI/-Tmp-//ccFoum78.o   ∂

         for architecture i386

    collect2: ld returned 1 exit status

     

    Jim

  • 16. Re: Is it ok to delete the contents of /private/var/folders/*?
    David Morrison Level 2 Level 2 (225 points)

    You are talking about a six year old machine. There is a good chance that the disk is slowly dying. (I have a MBP from about that time, and it is slow even in ordinary operations. I have been told by an Apple service centre that the disk is definitely dying.)

     

    It also seems like you might be using every bit of spare space on the disk. Apple recommends keeping at least 10% (from memory) of your disk free at all times. If you don't, the operating system slows down.

     

    I would suggest that it is time to get a new disk for your MBP, which will solve the space problem and the slowness problem. And possibly save you from final failure, probably when you least want it to happen.

  • 17. Re: Is it ok to delete the contents of /private/var/folders/*?
    LexSchellings Level 5 Level 5 (5,690 points)

    Hear hear !!

    quote

    You don't need to defrag for your use case, cache cleaning does not replace registry cleaning, your Mac does not need periodic maintenance, and there are no viruses only trojans (stop downloading and installing stuff!)

    If you have a specific problem, don't make it worse by guesssing. Troubleshoot and fix the issue.

    unquote

    That's it.  OSX works totally different than Windows, all these "tools"  slow down and wear out your system. Cleaning out caches and temporary files happens automatically on a daily weekly and monthly basis (read how it is described in Onyx).

  • 18. Re: Is it ok to delete the contents of /private/var/folders/*?
    Syth Level 1 Level 1 (45 points)

    My /var/fodlers is over 7GB in size, nearly 10% of my SSD drive space.

     

    Sigh.

  • 19. Re: Is it ok to delete the contents of /private/var/folders/*?
    musicspirit Level 2 Level 2 (495 points)

    I was brought to this thread by Google having  just done a runthrough with  WhatSize and also discovered the Private/Var folder  - mine is a whopping 9.82GB!!!

     

    Could someone please explain step by step how to reduce this? It's got to be mostly a waste of space... on my mid 2010 MBP happily  running OSX 10.8.5

     

    PS Just add - the main huge folder is called 'sleepimage' ... ?!

  • 20. Re: Is it ok to delete the contents of /private/var/folders/*?
    Michael Black Level 6 Level 6 (17,850 points)

    Sleepimage is exactly what it sounds like - it is the image written to disc of your machines active state when it went into sleep mode.  It is typlically as big as the amount of RAM you have on your system.  You can delete it, but the next time your system sleeps, it will just be re-created.

     

    sudo rm /private/var/vm/sleepimage

     

    Try a simple reboot and then see what /var is.  Ordinarily, the things that can safely be purged from /var are automatically purged as part of a system restart.  However, many, like sleepimage, swap files and so on will just come right back, as they are needed for your system to work properly.

  • 21. Re: Is it ok to delete the contents of /private/var/folders/*?
    musicspirit Level 2 Level 2 (495 points)

    Many thanks for this helpful explanation!

     

    best

     

    MS

  • 22. Re: Is it ok to delete the contents of /private/var/folders/*?
    Richard Glaser Level 1 Level 1 (0 points)

    FYI:

     

    Here is a post that gives details on /var/folders and issues.

     

    What is "/var/folders"?

    http://blog.magnusviri.com/what-is-var-folders.html

     

    Hopefully, it is helpful.

1 2 Previous Next