On 2022/03/12 11:35, Martin Pieuchot wrote:
> Try to allocate the buffer before doing the encryption, if it fails we
> do not spend time doing the encryption. This reduce the pressure when
> swapping with low memory.
Done a couple of ports bulk builds with this on i386, no problems seen.
> Date: Sat, 12 Mar 2022 11:35:09 +0100
> From: Martin Pieuchot
>
> Try to allocate the buffer before doing the encryption, if it fails we
> do not spend time doing the encryption. This reduce the pressure when
> swapping with low memory.
>
> ok?
Makes sense to me; ok kettenis@
> Index: uvm/u
Try to allocate the buffer before doing the encryption, if it fails we
do not spend time doing the encryption. This reduce the pressure when
swapping with low memory.
ok?
Index: uvm/uvm_swap.c
===
RCS file: /cvs/src/sys/uvm/uvm_swap