Re: uvm_swap compression patch

Takashi YAMAMOTO <[email protected]> Thu, 2 Jul 2026 16:54:00 +0900
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <CAKDaYtB3D4nneZEsnP9KQ2hyUVtqMyLBGpih7L3CumCPhQx0VA@mail.gmail.com>
hi,

On Thu, Jul 2, 2026 at 4:04=E2=80=AFAM Reinoud Zandijk <[email protected]>=
 wrote:
>
> Dear folks,
>
> as part of a compressed ram experiment I'd like to try, I've first cleane=
d up
> the current uvm swap support for I noticed that the support for encrypted=
 swap
> became distributed and not logical anymore. In the attached patch I've
> contracted the encrypted support into the /dev/drum device and removed it=
 from
> the specific swap support and callbacks.

with the cost of an extra allocation for the common case?
(just a question)

> I've tested it using read/write on /dev/drum and tested it for swapping o=
n
> amd64 using plain and encrypted forms. One point of discussion could be t=
hat
> writing to /dev/drum from userland could be allowed or not. In the curren=
t
> patch its allowed
>
> Any thouhts? I'd like to commit it.
>
> With regards,
> Reinoud
>