Re: swap space
Re: swap space
- Subject: Re: swap space
- From: Justin Walker <email@hidden>
- Date: Fri, 8 Oct 2004 14:57:05 -0700
On Oct 8, 2004, at 13:41, Brian O_Neill wrote:
Please correct me if I'm wrong, but it's my understanding that in
Darwin 7.x dynamic_pager will create brand new swap files of
increasingly larger sizes as swap demand increases.
True.
When it does create a larger file,
When needed; you can review the code in the dynamic pager, which
handles this, to see what "when needed" really means. I think it's a
function of available free space and recent demand, but it's been a
while...
does it transfer the swapped pages to the new file, or does it keep
all files it has created in use?
The latter. Pages are added to available swap files according to
available free space, which (obviously) comes and goes as the system
runs. As the demand for paging space decreases, generally by having
processes exit, more space gets freed up. Depending on other
mysterious algorithms, the pager will "clean up" by moving pages from
later, lightly-used, swap files to earlier swap files, and eventually
remove unused swap files.
Also, is there any function that will return, or a kernel symbol you
can lookup, to determine exactly how many pages have been swapped to
disk. The pstat command is supposed to have a -s option to list this
data, but it is currently non-functional.
Don't know the answer to this one.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Some people have a mental
| horizon of radius zero, and
| call it their point of view.
| -- David Hilbert
*--------------------------------------*-------------------------------*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >swap space (From: Brian O_Neill <email@hidden>) |