[OSX-Users] Re: spotlight or mail piggy-ness?

Steve Harris swh at ecs.soton.ac.uk
Fri Apr 24 15:57:42 BST 2009


On 24 Apr 2009, at 15:20, Philip Boulain wrote:

> On 24 Apr 2009, at 15:07, m.c. schraefel wrote:
>> -rw-------@  1 mc    staff     15364 17 Apr 17:59 .DS_Store
>> drwx------   3 mc    staff       102 23 Apr 09:34 .Spotlight-V100
>>
>> is there somewhere i should be poking to see what's going on to be ?
>
> .Spotlight-V100 is a directory, so try
>
> du -hc .Spotlight-V100

That's true, but I think Mail maintains it's own index and spotlight  
asks that, could be wrong though. My spotlight index is 1.2GB, so  
maybe it's time for a clearout.

If you know the PID of a process, you can find how big all the files  
it has open are with:
lsof -p $PID | sed '/REG/!d; s/.* \//\//; s/^/"/; s/$/"/' | xargs du - 
h -d0

you can get PIDs from ActivityMonitor or
$ ps auwwx | grep -i {program name}

I think mine is in "~/Library/Mail/Envelope Index" but it's only 40 meg.

- Steve


More information about the Osx-users mailing list