Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deleting swap files



>Which leads me to these questions:
>
>if Darwin isn't deleting unused swap files that's a bug, right?
>how do I know if a swap file is being used or not?
>if I think unused swap files are laying around, is the best recourse to reboot?
>I doubt that I should delete a swap file, but I'll ask: how bad is that?


The VM system does keep track of which swap files are in use, it will remove files that are not in use, and when they become "mostly unused", it will attempt to migrate the still valid data in the file to a new file, and remove the old one.

So yes, if you need that space back, the best process is to reboot.

If you delete a swap file yourself on a running system, very bad things will happen, just as if you had removed a RAM DIMM from the running machine.

-pmb


References: 
 >deleting swap files (From: Troy Goodson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.