Date: Sun, 18 Aug 2024 09:56:01 -0700 From: Yuri <yuri@FreeBSD.org> To: freebsd-hackers@freebsd.org Subject: Re: Can free swap size be determined from the sysctl information ? Message-ID: <71c9c750-4eb2-427b-8b88-e5b21dfd7400@FreeBSD.org> In-Reply-To: <d13959dd-61a4-4081-959a-bc5db1a202fb@aetern.org> References: <6076fe34-eb23-47cc-8bd2-6000ddf0a091@FreeBSD.org> <d13959dd-61a4-4081-959a-bc5db1a202fb@aetern.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 8/18/24 02:35, Yuri Pankov wrote: > And kvm_getswapinfo_sysctl() in lib/libkvm/kvm_getswapinfo.c has all > the calculations used, someone (tm) just needs to translate it to Go. > I am suggesting to add the sysctl variable vm.swap_free: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280909 Thank you, Yuri [-- Attachment #2 --] <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix"> <p>On 8/18/24 02:35, Yuri Pankov wrote:</p> </div> <blockquote type="cite" cite="mid:d13959dd-61a4-4081-959a-bc5db1a202fb@aetern.org"> <p>And kvm_getswapinfo_sysctl() in lib/libkvm/kvm_getswapinfo.c has all the calculations used, someone (tm) just needs to translate it to Go.</p> </blockquote> <p><br> </p> <p>I am suggesting to add the sysctl variable vm.swap_free:</p> <p><a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280909">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280909</a></p> <p><br> </p> <p>Thank you,</p> <p>Yuri</p> <p><span style="font-family:monospace"><br> </span></p> </body> </html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71c9c750-4eb2-427b-8b88-e5b21dfd7400>
