Commit Graph

1710 Commits (59c1f43d3ed2a5c648ecdc83c2313c5f46d04809)
 

Author SHA1 Message Date
shirou 6c6abd6d16
Merge pull request #626 from mznet/manual-available-memory-calculation
Manual available memory calculation
shirou 41128a19e8
Merge pull request #641 from nikita-vanyasin/eliminate-wmi-queries-for-cpu-usage
Eliminate WMI queries when calling cpu.Times with percpu=True
Lomanic 41e774419f
Merge pull request #643 from wcc526/master
Update process_linux.go for Add process ConnectionsMax
wcc526 462e0f6c2f Update process_linux.go for Add process ConnectionsMax
Lomanic 368a865910 [disk][linux] Fix comment in PartitionsWithContext
Lomanic 0d3a2ac515
[disk][linux] Fix comment in PartitionsWithContext
Lomanic b67304da73
Merge pull request #634 from qaz52897/support_old_kernel
Support Linux kernels without /proc/self/mountinfo (<2.6.26)
nikita-vanyasin 59b002e5c2 Fix function naming
nikita-vanyasin 4ef0ddafc7 Eliminate WMI queries when calling cpu.Times with percpu=True
based on e89f2c5fad/internal/monitors/cpu/cpu_windows.go
shirou 9294781cc9
Merge pull request #636 from shirou/feature/update_xswdev_version_freebsd_12
[mem]freebsd: update xswdev_version to adapt FreeBSD 12.
Minje Park c75deb9dc0 debug codes were removed
Minje Park 47ed6aaebd activefile and inactivefile fields were removed from VirtualMemoryStat
shirou b3d992b0f6 [mem]freebsd: update xswdev_version to adapt FreeBSD 12.
JHE a08b926ce6 It could be another error than the "self/mountinfo" missing
JHE 06a21ae66a Fix some issue.
JHE a5cb715e64 if mountinfo not found, use mounts
JHE d141349619 if mountinfo not found, use mounts
JHE a45f6d8a03 if mountinfo not found, use mounts
shirou 0714469421
Merge pull request #593 from nvinzens/master
replace self/mounts with self/mountinfo
shirou 150e391450
Merge pull request #632 from shirou/add_freebsd_arm
add FreeBSD ARM support. copied from i386
Minje Park d23abede78 struct typo and broken test case were fixed
Minje Park d7ce61cac8 Error checks and fallback for old linux
Minje Park 9fb3b9625d mem available fallback under kernel 2.6.13
shirou 64d607539e add FreeBSD ARM support. copied from i386
shirou 7675aac4b0
Merge pull request #631 from shirou/add_created_time_on_windows_to_readme
add created_time on Windows to README
shirou 4a5a3cb6da add created_time on Windows to README
Nico Vinzens 1a7a39a789
Merge branch 'master' into master
shirou 457f04671d [process] move PageFaultsStat to process.go
shirou 98c84ed30a [process]: move HWM to MemoryInfo
at least FreeBSD and Darwin has HWM.
shirou a33a26bd97
Merge pull request #567 from tagirb/grouped_memorymaps
implement grouped memorymaps output
shirou 48b37fa45e
Merge pull request #616 from nefeli/linux_page_faults
[process][linux] Export process page fault info
shirou d94da856e5
Merge pull request #624 from ajacoutot/cpu-openbsd
cpu: implement Mhz and Cores on OpenBSD
shirou faf242fefc
Merge pull request #625 from wcc526/patch-1
Add VmHWM
Minje Park 73545ec820 AvailableMemory is't calculated automatically under kenel 3.14 so it is needed to calcuate manually
manual available memory calculation should be done if only memavail is false

Manual Available Memory calculation under kernel 3.14

accurate manaul available memory calculation
chi-chi weng ec5a8b2a50
Add VmHWM
VmHWM: Peak resident set size ("high water mark").

http://man7.org/linux/man-pages/man5/proc.5.html
Antoine Jacoutot 67297c8791 cpu: prefer cpuonline on OpenBSD
This gives us the value of actual online CPUs (as opposed to the
found ones which may not be able active).
Antoine Jacoutot 7276e963eb cpu: implement Mhz and Cores
Adapted from the FreeBSD code.
Successfully tested with Nomad.
Lomanic db425313bf
Merge pull request #623 from Lomanic/issue621
Fix #621 Add OpenBSD 6.4+ CPU States
Lomanic 56acda8a5b [process][openbsd] Fix compilation on OpenBSD
Lomanic 5f8353c741 [cpu][openbsd] Fix #621, define CPU states according to OpenBSD version
Lomanic 738b966ed1 [host][darwin] Use unix.Sysctl to get kernel version and platform name
Lomanic 8294f67566 [host][openbsd] Remove external calls to uname in PlatformInformation()
Lomanic ccc1c1016b [mem][darwin] Fix #622 include Inactive memory in total calculation in TestVirtual_memory
Lomanic 4104adff3e [process][windows] Fix #466 add SeDebugPrivilege to current process
Lomanic a5ace91cce [process][windows] Propagate context internally
Lomanic e5ca4477a1 [process][windows] WIP #586 use win32 API in process.Exe but fallback on WMI
This method only lets a 32bit program get other 32bit processes exe path
and a 64bit program get other 64bit processes exe path, so we fallback to
the slow (but kind of reliable) WMI calls if we can't access to the other
process module.
shirou 51e6519305
Merge pull request #619 from remeh/dm-name-trim
disk: trim the device mapper name.
Remy Mathieu fda98ebc34 disk: trim the device mapper name.
While reading the value of the file with `ioutil.ReadFile`,
the name is suffixed with a `\n`

Tested on Ubuntu 18.10
shirou d6b9922e03
Merge pull request #617 from mznet/master
SReclaimable should be summed to Cached Memory
David Naylor 414c76f159 [process][linux] Export process page fault info
Add a function for retrieving page fault counts from /proc/[pid]/stat on
Linux.