disk space

Posted:
in macOS edited January 2014
over time my available disk space goes down a little each day (mac os 10.4.7). some of this is from safari or other browser from cache, but what else causes this? i guess there are other caches and system logs etc, but is this all positive for a smooth running mac? is the system getting cluttered with other things and slowing down over time? is it important to clean all caches and logs etc or does mac run better if you just let it be. just curious, everything works perfect but i am trying to understand operating system etc. thanks.

Comments

  • Reply 1 of 10
    kickahakickaha Posts: 8,760member
    Caches and logs are part of it, but those get purged periodically.



    Virtual memory is usually the biggest item that does this - it gets cleared on reboot.
  • Reply 2 of 10
    mr. hmr. h Posts: 4,870member
    Quote:
    Originally Posted by Kickaha


    but those get purged periodically.



    Only if your computer is running at 3 am (or whatever it is), or you manually invoke the daily, weekly and monthly cron scripts (which can be done with the usual suspects such as Onyx).
  • Reply 3 of 10
    Empty your junk folder in Mail.
  • Reply 4 of 10
    mr. memr. me Posts: 3,221member
    Quote:
    Originally Posted by Mr. H


    Only if your computer is running at 3 am (or whatever it is), ....



    It is my understanding that Kickaha is correct. If your computer is not running at the traditional cron scheduled time, the periodic tasks will run when your computer is turned on.
  • Reply 5 of 10
    mr. hmr. h Posts: 4,870member
    Quote:
    Originally Posted by Mr. Me


    It is my understanding that Kickaha is correct. If your computer is not running at the traditional cron scheduled time, the periodic tasks will run when your computer is turned on.



    where did you hear that? According to this (the first thing I could find with a quick google), and many things I've read since OS X came out, cron does not run tasks that it has missed due to the machine being asleep or shut down.
  • Reply 6 of 10
    Well then, can someone post the Terminal script that will run the tasks?



    Noah
  • Reply 7 of 10
    mr. hmr. h Posts: 4,870member
    Quote:
    Originally Posted by noah93


    Well then, can someone post the Terminal script that will run the tasks?



    Noah



    I don't know how to do it with the terminal, I never bothered finding out because

    Onyx is free, and does it and other useful stuff too.
  • Reply 8 of 10
    chuckerchucker Posts: 5,089member
    Quote:
    Originally Posted by Mr. H


    where did you hear that? According to this (the first thing I could find with a quick google), and many things I've read since OS X came out, cron does not run tasks that it has missed due to the machine being asleep or shut down.



    As of Tiger, cron is deprecated in favor of launchd, which can handle asynchronous tasks just fine.
  • Reply 9 of 10
    If you want to do them all at once you can type:



    sudo periodic daily weekly monthly



    Or you can type just sudo periodic daily for example.



    The launchd daemon from what I read is smart enough to run the missed tasks next time it is booted up though. Not 100% sure on this.
  • Reply 10 of 10
    MarvinMarvin Posts: 15,326moderator
    Quote:
    Originally Posted by Mr. H


    where did you hear that? According to this (the first thing I could find with a quick google), and many things I've read since OS X came out, cron does not run tasks that it has missed due to the machine being asleep or shut down.



    I thought that too. I've seen machines used for months and the user never left the machine on overnight and the locate database was empty, which suggests to me the scripts hadn't been run.



    Anyway, the most noticeable use of space is virtual memory. This usually frees itself up by quitting programs. Logging out would probably work but a restart definitely does.
Sign In or Register to comment.