Re: leaked swap?

From: Konstantin Belousov <kib_at_freebsd.org>
Date: Wed, 15 May 2019 01:38:47 +0300
On Wed, May 15, 2019 at 10:02:51AM +1200, Thomas Munro wrote:
> 1.  As mentioned, you can't list 'em (unlike Linux, where you can just
> ls /dev/shm).  There's a TODO note, but it's not clear whether it's
> best to extend ipcs or create a new userspace tool, and it wasn't
> immediately clear to me how to feed the arbitrary sized results back
> to userspace.  I had a scheme worked out where you'd keep calling a
> sysctl repeatedly to collect the data until it was done, and it'd
> sometimes tell you you need a bigger buffer (because you probably have
> to drain at least a whole hash table bucket at a time), but an
> experienced FreeBSD hacker told me that was BS, and maybe what's
> needed is a device you read.  As well as the list-all-the-segments
> tool, you'd also want to be able to unlink to tidy up.

https://reviews.freebsd.org/D20258
Received on Tue May 14 2019 - 20:38:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC