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.
nbar - agreed. This is a huge memory leak in iTunes or something that iTunes runs. Something triggers iTunes to gobble up memory and the system responds by allocating more and more swap space until my disk is full. I've reinstalled iTunes and I'll see if it happens again.
When you say "reinstall ML", to what are you referring?
Confirmed - it is iTunes. I'm running iTunes 11.0.5 on Mac OS X 10.8.4. I've reinstalled iTunes from the binaries on apple.com. And whenever I leave iTunes running overnight, at some point it starts sucking up memory and forces swap space to consume all available disk within 15-20 minutes. Note: it runs fine for hours, but at some point encounters an internal error (I'm usually asleep at the time) and eats up all available swap space.
Any clues, guys at Apple? Anybody else seeing this problem?
Or, anybody else having a "disk runs out of space but clears up after a reboot" problem that might actually be the same as my iTunes running beserk problem?
Here's the first few lines from my top output (I have a diagnostic script that starts collecting information as soon as disk availability drops below 97%):
Processes: 170 total, 3 running, 1 stuck, 166 sleeping, 955 threads
Load Avg: 0.35, 0.35, 0.39
CPU usage: 3.12% user, 20.31% sys, 76.56% idle
SharedLibs: 13M resident, 7244K data, 0B linkedit.
MemRegions: 93419 total, 4584M resident, 98M private, 931M shared.
PhysMem: 1238M wired, 3469M active, 3459M inactive, 8166M used, 24M free.
VM: 420G vsize, 1053M framework vsize, 246499(0) pageins, 10436943(0) pageouts.
Swap: 40G + 3608K free.
Purgeable: 45M 42898(0) pages purged.
Networks: packets: 2995692/1743M in, 2975099/1356M out.
Disks: 459910/8943M read, 1039690/56G 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
1696 iTunes 0.0 27:55.39 30 1 470+ 43442+ 2499M+ 105M+ 360M+ 42G+ 45G+ 1696 300 sleeping 501 11164522+ 4343+ 314685+ 94024+ 1697191+ 978976+ 525801+ 564+ 102M+ 33M+ dmac