NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56332: swap on 4k sector device uses only 1/8 of the configured capacity



The following reply was made to PR kern/56332; it has been noted by GNATS.

From: Tobias Nygren <tnn%nygren.pp.se@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/56332: swap on 4k sector device uses only 1/8 of the
 configured capacity
Date: Wed, 4 Aug 2021 18:05:20 +0200

 Seems there are some issues with the patch.
 I created 8 GiB swap on a 4k sector NVMe device on 4 GiB RAM aarch64.
 swapctl does reports correct size now.
 Then I started untaring multiple copies of pkgsrc to tmpfs.
 Eventually the system grinds to near halt and top shows this:
 
 Memory: 28K Inact, 4K Wired, 256K Exec, 28K File, 1380K Free
 Swap: 8192M Total, 3652M Used, 4540M Free
 
 tmpfs          8.2G   3.8G   4.4G  46% /tmp
 
 There is clearly more swap available but all of the system
 RAM pages have leaked somewhere and are no longer accounted for.
 Unmounting /tmp released the all of the used swap but
 only 50 MiB of system memory came back to the free list.
 


Home | Main Index | Thread Index | Old Index