Matthew Dillon wrote:
>         * Flag the swap device being removed and then scan all OBJT_SWAP
>           VM Objects looking for swap blocks associated with the device,
>           and force a page-in of those blocks.  The getpages code for the
>           swap backing store would detect the flag and not clear the swap
>           bitmap bits as it pages-in the data.
> 
>           (Forcing a pagein may force pages to cycle back out to another
>           swap device, so special treatment of the paged-in pages (like
>           immediately placing it in the VM page cache instead of the
>           active or inactive queues) is necessary to reduce load effects
>           on the system.

Uh... so you set the bit that tells you it's allocated to prevent
it being allocated?

When I swap something in and the bit is set, how do I know that it's
in, except that it's not allocated?

In other words, I do what you say... how do I know when the device
has been drained out, vs. being in use?

I think you have to disable swapping to the device some other way,
and then return fromt he "swapoff" only when the bitmap is all zero.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to