Commit Graph

17 Commits (ebc97eefea9b062f9f1624c042c98f196fc90248)

Author SHA1 Message Date
shirou b3d992b0f6 [mem]freebsd: update xswdev_version to adapt FreeBSD 12. 6 years ago
Isida Zyun'iti bd7b2f8148 Add mem(laundry) numbers on FreeBSD.
After FreeBSD 11.1, mem number of cached replaced by laundry.

https://reviews.freebsd.org/D8302
7 years ago
Isida Zyun'iti 48da6ade9e Fix FreeBSD total memory.
Like this.
FreeBSD: fix total memory giampaolo/psutil@bd9a58b bd9a58b2af
7 years ago
Daniel Nelson 28b1d7477e
Use uint64 when retrieving vfs.bufspace
On some system using a the uint32 function would return the error
"cannot allocate memory".
7 years ago
Steven Hartland d968f63e51 Eliminate call to swapinfo on FreeBSD
Improve performance by eliminating the fork out to swapinfo on FreeBSD which also helps prevent crashes / hangs due to the outstanding fork crash bug:
golang/go#15658

This also fixes the value reported by SwapMemory and SwapMemoryWithContext on FreeBSD which previously only included the first swap device and also reported the values in terms of 1K blocks instead of bytes.
7 years ago
shirou 4c73494c78 Add WithContext functions. 7 years ago
Steven Hartland 6450c60b61 Eliminate use of sysctl command on FreeBSD
In order to improve performance and help prevent crashes due to the outstanding fork crash bug:
https://github.com/golang/go/issues/15658

Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32.

This also merges OpenBSD and FreeBSD load implementations which are identical.
8 years ago
Shirou WAKAYAMA 57f6aebc7e add Timeout to invoke command and use common.Invoke refs: #201 9 years ago
Shirou WAKAYAMA 613a8a90e1 fixed by golint. 9 years ago
Johan Walles 0d5592714b Fix memory stats on LinuxFreeBSD 9 years ago
Masayoshi Sekimura 3a1fa5dc80 format go program with go 1.5.2 "go fmt" 9 years ago
Nikolay Sivko 075839d9f1 fix imports 9 years ago
Nikolay Sivko d4e648e253 [freebsd] fix SwapMemory for hosts without swap 9 years ago
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 10 years ago
WAKAYAMA shirou be88485e9f mem[freebsd]: fix virtual memory available and used. 10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago