Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2024 16:54:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280909] Please add the vm.swap_free sysctl variable
Message-ID:  <bug-280909-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280909-227>