Commit Graph

166 Commits (d1977251f924c9b034bdaba452890d38a87aeaf0)

Author SHA1 Message Date
Shirou WAKAYAMA 202a805f46 mem[darwin]: fix printf verb. 10 years ago
Cameron Sparr 6cd8284b30 When MemAvailable is in /proc/meminfo, use it (kernel 3.14+) 10 years ago
shirou c1313e7634 Merge pull request #82 from influxdb/darwin-mem
Use vm_stat command on darwin to get memory
10 years ago
Cameron Sparr 4bba3025ca Use vm_stat command on darwin to get memory
This has the benefit of allowing us to also grab the cached memory so
that we can get an "available" measurement
10 years ago
WAKAYAMA shirou be88485e9f mem[freebsd]: fix virtual memory available and used. 10 years ago
Cameron Sparr ce70817f55 Fix memory reporting for linux systems
/proc/meminfo reports memory in KiloBytes and so needs a multiplier of
1024 instead of 1000.
The kernel reports in terms of pages and the proc filesystem is left
shifting by 2 for 4KB pages to get KB. Since this is a binary shift,
Bytes will need to shift by 10 and so get multiplied by 1024.

From the kernel code. PAGE_SHIFT = 12 for 4KB pages
"MemTotal:       %8lu kB\n", K(i.totalram)

Thanks to @subhachandrachandra!
10 years ago
Myungjun Kim c5b94d3e4c memory[darwin]: return value of "sysctl hw.memsize" is memory size in bytes. 10 years ago
Shirou WAKAYAMA a9e65ec556 mem[darwin]: fix VirtualMem stat multiply. 10 years ago
Nikolay Sivko 06282a319c [darwin] hw.memsize already in bytes 10 years ago
若山史郎 cea341c690 mem: add 0 check to darwin.swapmem. 10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
Shirou WAKAYAMA 1cb67eb4c2 merge 039b9defab 10 years ago
Shirou WAKAYAMA 16de570414 merge 039b9defab 10 years ago
WAKAYAMA Shirou 9f2c985a28 fix windows build. 10 years ago
WAKAYAMA shirou d11680c773 fix bugs on FreeBSD. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago