Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 1995 20:52:05 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        davidg@Root.COM, luigi@labinfo.iet.unipi.it
Cc:        hackers@FreeBSD.org
Subject:   Re: swap always use at least 64KB ?
Message-ID:  <199504051052.UAA16461@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>which is kind of curious, as the machine has 16 MB ram and almost
>>no activity going on... Swap partition, when in use, are always
>>reported with at least 64 KB in use.
>>
>>Is there any explaination ?

>   The first swap block is always pre-allocated. This was done to work around
>a problem with people putting their swap partition at the beginning of their
>disk (the system would happily try to destroy the label). I suppose it would
>be better to change swapinfo/pstat to not include the first block of swap
>space in its report.

There must be bugs in the write protection of the label for that to happen.

The diskslice "driver" snoops on writes to label sector(s) and rejects
writing of invalid labels even when write protection is off.

Similar snooping is required for protecting the MBR and secondary BR's.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504051052.UAA16461>