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



At 3:10 PM -0700 6/21/01, Peter Bierman wrote:
>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.


Rebooting does seem to do the job, but it also sounds like I should be able to simply quit the most memory-hogging processes and after about ?? minutes I should find that a swap file or two or more have been deleted.


References: 
 >Re: deleting swap files (From: Peter Bierman <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.