Commit Graph

1537 Commits (9473d01f0feef8530233305d7381a6b1cf2082c1)
 

Author SHA1 Message Date
Ofek Lev 35ed9c11c7 [disk][linux] add label based on devicemapper name of disk
shirou 63047d776e
Merge pull request #509 from maddie/master
[host] linux/mips: mips64le definition from mipsle
shirou a5c2888e46
Merge pull request #512 from danielnelson/fix-vfs-bufspace-cannot-allocate-memory
Use uint64 sysctl when retrieving vfs.bufspace on FreeBSD
Daniel Nelson 28b1d7477e
Use uint64 when retrieving vfs.bufspace
On some system using a the uint32 function would return the error
"cannot allocate memory".
Maddie Zhan 8c8eeb32d3 [host] linux/mips: mips64le definition from mipsle
Same as commit fc04d2d, but for mips64le from mipsle definition.
It would be nice if anyone can check with the correctness, since the
qemu environment for mips64/mips64le can't run Go properly due to this
issue: https://github.com/golang/go/issues/15416
shirou cd915bdc31
Merge pull request #508 from shirou/issue507
[host] Fix docker uptime parsing (fix #507)
Lomanic 1b47825dcb [host] Fix docker uptime parsing (fix #507)
shirou fc04d2dd9a [host]linux/mips: copy mips64 definition from mips.
It just copy from mips, so it may be corrupt, but I can not check it.
If something wrong, please open an issue.
shirou 27cc4e1e4e
Merge pull request #506 from shirou/add_command_context
change to use CommandContext.
shirou 145dca90f7 change to use CommandContext.
shirou 837fc76f68 [disk] darwin i386: add definition for darwin/386
and change to use Statfs. it is same as freebsd/openbsd.
shirou c3f470a77a
Merge pull request #504 from dimrozakis/linux-used-mem
Always calculate linux used mem as total-(free+buffered+cache)
shirou 1ba5059aca [memory] Linux: add document url about OverCommiting.
shirou a1564d2e89
Merge pull request #478 from DataDog/olivielpeau/commit-vm-stats
[mem] Add commit-related stats to VirtualMemoryStat on Linux
shirou 1fc354628c
Merge pull request #503 from cshunger/patch-1
Fix float64 casting
Dimitris Rozakis 4510db20db Always calculate linux used mem as total-(free+buffered+cache)
Used memory was calculated as Total - Available.
For newer kernels (3.14+), available memory is taken from /proc/meminfo,
whereas for older kernels it is computed as free+buffered+cached.

This commit changes that behavior. Available memory is still taken from
/proc/meminfo, if available, but used memory is always computed as
total-free-buffered-cached.

This way, it matches the output of `free` for used memory (in the -/+
buffers/cache line) and other tools.

Prior to this change, I'd see a reported used memory of 600MiB whereas
free, htop and other tools would report a used memory of 1.8GiB. And
adding used, cached, buffered and free memory would leave ~1.2GiB
unaccounted for.
Chevy 699deed6c6
Fix float64 casting
shirou b99342a9ce [host] fallback: implement PlatformInformation()
shirou 26a4a2f995 [process]: move ErrorNoChildren to platform independent.
shirou ebe614f6e1 [solaris] host: add PlatformInformation() which is missing.
shirou 12394ccbca
Merge pull request #502 from lclarkmichalek/master
Use static initialisation for invoke instances, instead of init funcs
Laurie Clark-Michalek 413cb32b6c Use static initialisation for invoke instances, instead of init funcs
The order of init function execution is dependant on the order that the
source files are passed to the compiler. This causes issues when
building under other build systems, such as bazel or buck, as they are
not guarenteed to maintain the same file order as the default go tool.
shirou 6b5767f15e
Merge pull request #501 from HeChuanXUPT/fix_docker_uptime
fix docker uptime
linuxhe ee5d6a3d8f fix docker uptime
shirou d76e8c18d8
Merge pull request #496 from shirou/add_docker_to_use_btime
[host] linux: use uptime even if docker guest.
shirou dd850b1aa1
Merge pull request #498 from stevenh/host-freebsd
Eliminate call to uname on FreeBSD
shirou 6ce2ace794
Merge pull request #497 from stevenh/freebsd-mem
Eliminate call to swapinfo on FreeBSD
Steven Hartland f846eda923 Eliminate call to uname on FreeBSD
Improve performance by eliminating the fork out to uname on FreeBSD which also helps prevent crashes / hangs due to the outstanding fork crash bug:
golang/go#15658

Also added a test for PlatformInformation.
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.
shirou 28f7cb0d63 [host] linux: use uptime even if docker guest.
shirou 5776ff9c7c
Merge pull request #494 from schmichael/patch-1
typo: wich -> which
Michael Schurter b11d0a7942
typo: wich -> which
shirou 12ab94e804
Merge pull request #493 from maihde/issue-492
Resolve issue #492 to reduce CPU overhead associated with fillFromStat
Ihde 44ef466a5a Resolve issue #492 to reduce CPU overhead associated with fillFromStat
shirou 543a05cce0 fix psutil URL.
shirou 32a44bdc39
Merge pull request #488 from sadag/master
windows: fix WithContext functions
shirou 9a74b6fe2e [cpu]windows: fix retrun value.
shirou 234a591899
Merge pull request #487 from truthbk/fix-win-race
[host] fix race condition to ret
sada 8dd42707e2 windows: fix WithContext functions
set timeout only if parent context doesn't set.
Jaime Fullaondo 178e5ce997 [host] fix race condition to ret
shirou c432be29cc
Merge pull request #485 from cshunger/linux-temperature
Linux temperature
CHEVY S. HUNGERFORD 29f8dfa1ad fixing SensorKey output
CHEVY S. HUNGERFORD 1c4fa5628c giving temperature more verbose output
shirou 4ac6b5b4d3 Revert "Merge pull request #470 from improbable-io/bug-darwin-build-2"
This reverts commit bb09b4e7d9, reversing
changes made to 6a368fb7cd.
shirou bb09b4e7d9
Merge pull request #470 from improbable-io/bug-darwin-build-2
Fix build with bazel on OSX attempt 2 (add stub for host_cgo.go)
Tatiana Borisova 945c2f41de Fix host_cgo file
Tatiana Borisova a271cb7c1c Fix package name in host_cgo.go
shirou 6a368fb7cd [process]: add ProcessesWithContext.
shirou 079e1cb22f [internal]Windows: skip Host test.
shirou 2ae56c34ce
Merge pull request #480 from shirou/feature/add_context_support
Add WithContext functions.