[Bug 280909] Please add the vm.swap_free sysctl variable
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280909] Please add the vm.swap_free sysctl variable"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280909] Please add the vm.swap_free sysctl variable"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280909] Please add the vm.swap_free sysctl variable"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Aug 2024 16:54:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280909 Bug ID: 280909 Summary: Please add the vm.swap_free sysctl variable Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org top(1) shows the free swap space value using kvm_getswapinfo(3), However, kvm_getswapinfo isn't easily available to languages other than C/C++, like Golang. Since sysctl already exposes the total swap size as vm.swap_total, it would be logical to also also have vm.swap_free sysctl variable. Every time some swap segment usage count would change, or the set of swap segments itself would change, the corresponding in-memory variable would be increased or decreased. -- You are receiving this mail because: You are the assignee for the bug.