Re: Swap encrypt under memory pressure

2022-03-15 Thread Stuart Henderson
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.

Re: Swap encrypt under memory pressure

2022-03-13 Thread Mark Kettenis
> 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:

Swap encrypt under memory pressure

2022-03-12 Thread 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? Index: uvm/uvm_swap.c === RCS file: