Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Starting a week ago, my hard disk keeps filling up over a 15 minute period

If I don't notice this is happening, the disk gets 100% full, I have to force quit all my applications and reboot. If I do notice that it is happening, I have time to shut down myself. When I reboot, I'm back to normal - with 25 GB free on a 480 GB SSD.


I've tried running lsof to see what files are being written and by what, but looking at the output, I can't see anything abnormal. It isn't TimeMachine doing a local snapshot or local backup - I've disabled that with tmutil. It isn't a normal log file going beserk because those don't get deleted in a reboot. It isn't network activity because I don't see my networking going wild and transferring 25 GB across the network would take more than the 15 minutes in which my system fills up and crashes. After every reboot, the file system is back to normal with 25 GB free.


Sometimes this happens overnight, sometimes it happens while I'm working on the system. For example, it started happening at 9:15 this morning but I didn't notice until it hit 100% and all I could do was shutdown and reboot. It has happened 6 times in the last week.


Any ideas? Any diagnostics I could run to learn more about what is happening?


I'm on a MacBook Pro 15-inch, Mid 2010 with 8 GB running 10.8.4.

OS X Mountain Lion (10.8.4), MacBook Pro (6,2) 15" i7 8GB, 500GB, Hi-res

Posted on Jul 17, 2013 7:13 AM

Reply
17 replies

Jul 17, 2013 2:50 PM in response to inquisitive7

Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:

iPhoto Empty Trash

If you're using Time Machine to back up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of files you've recently deleted. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as "Backups." The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself.

To locate large files, you can use Spotlight. That method may not find large folders that contain a lot of small files.


You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.

Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.


Proceed further only if the problem isn't solved by the above steps.


ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.


Back up all data now.


Install ODS in the Applications folder as usual. Quit it if it's running.


Triple-click the line of text below on this page to select it, then copy the selected text to the Clipboard (command-C):

sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper

Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.


Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.


The application window will open, eventually showing all files in all folders. It may take some minutes for ODS to list all the files.


I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.


When you're done with ODS, quit it and also quit Terminal.

Jul 17, 2013 5:17 PM in response to Linc Davis

You seem to have entirely missed the point of my original post - the files DELETE THEMSELVES WHEN I REBOOT! I don't have to empty the trash! I don't have to clear out the space. I don't have to do anything. THE FILES - whatever they are - DON'T PERSIST ACROSS REBOOTS!


So I don't need to do any of the things that you are suggesting - your suggestions all pertain to someone WITH A COMPLETELY DIFFERENT PROBLEM.


And I only yell when people don't hear me the first time.

Jul 17, 2013 9:38 PM in response to inquisitive7

From the terminal:


sudo iotop -t 5 900 1 > ~/desktop/tracerun.txt



This would trace the top 5 I/O processes for 15 (900 seconds) minutes and save the log "tracerun.txt" to your desktop. You will see which process is writing like crazy....


sudo iotop -t 5 3600 1 > ~/desktop/tracerun.txt


Same thing, for one hour. You get the point. Just leave the terminal open when doing so.

Aug 28, 2013 11:12 AM in response to inquisitive7

I've acquired a little more information on what is happening - I was able to catch the system before it froze up. Activity Monitor showed me it was iTunes consuming all the available space for virtual memory - because that creates swap space dynamically, it disappears after each reboot.


Since I first posted, I've cleared 42 GB of empty space on my hard drive - but no matter how much empty space I have, when the problem occurs, it consumes ALL of the available space.


Now, I'm left with the question of whether it is iTunes all the time, or if random processes can run amok and cause the problem. I'll keep you posted.

Aug 29, 2013 4:01 AM in response to inquisitive7

It's iTunes.


I ran top -S -l 1 as it was crashing and got this:


Processes: 152 total, 8 running, 3 stuck, 141 sleeping, 865 threads

2013/08/29 06:25:00

Load Avg: 3.34, 3.42, 2.89

CPU usage: 46.4% user, 39.56% sys, 14.38% idle

SharedLibs: 14M resident, 6228K data, 0B linkedit.

MemRegions: 83595 total, 4331M resident, 77M private, 1242M shared.

PhysMem: 1387M wired, 3398M active, 3395M inactive, 8179M used, 10M free.

VM: 377G vsize, 1054M framework vsize, 136316(0) pageins, 5506257(0) pageouts.

Swap: 21G + 812M free.

Purgeable: 170M 810(0) pages purged.

Networks: packets: 1653262/1216M in, 1359014/279M out.

Disks: 606939/12G read, 978960/41G written.



PID COMMAND %CPU TIME #TH #WQ #PORTS #MREGS RPRVT RSHRD RSIZE VPRVT VSIZE PGRP PPID STATE UID FAULTS COW MSGSENT MSGRECV SYSBSD SYSMACH CSW PAGEINS KPRVT KSHRD USER

1247 iTunes 0.0 01:43:37 31/1 2 511+ 24545+ 2480M+ 147M+ 2479M+ 23G+ 26G+ 1247 309 running 501 7198510+ 6355+ 2085373+ 643423+ 5902206+ 14143450+ 5281619+ 3164+ 65M+ 198M+ dmac

347 SIMBL Agent 0.0 00:00.54 2 1 88+ 232+ 6556K+ 27M+ 11M+ 343M+ 18G+ 347 309 sleeping 501 8365+ 233+ 23079+ 10611+ 10841+ 21778+ 9264+ 59+ 3361K+ 267K+ dmac

0 kernel_task 0.0 01:50:56 87/4 0 2+ 1101+ 21M+ 0B 786M+ 76M+ 7388M+ 0 0 running 0 14419+ 0 1857220043+ 1827085922+ 0 0 108819072+ 0 -467M+ 0B root

534 firefox 0.0 01:41:01 41 3 237+ 22577+ 388M+ 320M+ 553M+ 640M+ 4554M+ 534 309 sleeping 501 16942119+ 1143571+ 15714011+ 7706714+ 28420945+ 166233736+ 14604306+ 7795+ 13M+ 120M+ dmac

461 WebProcess 0.0 03:46:12 14 3 248+ 6405+ 370M+ 258M+ 526M+ 818M+ 4494M+ 459 459 sleeping 501 21517818+ 14252+ 16014530+ 8788617+ 27627565+ 156094000+ 22771896+ 4472+ 19M+ 4515M+ dmac


While SIMBL Agent has lots of VSIZE, I can see that it's not using the space (VPRVT is reasonable). iTunes, on the other hand is consuming 23G of VPRVT, which is causing the OS to give it swap space 21G of it.


iTunes just kept growing until it got so much swap space that my disk was full. And then the system froze and I had to reboot. When I reboot, the system is fine, of course, because the swap space disappears.


Is anybody else having this problem with iTunes? Would reinstalling iTunes help or must I wait for a new version to be released by Apple?

Aug 29, 2013 4:44 AM in response to inquisitive7

5506257(0) pageouts

How much RAM do you have installed? 8 GB? The pageouts are huge (which would account for the accumulating disk usage > the swap space) , and I don't think it is due to insufficient RAM. This appears to me as just a huge memory leak. The machine isn't freeing up inactive RAM for reuse. Try reinstalling ML from the recovery partition.

Starting a week ago, my hard disk keeps filling up over a 15 minute period

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.