PDA

View Full Version : My hard disk space keeps depleting before my eyes




seared.ahi
Aug 8, 2012, 07:09 PM
My SSD space keeps going down even as I'm not doing anything. I can see the bytes under "Used" in my Macintosh HD Info go up every few seconds, for no apparent reason. It's been doing this since 2 days ago when I received my Macbook Air. At this rate I'm going to run out of HD space by Labor Day. Why is this happening?

(Moderators, please don't delete this thread or close it. That's extremely rude. As a result of closing my last thread for no reason, you've left me no other option than to start this one.)



korbearus10
Aug 8, 2012, 07:14 PM
If you're so concerned, go into an Apple Store to ask a genius to figure out what's taking up your hard drive space. I'm going to assume it's either mail, photos, or such. I wouldn't worry too much.

simsaladimbamba
Aug 8, 2012, 07:24 PM
To find out, where you storage capacity is being used, you can use the following free applications:

DiskInventory X (http://www.derlien.com/)
OmniDiskSweeper (http://www.omnigroup.com/products/omnidisksweeper/)
JDisk Report (http://www.jgoodies.com/freeware/jdiskreport/)
GrandPerspective (http://grandperspectiv.sourceforge.net/)

Maybe try a combination of several, if you still can't find the "missing" capacity.

eagandale4114
Aug 8, 2012, 07:26 PM
My SSD space keeps going down even as I'm not doing anything. I can see the bytes under "Used" in my Macintosh HD Info go up every few seconds, for no apparent reason. It's been doing this since 2 days ago when I received my Macbook Air. At this rate I'm going to run out of HD space by Labor Day. Why is this happening?

(Moderators, please don't delete this thread or close it. That's extremely rude. As a result of closing my last thread for no reason, you've left me no other option than to start this one.)

Go to system preferences> time machine
If it is enabled make sure local snapshots are disabled.

seared.ahi
Aug 8, 2012, 07:32 PM
Thanks for the suggestions so far. I really appreciate it.

To find out, where you storage capacity is being used, you can use the following free applications:

DiskInventory X (http://www.derlien.com/)
OmniDiskSweeper (http://www.omnigroup.com/products/omnidisksweeper/)
JDisk Report (http://www.jgoodies.com/freeware/jdiskreport/)
GrandPerspective (http://grandperspectiv.sourceforge.net/)

Maybe try a combination of several, if you still can't find the "missing" capacity.

I downloaded Omni Disk Sweeper already. Nice little tool. I deleted the Safari Cache> Webpage Previews and got 100 mb back. However, I don't know what other files are safe to delete. And that doesn't explain why my bytes/HD is still moving.

Go to system preferences> time machine
If it is enabled make sure local snapshots are disabled.

Time Machine has always been turned off.

simsaladimbamba
Aug 8, 2012, 07:37 PM
T
I downloaded Omni Disk Sweeper already. Nice little tool. I deleted the Safari Cache> Webpage Previews and got 100 mb back. However, I don't know what other files are safe to delete. And that doesn't explain why my bytes/HD is still moving.


The deleted cache will just be recreated (they also make loading faster).
What other folders/files did OmniDiskSweeper show you to be quite big? Have you tried another application like GrandPerspective or DiskInventory X to see, if they find something else?
And if OmniDiskSweeper found other big files, and you don't know, if you can delete them safely, you either do a www search for them to get an explanation or tell us, what those files are.

GGJstudios
Aug 8, 2012, 07:43 PM
If you're wondering what "Other" category in the Lion storage tab is about, this may help explain:
What is this "Other" in the storage tab? What is eating my space (http://forums.macrumors.com/showpost.php?p=14103154&postcount=1)
For space issues not explained by the above, there are a few things you can try, some of which may or may not apply:
Begin by restarting your computer as a first step. This sometimes resolves issues.


For Time Machine users on notebooks running Lion, space may being consumed by Time Machine local snapshots, which can be disabled (http://toti.posterous.com/hidden-local-backups-with-mac-os-x-lion-filli).
OS X: About Time Machine's "local snapshots" on portable Macs (http://support.apple.com/kb/HT4878)


Check to see if some of the space is being used by your sleepimage (http://osxdaily.com/2010/10/11/sleepimage-mac/) file.


Search with Finder to see if the space is being consumed by a very large file or several large files. Adjust the 50GB in the illustration to whatever size you deem appropriate.
http://forums.macrumors.com/attachment.php?attachmentid=316547&d=1324232637
Use OmniDiskSweeper (http://www.omnigroup.com/products/omnidisksweeper/), JDisk Report (http://www.jgoodies.com/freeware/jdiskreport/), Disk Inventory X (http://www.derlien.com/index.html), DaisyDisk (http://www.daisydiskapp.com/) or GrandPerspective (http://grandperspectiv.sourceforge.net/) to see how space is being used on your drive. Some of these apps may show more detail than others, so try several.


Check your drive with Disk Utility: Using Disk Utility to verify or repair disks (http://support.apple.com/kb/HT1782)


Try re-indexing your drive: Spotlight: How to re-index folders or volumes (http://support.apple.com/kb/ht2409)
Here are a few resolutions found by others with the same question:

Encrypted drive (http://forums.macrumors.com/showthread.php?t=1331617)
Time Machine backup files and needed disk repair (http://forums.macrumors.com/showthread.php?t=1327443)
App filling log file (http://forums.macrumors.com/showthread.php?t=1323490)
App or file was 89GB (http://forums.macrumors.com/showthread.php?t=1327832)
Drive needed to be re-indexed (http://forums.macrumors.com/showthread.php?t=1326965)
Time Machine backup file (http://forums.macrumors.com/showthread.php?t=1322806)
Large app cache file (http://forums.macrumors.com/showthread.php?t=1319720)
Garageband files and video podcasts (http://forums.macrumors.com/showthread.php?t=1313090)
Oversized email being duplicated (http://forums.macrumors.com/showthread.php?t=1310158)
Another email issue (http://forums.macrumors.com/showthread.php?t=831784)

Freeing up space in Mac OS X (http://forums.macrumors.com/showpost.php?p=15085059&postcount=2)

seared.ahi
Aug 8, 2012, 07:44 PM
The deleted cache will just be recreated (they also make loading faster).
What other folders/files did OmniDiskSweeper show you to be quite big? Have you tried another application like GrandPerspective or DiskInventory X to see, if they find something else?
And if OmniDiskSweeper found other big files, and you don't know, if you can delete them safely, you either do a www search for them to get an explanation or tell us, what those files are.

There really seems to be nothing else I can delete without screwing up parts of my apps or deleting apps altogether. For example, Private > Sleep Image seems to take up 8.6GB and I've already deleted that but it just comes back. I understand it's not a good idea to delete it permanently. Library > Application Support also looks like a big one - the main culprits being GarageBand (1.5GB) and Adobe (1.1GB) - but again, I don't want to screw up features in those programs. Well, in Adobe the main culprit is CameraRaw and Common. Not sure what those do....

Again, I can live with this stuff. The worst part is how I bleed HD space over time. I have 35,566,799,360 bytes used. Take note. I'll let you know what that number is in an hour.

GGJstudios
Aug 8, 2012, 07:52 PM
Again, I can live with this stuff. The worst part is how I bleed HD space over time. I have 35,566,799,360 bytes used. Take note. I'll let you know what that number is in an hour.
It sounds like you haven't read my post and the links, even though it's been posted in a couple of the threads you've started.

manhattanboy
Aug 8, 2012, 07:55 PM
There really seems to be nothing else I can delete


Your solution is simple:
Step 1) Stop downloading pron.
Step 2) Delete that nasty pron you downloaded along time ago :D

seared.ahi
Aug 8, 2012, 08:08 PM
@ OP: You created three threads about the same issue, you ignore advise given to you. How exactly do you want to solve your "problem" then?

It sounds like you haven't read my post and the links, even though it's been posted in a couple of the threads you've started.


Actually I did read your post entirely, clicked all the links, and tried some stuff in between, and nothing has worked (not even deleting the mdworker in spotlight). You know what I learned from your posts in other people's threads? That you post the same exact thing every time and it never seems to help. I know you're proud of your work compiling all that information, but here's some general life advice: try tailoring your answer to someone's individual problem, instead of pretending to help with the same, lengthy and irrelevant solutions.

GGJstudios
Aug 8, 2012, 08:12 PM
Actually I did read your post entirely, clicked all the links, and tried some stuff in between, and nothing has worked (not even deleting the mdworker in spotlight).
Where does it say anything about deleting mdworker in spotlight?
You know what I learned from your posts in other people's threads? That you post the same thing every time to everybody and it never seems to help.
Actually, it has helped a great number of people.
try tailoring your answer to someone's individual problem, instead of pretending to help with the same, lengthy and irrelevant solutions.
As there are many possibilities for space consumption, it makes no sense to offer possible solutions one at a time, making an endless thread. It makes much more sense to offer many possible solutions in one post, giving the OP the opportunity to try what applies to them.

The problem arises when someone skims over the list without reading it carefully, as is evident in your case, based on the posts you've made.
(Moderators, please don't delete this thread or close it. That's extremely rude. As a result of closing my last thread for no reason, you've left me no other option than to start this one.)
If you followed the rules, they wouldn't close your threads. There is a rule against posting multiple threads on the same topic. Stick to your original thread.

seared.ahi
Aug 8, 2012, 08:18 PM
Where does it say anything about deleting mdworker in spotlight?


Here:http://forums.macrumors.com/showthread.php?t=831784

Do you even know what threads you are linking people to? :rolleyes:

GGJstudios
Aug 8, 2012, 08:18 PM
Can't. They closed it several hours ago. That's why I had to make this one. LOL.
No, this one: I NEED HELP!!!!! Mysterious loss of SSD capacity?? (http://forums.macrumors.com/showthread.php?t=1419823)
Here:http://forums.macrumors.com/showthread.php?t=831784

Do you even know what threads you are linking people to? :rolleyes:
There is nothing in that thread that suggests deleting mdworker in spotlight. Read again.

seared.ahi
Aug 8, 2012, 08:28 PM
There is nothing in that thread that suggests deleting mdworker in spotlight. Read again.

Sorry I meant I deleted mdimporter. This is what they suggested:

mdworker is the process that archives the index for Spotlight search. It's triggered when you have a 32-bit .mdimporter in either /Library/Spotlight/ or ~/Library/Spotlight/.

I've found that some people have issues with it when it indexes Office 2008 files. You might want to check those above folders I mentioned and see if there's something called "Microsoft Office.mdimporter" in there. Delete it.

----------

No, this one: I NEED HELP!!!!! Mysterious loss of SSD capacity?? (http://forums.macrumors.com/showthread.php?t=1419823)


Actually thanks, I went to lunch and completely forgot about that thread. Alan Shutko had the right answer to that question. When you imported photos, it created a lot of thumbnails and previews of different sizes. I bet the movies were also conformed to different formats, if you imported them into iMovie.

But here I ask a completely different question. I'm not worried about the iPhoto/iTunes space anymore, just the disappearing harddrive space - UNLESS iPhoto/iTunes is part of the problem...

GGJstudios
Aug 8, 2012, 08:29 PM
Sorry I meant I deleted mdimporter.

You missed the whole reason for linking to that thread, which is described in the link in my post "Another email issue":
Grand Perspective helped out a lot. There was a recovered email that's been self replicating and causing all sorts of havoc. I tried everything I could think of and it kept respawning. I finally had to delete the account.

Ten minutes later it figured out the account wasn't there and I've got 30GB instead of my original 20GB!
The portion of the thread you focused on is from 3 years ago and the OP never posted the resolution.

seared.ahi
Aug 8, 2012, 08:45 PM
You missed the whole reason for linking to that thread, which is described in the link in my post "Another email issue":

The portion of the thread you focused on is from 3 years ago and the OP never posted the resolution.

Ok, I downloaded Grand Perspective and scanned my entire HD. I'm not sure how looking at a bunch of colored squares helps me, because it basically is only a visual representation of everything that Omni Disc Sweeper already told me.

FYI, I don't think I have a respawning email. (And if I did how would I know?) My Mail folder matches the actual amount of emails I have imported in my Mail, both Received and Sent (about 1GB total).

The biggest squares are Sleep Image and iPhoto Library and then iMovie and iPhoto applications. I already knew this.

----------

Someone's giving all my posts thumbs up. I think I have a secret admirer. :p

kodeman53
Aug 9, 2012, 04:06 AM
My SSD space keeps going down even as I'm not doing anything. I can see the bytes under "Used" in my Macintosh HD Info go up every few seconds, for no apparent reason. It's been doing this since 2 days ago when I received my Macbook Air. At this rate I'm going to run out of HD space by Labor Day. Why is this happening?

This thread is hilarious. Why are you sitting there watching your HD info?

News flash - as you use your MBA you will use more HD space. Deleting temporary files is a fool's errand. When you use the software that created them in the first place, they will get recreated. Follow the advice you've received in all the threads you started and delete those feature of OSX you don't, and won't, use, e.g., additional languages. That's ALL you can do. Remember, installing additional software to keep your HD clean uses more HD space.

bullrat
Aug 9, 2012, 06:53 AM
I recently purchased a MBA with 128GB SSD. After getting everything set up on my MBA I was down to only 30GB available. I needed some elbow room, as I still want to install Xcode and who knows what else. I've read all the threads on deleting the sleep image, languages, etc. and they're all good suggestions. I have a 64GB iPad gen3 and admittedly keep it loaded. I had over 2 dozen apps that were over 200MB and a half dozen over 1GB each!

Here's what I did, YMMV. I simply deleted my mobile apps from my MBA iTunes account and turned off the Preferences > Store > Sync Apps. I know that if Apple pulls an app that I use 2 years from now I won't be able to reload it, blah, blah but hey, they'll probably be a better app available by then anyway. I recovered a whopping 30GB on my MBA! :eek:

You could even save your mobile app folder on an external drive before you delete it if you really really can't stand the thought of deleting it, but I don't think its that big a deal and I choose not to do that. One last thing, be sure to disable automatic syncing of your iDevice and iTunes on your Mac, so that you don't start building another pile o' saved apps. Good luck.

PBG4 Dude
Aug 9, 2012, 08:20 AM
bullrat,

Also, go into iTunes preferences and see how many iDevice backups you have saved. You can delete the oldest ones via this screen.

bullrat
Aug 9, 2012, 10:45 AM
bullrat,

Also, go into iTunes preferences and see how many iDevice backups you have saved. You can delete the oldest ones via this screen.

True! I forgot to mention that one. After I get a new iDevice setup and running, I delete any BUs that don't apply, too. BUs can really eat up some storage.

BenClement1978
Aug 9, 2012, 02:58 PM
using iTunes match by any chance?

seared.ahi
Aug 9, 2012, 04:21 PM
I think I found out the answer. Today I lost another GB but I took screenshots from last night, and today, showing the difference. Take a look at the 2 pictures:

Today, "Private" is 1 GB larger than yesterday. What I think it is are the swapfiles (swapfile4, swapfile3, etc.) because sleepimage was always 8.6 GB and I didn't see those swap files there before. I think my computer's constantly filling up with swapfiles.

Are these safe to delete? How do I delete them? And will the come back if I delete it (like sleepimage does)? I'm glad I found the problem, but I need a solution now! Thanks!!

GGJstudios
Aug 9, 2012, 04:24 PM
I think I found out the answer. Today I lost another GB but I took screenshots from last night, and today, showing the difference. Take a look at the 2 pictures:

Today, "Private" is 1 GB larger than yesterday. What I think it is are the swapfiles (swapfile4, swapfile3, etc.) because sleepimage was always 8.6 GB and I didn't see those swap files there before. Here's my questions:

Are they safe to delete? How do I delete them? And will the come back if I delete it (like sleepimage does)? I'm glad I found the problem, but I need a solution now! Thanks!!
Mac OS X manages your swapfiles automatically. If you restart, they should all be gone. As your Mac exceeds its RAM capacity, it will page out, creating swapfiles. As your memory demands decrease, some of those swapfiles may be removed or reduced in size. Don't delete them manually. You can see the size of your swapfiles in Activity Monitor on the System Memory tab at the bottom, or in iStat Pro (http://www.islayer.com/apps/istatpro/) (free) or iStat Menus (http://bjango.com/mac/istatmenus/) ($16).

seared.ahi
Aug 9, 2012, 04:37 PM
Mac OS X manages your swapfiles automatically. If you restart, they should all be gone. As your Mac exceeds its RAM capacity, it will page out, creating swapfiles. As your memory demands decrease, some of those swapfiles may be removed or reduced in size. Don't delete them manually. You can see the size of your swapfiles in Activity Monitor on the System Memory tab at the bottom, or in iStat Pro (http://www.islayer.com/apps/istatpro/) (free) or iStat Menus (http://bjango.com/mac/istatmenus/) ($16).

Thanks! So I restarted and all the swapfiles, but swapfile0 (67mb), is gone! So swapfiles are created even when my computer was asleep (lid's been closed for the past 14 hrs)? And this means if I don't restart my computer for say 45 days (at a rate of losing 2gb/day), then my disk space can leak all the way down to 0 (in theory)?

On my Powerbook, I think I was restarting once every 6 months. Lol.

GGJstudios
Aug 9, 2012, 04:39 PM
Thanks! So I restarted and all the swapfiles, but swapfile0 (67mb), is gone! So swapfiles are created even when my computer was asleep
No, swapfiles are not created when your Mac is asleep. It simply didn't delete the last swapfile. Also, swapfiles are not used or increased if you're not paging out. Make sure you have enough RAM for your normal workload.

To determine if you can benefit from more RAM, launch Activity Monitor and click the System Memory tab at the bottom to check your page outs. Page outs are cumulative since your last restart, so the best way to check is to restart your computer and track page outs under your normal workload (the apps, browser pages and documents you normally would have open). If your page outs are significant (say 1GB or more) under normal use, you may benefit from more RAM. If your page outs are zero or very low during normal use, you probably won't see any performance improvement from adding RAM.

Mac OS X: Reading system memory usage in Activity Monitor (http://support.apple.com/kb/HT1342)

seared.ahi
Aug 9, 2012, 04:50 PM
No, swapfiles are not created when your Mac is asleep. It simply didn't delete the last swapfile. Also, swapfiles are not used or increased if you're not paging out. Make sure you have enough RAM for your normal workload.

To determine if you can benefit from more RAM, launch Activity Monitor and click the System Memory tab at the bottom to check your page outs. Page outs are cumulative since your last restart, so the best way to check is to restart your computer and track page outs under your normal workload (the apps, browser pages and documents you normally would have open). If your page outs are significant (say 1GB or more) under normal use, you may benefit from more RAM. If your page outs are zero or very low during normal use, you probably won't see any performance improvement from adding RAM.

Mac OS X: Reading system memory usage in Activity Monitor (http://support.apple.com/kb/HT1342)

Now you lost me. I was/am not doing anything intensive that's required more than 8GB of RAM, not even 2. And I lost that 1GB overnight, when my computer was asleep. Those swapfiles were not there before last night. You saw the screenshots. Hmm...something's still not right.

GGJstudios
Aug 9, 2012, 04:51 PM
Now you lost me. I was/am not doing anything intensive that's required more than 8GB of RAM, not even 2. And I lost that 1GB overnight, when my computer was asleep. Those swapfiles were not there before last night. You saw the screenshots. Hmm...something's still not right.
Nothing is running when your Mac is asleep, so swapfiles cannot be created in sleep mode.

seared.ahi
Aug 9, 2012, 04:54 PM
Nothing is running when your Mac is asleep, so swapfiles cannot be created in sleep mode.

But 1 GB of something in the Private folder was created between last night before I went to bed and just now when I opened my computer the first time today!

GGJstudios
Aug 9, 2012, 04:57 PM
But 1 GB of something in the Private folder was created between last night before I went to bed and just now when I opened my computer the first time today!
It had to be created before your Mac entered sleep mode, or it didn't stay in sleep mode. If it's in sleep mode, nothing is running, no files are being created or modified.... nothing. I suggest you check it more carefully again tonight.

seared.ahi
Aug 9, 2012, 05:00 PM
It had to be created before your Mac entered sleep mode, or it didn't stay in sleep mode. If it's in sleep mode, nothing is running, no files are being created or modified.... nothing. I suggest you check it more carefully again tonight.

I was restarting all throughout the day yesterday and again, I have never done anything RAM intensive since the day I got my Mac. So there is no reason I should have accumulated swapfiles like that. Therefore you can admit something is weird with my swapfiles, right? They are on hyper mode or something.

But of course I will do another test tonight! More screenshots!

GGJstudios
Aug 9, 2012, 05:02 PM
I was restarting all throughout the day yesterday and again, I have never done anything RAM intensive since the day I got my Mac. So you have to admit something is weird with my swapfiles. They are on hyper mode or something.

But of course I will do another test tonight! More screenshots!
Be sure to check Activity Monitor's System Memory tab before you sleep and after you wake your Mac.

seared.ahi
Aug 9, 2012, 05:08 PM
Be sure to check Activity Monitor's System Memory tab before you sleep and after you wake your Mac.

I'll make sure that's captured in the screenshot too.

GGJstudios
Aug 9, 2012, 05:12 PM
I'll make sure that's captured in the screenshot too.
For taking screen shots of Activity Monitor for troubleshooting, I recommend these steps:
Launch Activity Monitor
Change "My Processes" at the top to "All Processes"
Click on the CPU column heading once or twice, so the arrow points downward (highest values on top).
Click on the System Memory tab at the bottom.
Take a screen shot (http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X) of the entire Activity Monitor window, then scroll down to see the rest of the list, take another screen shot
Post your screenshots (http://forums.macrumors.com/showpost.php?p=14126379&postcount=16).

seared.ahi
Aug 9, 2012, 05:26 PM
For taking screen shots of Activity Monitor for troubleshooting, I recommend these steps:
Launch Activity Monitor
Change "My Processes" at the top to "All Processes"
Click on the CPU column heading once or twice, so the arrow points downward (highest values on top).
Click on the System Memory tab at the bottom.
Take a screen shot (http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X) of the entire Activity Monitor window, then scroll down to see the rest of the list, take another screen shot
Post your screenshots (http://forums.macrumors.com/showpost.php?p=14126379&postcount=16).

Not to sound lazy, but do you actually need to see the processes down at the bottom (that take 0.0% of the CPU)? Also, what kinds of unusual processes or things should I be looking for?

Thanks for the tips on how use Activity Monitor more effectively.

I'll just post this to get your chops wet and maybe you can tell me what you think. This is basically how I always run my computer:

GGJstudios
Aug 9, 2012, 05:36 PM
Not to sound lazy, but do you actually need to see the processes down at the bottom (that take 0.0% of the CPU)?
Usually they're not critical, but occasionally I see software running that isn't needed or isn't recommended, even though it might not be consuming a large amount of resources at the time of the screen shot.
Also, what kinds of unusual processes or things should I be looking for?
First, I look for any processes that are placing high demands on the CPU or memory. I also look for processes that may indicate a need for additional software, such as if Safari Web Content is high and Flash is being used, I recommend ClickToFlash to control what Flash content plays and when. High CPU/memory use by mds and mdworker processes may indicate Spotlight is indexing. There are quite a few things to look for. It just helps to start with a picture of what's happening.

dcorban
Aug 10, 2012, 08:54 AM
There is a critical flaw in the logic behind this entire thread. What makes you think that, because your computer is writing data to your drive now, it will continue to do so until it fills the entire drive?

wdunn
Aug 10, 2012, 09:21 AM
Scanned this thread so sorry if I missed, but any chance you're running SugarSync, or something similar? I had an issue where SugarSync wrote 30-50 GB of data as backups, so I had to find the folder in Library and delated it...got my space back.

seared.ahi
Aug 10, 2012, 10:43 AM
Scanned this thread so sorry if I missed, but any chance you're running SugarSync, or something similar? I had an issue where SugarSync wrote 30-50 GB of data as backups, so I had to find the folder in Library and delated it...got my space back.

I'm not running SugarSync. I've never even heard of it.

The same exact swapfiles are back! :mad: In just 8 hours of sleeping (12AM-now), my storage is back to minus 1 GB. I'm sure a simple restart will delete them again, but that's not going to explain why this is happening. I didn't take a screenshot of activity monitor but I can tell you that I was doing absolutely nothing intensive and my computer wasn't slow at any point before I went to bed or this morning. Checking now, I'm still only using 2.15GB of memory.

So my swap files grow uncontrollably at night when I'm/my computer is asleep. Great...:mad:

I don't think I'll restart today. I'll just see what happens.

----------

Scanned this thread so sorry if I missed, but any chance you're running SugarSync, or something similar? I had an issue where SugarSync wrote 30-50 GB of data as backups, so I had to find the folder in Library and delated it...got my space back.

You're right.

Look what I just found. http://osxdaily.com/2012/04/10/shutdown-sleep-or-leave-mac-turned-on/

Laptop users with SSDs should shut down instead of shutting the lid. You write the swap file to the SSD every time you go to sleep, even if you don’t get to 0% battery and shut down. It won’t write all 4G (or 8G, or whatever), but that’s still a lot of memory getting written to the swapfile every time. If I shut the lid 4 or 5 times a day I am generating more writes than I’ll do the rest of the day.

The goal with SSDs is to minimize writes. With fast startup, startup isn’t that much slower than waking from sleep.

If you have a SSD, just turn of “safe sleep” (Google for instructions). Then the RAM contents aren’t written to it when you close the lid.

http://hints.macworld.com/article.php?story=20070302210328928

Would disabling safe sleep stop these swapfiles from growing? Do I even have an issue here or is this all normal?

GGJstudios
Aug 10, 2012, 10:43 AM
So my swap files grow uncontrollably at night when I'm/my computer is asleep. Great...:mad:
Again, it is impossible for your swap files to grow when your Mac is in sleep mode. Apparently, it's keeping a 1GB swap file and not deleting it, but it's not paging in sleep mode.
You write the swap file to the SSD every time you go to sleep
It's not the swap file that gets written when you enter sleep mode; it's the sleepimage file.

seared.ahi
Aug 10, 2012, 10:52 AM
Again, it is impossible for your swap files to grow when your Mac is in sleep mode. Apparently, it's keeping a 1GB swap file and not deleting it, but it's not paging in sleep mode.

It's not the swap file that gets written when you enter sleep mode; it's the sleepimage file.

Hmm but it's not there when I go to sleep and it's there in the morning. It's like magic. I wish I could know why. If I could I would wait 8+ hrs during the day and see what happens but I want to be able to use my computer, haha. What do you think about turning off safe sleep?

GGJstudios
Aug 10, 2012, 10:55 AM
Hmm but it's not there when I go to sleep and it's there in the morning. It's like magic. I wish I could know why. If I could I would wait 8+ hrs during the day and see what happens but I want to be able to use my computer, haha. What do you think about turning off safe sleep?
You can certainly try that, but I don't know why you're so worried about 1GB of space being used. You should keep about 10-20% of your drive space free, anyway, so 1GB here or there shouldn't matter.

Why hibernate or 'safe sleep' mode is no longer necessary in OS X Lion (Updated) (http://www.tuaw.com/2011/08/22/why-hibernate-or-safe-sleep-mode-is-no-longer-necessary-in-os/)
How to Remove the Disk-hogging Sleepimage File from Your Mac (http://www.maclife.com/article/howtos/how_remove_diskhogging_sleepimage_file_your_mac)

theSeb
Aug 10, 2012, 11:01 AM
The sleep image file won't just keep growing till an infinite size for giggles. It is the same size as your RAM. Why don't you just leave the poor operating system alone to do its job?

There is no reason to be mucking about, unless there is a run away process that is really continuously writing data, which I don't believe is the case from reading this thread.

To double check open Activity Monitor and click on the Disk Activity tab and see what's going. You'll always see reads and writes happening, even if the computer is idling. Up to a couple of hundreds of KBs is normal. If you're seeing MBs being written then you need to check what is going on.

You can either use Activity Monitor, by checking which processes are not idling and then click on the process and click Inspect in the tool bar. Then click on Open Files and Ports. You can also check which processes are writing to the disk by opening Terminal and typing

sudo iotop -C 5 12

But, unless you have some understanding of computers, this might not mean anything to you.

To reiterate, processes are always writing and reading stuff.

seared.ahi
Aug 10, 2012, 11:25 AM
The sleep image file won't just keep growing till an infinite size for giggles. It is the same size as your RAM. Why don't you just leave the poor operating system alone to do its job?

There is no reason to be mucking about, unless there is a run away process that is really continuously writing data, which I don't believe is the case from reading this thread.

To double check open Activity Monitor and click on the Disk Activity tab and see what's going. You'll always see reads and writes happening, even if the computer is idling. Up to a couple of hundreds of KBs is normal. If you're seeing MBs being written then you need to check what is going on.

You can either use Activity Monitor, by checking which processes are not idling and then click on the process and click Inspect in the tool bar. Then click on Open Files and Ports. You can also check which processes are writing to the disk by opening Terminal and typing

sudo iotop -C 5 12

But, unless you have some understanding of computers, this might not mean anything to you.

To reiterate, processes are always writing and reading stuff.

I have to run out quick now but I'll say this -
"Up to a couple of hundreds of KBs is normal. If you're seeing MBs being written then you need to check what is going on."

Yes, it's MBs. ~1000 MBs in 8 hrs to be exact.

"The sleep image file won't just keep growing till an infinite size for giggles. It is the same size as your RAM. Why don't you just leave the poor operating system alone to do its job?

There is no reason to be mucking about, unless there is a run away process that is really continuously writing data, which I don't believe is the case from reading this thread."

The sleepimage file is fine. It's always 8.6GB (my RAM is 8GB). The problem is Swapfiles growing out of control!

TheRealDamager
Aug 10, 2012, 11:31 AM
This is one of the absolutely strangest threads I've ever seen on here.

Seared - are you thinking that if you do nothing, that you will "lose" a GB of space every day until your HD is full? What do you based that concern on?

theSeb
Aug 10, 2012, 11:34 AM
I have to run out quick now but I'll say this -
"Up to a couple of hundreds of KBs is normal. If you're seeing MBs being written then you need to check what is going on."

Yes, it's MBs. ~1000 MBs in 8 hrs to be exact.

"The sleep image file won't just keep growing till an infinite size for giggles. It is the same size as your RAM. Why don't you just leave the poor operating system alone to do its job?

There is no reason to be mucking about, unless there is a run away process that is really continuously writing data, which I don't believe is the case from reading this thread."

The sleepimage file is fine. It's always 8.6GB (my RAM is 8GB). The problem is Swapfiles growing out of control!

Please do the following.

1. Restart the computer
2. Open Activity Monitor. Select the System Memory tab and take a screenshot
3. Select the Disk Usage tab and take a screenshot
4. Select the Disk Activity tab and take a screenshot
5. Use your computer for a couple of hours, let it sleep etc, as if you would normally
6. Take all of the screenshots that I've mentioned above again and post everything here

GGJstudios
Aug 10, 2012, 11:40 AM
1000 mbs is 1 tb, which is not possible on a mba.
Correction:

1000MB = 1GB
1000GB = 1TB

theSeb
Aug 10, 2012, 11:49 AM
Correction:

1000MB = 1GB
1000GB = 1TB

lol. Indeed. Clearly I need some sleep or learn to read better. :o :mad: I should have at least used capitals since they are different things again. Not having a good day.

I am sorry, but are we seriously worrying about 1 GB being written in 8 hours? I refuse to participate any further in these shenanigans.

GGJstudios
Aug 10, 2012, 11:51 AM
lol. Indeed. Clearly I need some sleep or learn to read better. :o :mad:
I usually claim having a "senior moment" in cases like this! :D
I am sorry, but are we seriously worrying about 1 GB being written in 8 hours?
It's obviously not being written in sleep mode, so it's either not being deleted in the first place, or it's created before sleeping or after waking. I agree that 1GB is hardly cause for concern and certainly not "growing out of control!"

seared.ahi
Aug 10, 2012, 12:17 PM
I agree that 1GB is hardly cause for concern and certainly not "growing out of control!"

Ok that's fine. Why didn't anybody say this before!? I'll leave this topic alone for a while, won't stress, and just see what happens.

GGJstudios
Aug 10, 2012, 12:21 PM
I agree that 1GB is hardly cause for concern and certainly not "growing out of control!"
Ok that's fine. Why didn't anybody say this before!?
I did:
I don't know why you're so worried about 1GB of space being used. You should keep about 10-20% of your drive space free, anyway, so 1GB here or there shouldn't matter.

seared.ahi
Aug 10, 2012, 01:17 PM
I did:

True, but I think the reason I persisted was just because the way you said it didn't sound like you understood at that point. "1GB of space being used" could've meant anything.

Mikey-Mike
Aug 10, 2012, 01:25 PM
At this very moment I have 3 GB occupied by pRon alone.

And climbing. Darn you Oron.

kodeman53
Aug 10, 2012, 03:42 PM
Ok that's fine. Why didn't anybody say this before!? I'll leave this topic alone for a while, won't stress, and just see what happens.

No you won't.

Nsbalt
Oct 20, 2013, 08:52 AM
Turning off PhotoStream in iPhoto seems to have worked for me!