leaked swap?
Konstantin Belousov
kib at freebsd.org
Tue May 14 22:38:56 UTC 2019
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
More information about the freebsd-current
mailing list