Matthieu MOREL
06e4051c91
enable testifylint linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
shirou
e9591b5b01
rename redundant test function names, such as TestCPU in cpu package
10 months ago
shirou
bc060cc227
add SPDX License, remove old build tag, and replace import
10 months ago
Kevin Conaway
7f4efa5358
Add support for reading AnonHugePages from /proc/meminfo
...
This commit adds support for reading the `AnonHugePages` field from `/proc/meminfo`.
The values in this field allow monitoring the [THP](https://www.kernel.org/doc/Documentation/vm/transhuge.txt ) usage by systems that use this type of memory
2 years ago
Matthieu MOREL
1fb1e3e3e6
ci(lint): correct gci linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 years ago
Steve Zhang
cf62eac8f9
The current codes miss below statistic data under solaris/illumos:
...
1. the disk io statistic data as: nread, nwritten, reads, writes, rtime, wtime;
2. the free memory under global zone;
3. the net io statistic data as: rbytes64, ipackets64, idrops64, ierrors, obytes64, opackets64, odrops64, oerrors.
The new feature branch adds the above missing statistic data based on the psutil project (https://psutil.readthedocs.io/ ), it has been tested under solaris ( Oracle Solaris 11.4 X86) and illumos (OmniOS v11 r151044).
2 years ago
shirou
23f85def9b
[mem]: fix test
3 years ago
Matthieu MOREL
b673968d5d
enable errorlint linter
3 years ago
shirou
0969c9436b
delete v2 directory, move v3 to top #1078
3 years ago
Tom Barker
84a665b712
Add mem.SwapDevices() method.
4 years ago
Lomanic
4cfc60d68b
Merge pull request #928 from Lomanic/skip-tests-when-not-implemented
5 years ago
Tobias Klauser
62354ea032
Fix TestVirtual_memory on OpenBSD
...
On OpenBSD, the total is used + free + cached + inactive like on macOS.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
5 years ago
Lomanic
ea86cbc3ff
[mem] Skip tests on non-implemented platforms #446
5 years ago
James Bebbington
16fdb92bfc
Add pgmajfault to data returned by vmstat on Linux
5 years ago
Minje Park
b7f9acbce8
add unreclaim metric, this closes #719
6 years ago
lootek
1cbb212a6b
Add pages in/out/fault statistics (as read from vmstat)
6 years ago
WAKAYAMA shirou
bb15c85289
[mem][freebsd]: add SysctlUint which can adapt both 32 and 64 bit
6 years ago
Lomanic
ccc1c1016b
[mem][darwin] Fix #622 include Inactive memory in total calculation in TestVirtual_memory
6 years ago
Minje Park
f9e238c38b
SReclaimable should be added to Cached Memory
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
Lomanic
6b586d2fcd
[mem][windows] Fix TestVirtual_memory test
7 years ago
shirou
6b48f3bd01
[mem] fix test.
7 years ago
Arnaud Rebillout
558a95bf02
Fix TestVirtual_memory #552
...
Based on https://stackoverflow.com/a/30772733/776208
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
7 years ago
shirou
9937d4109d
mem[linux]: fix test.
7 years ago
Olivier Vielpeau
5b52fbbea5
[mem] Add commit-related stats to VirtualMemoryStat on Linux
7 years ago
James Nugent
d19ac24a84
mem: Skip TestVirtual_memory on Solaris
8 years ago
Maxime Mouial
4a1d5da977
Add 'SwapCached' to the VirtualMemoryStat informations on linux
8 years ago
Maxime Mouial
44e27c6972
Add Slab, Shared and PageTables metric for VirtualMemory under linux
8 years ago
kthommandra
1fd3a4dbad
Added the writeback, dirty and writebacktmp fields from /proc/meminfo on Linux
9 years ago
Shirou WAKAYAMA
4bb84648bf
JSON representation is renamed to fit Google JSON style, camelCase.
9 years ago
Johan Walles
4438159155
Document + add tests for for mem.VirtualMemory()
...
This change changes and documents the (previously undocumented) behavior of Used
to "RAM used by programs".
We also remove the undocumented and unused Shared field of that struct.
So with this change in place, the VirtualMemoryStruct contains:
* three human-consumable fields for Total, Used and Available memory
* one human-consumable UsedPercentage field
* a number of kernel specific fields
9 years ago
Shirou WAKAYAMA
13cd195a7e
change package name.
10 years ago
Shirou WAKAYAMA
1cb67eb4c2
merge 039b9defab
10 years ago
Shirou WAKAYAMA
a4671fcc2a
move subdirectories. refer to issue #24
10 years ago