Commit Graph

917 Commits (3e79194fe22eb701e00916d2fb465d01a4bd2b66)
 

Author SHA1 Message Date
Sean Chittenden 3e79194fe2
windows.EINVAL doesn't exist, only syscall.EINVAL. 8 years ago
Sean Chittenden 635b971c0e
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
shirou e30b7839cd Merge pull request #379 from magiconair/fix-host-boottime-race
Fix data race in host.BootTime
8 years ago
Frank Schroeder a9e803ef6a
Fix data race in host.BootTime 8 years ago
shirou 3e0b91b57e Merge pull request #375 from astj/linux-reduce-lstat-syscalls
Reduce unnecessary syscalls on common.NumProcs() in Linux
8 years ago
Asato Wakisaka 16a38100b3 NumProcs() just counts files under f, so use f.Readdirnames to avoid `lstat` syscall inside f.Readdir. 8 years ago
shirou fd7db8b441 Merge pull request #372 from tmm1/linux-proc-mounts
Read disk partitions on linux from /proc/mounts instead of /etc/mtab
8 years ago
Aman Gupta a08587b348 Update disk_linux.go 8 years ago
Aman Gupta e346d3829a remove obsolete comment 8 years ago
Aman Gupta 5e1770d1f2 read disk partitions on linux from /proc/mounts intead of /etc/mtab 8 years ago
WAKAYAMA shirou b6da2bd76e [freebsd] cpu: fix CPUInfo on 10.3R
Related: #307
8 years ago
shirou 37c114fe6c Merge pull request #366 from tmm1/patch-2
Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes
8 years ago
shirou 19b101bb53 Merge pull request #365 from tmm1/patch-1
Include "DRIVE_REMOTE" volumes on windows
8 years ago
Aman Gupta f2cbbac707 Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes 8 years ago
Aman Gupta b59c2a2be3 Include "DRIVE_REMOTE" volumes on windows 8 years ago
shirou f7c38fa2f8 Merge pull request #361 from ablagoev/read-proc-files-with-a-single-read
Read /proc/net files with a single read syscall.
8 years ago
Alexander Blagoev b32353f094 Add comments with a short explanation and link to the PR request 8 years ago
Alexander Blagoev 531f9507d2 Read /proc/net files with a single read syscall.
The /proc/net files are not guaranteed to be consistent, they are only
consitent on the row level. This is probably one of the reasons why
consequent read calls might return duplicate entries - the kernel is
changing the file as it is being read. In certain situations this might
lead to loop like situations - the same net entry is being returned when
reading the file as new connections are added to the kernel tcp table, i.e
there can be a lot of duplications.

This commit is trying to reduce the duplications, by fetching the contents
of the net files with a single read syscall.
8 years ago
shirou 119305b4ce Merge pull request #359 from shirou/fix_circleci
trying to fix CircleCI
8 years ago
WAKAYAMA Shirou 12c6e9d755 add chown golang pkg dir. 8 years ago
WAKAYAMA Shirou 8ef142ddde remove unnecessary circle.yml 8 years ago
WAKAYAMA Shirou b9227ed559 fix typo of circle.yml 8 years ago
WAKAYAMA Shirou f5cd65356f update circle.yml to use golang1.8 8 years ago
WAKAYAMA Shirou ad1f130d0f update README about golang 1.8 is required. 8 years ago
shirou c251591dc7 Merge pull request #355 from sean-/fix-lint-errors
Fix lint errors
8 years ago
shirou 772ab1fdbc Merge pull request #354 from sean-/fix-cmd-leak
Improve Command() handling and signal handling for launched processes.
8 years ago
shirou 9af92986dd Merge pull request #358 from ablagoev/optimize-net-connections
Fromat socketType properly in tcp duplication check key
8 years ago
Alexander Blagoev 5a0a97f400 Fromat socketType properly in tcp duplication check key 8 years ago
shirou b066db40c7 Merge pull request #356 from ablagoev/optimize-net-connections
Optimize memory usage for net.Connections on Linux
8 years ago
Alexander Blagoev 11e78812ae Build duplicate tcp connection ID in Connections for better readbility 8 years ago
shirou 9a4a9167ad Merge pull request #357 from ablagoev/fix-proc-net-dev-parsing
Improve /proc/net/dev parsing to include all edge cases
8 years ago
shirou 1f6e626a22 Merge pull request #353 from shirou/fix_352
[linux]host: change to use filepath.Join
8 years ago
Alexander Blagoev f7dd4f97c7 Improve /proc/net/dev parsing to include all edge cases 8 years ago
Alexander Blagoev 51e4fb77cf Add socket state to TCP connection key 8 years ago
Alexander Blagoev daaadd4f1e Optimize memory usage for net.Connections on Linux 8 years ago
Sean Chittenden 23a4ae3369
`gofmt -s -w .` 8 years ago
Sean Chittenden d0e40ff723
Fix issues reported by golint. 8 years ago
Sean Chittenden 3834908232
Improve Command() handling and signal handling for launched processes. 8 years ago
Shirou WAKAYAMA cdcb9bb2ed [linux] host: fix typo 8 years ago
WAKAYAMA Shirou 25d50d5bc3 [linux]host: change to use filepath.Join 8 years ago
shirou 70693b6a3d Merge pull request #351 from danielnelson/io-counters-for-names
Make IOCounters a variadic function
8 years ago
Daniel Nelson 3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
8 years ago
WAKAYAMA Shirou dfbb3e40da fix build bugs. 8 years ago
Shirou WAKAYAMA fee973abda [linux]host: fix HostTempreture func 8 years ago
shirou 8e36fe6d8f Merge pull request #334 from dotpy3/macos-linux-temperatures
Added temperatures sensors for macOS and Linux
8 years ago
shirou f5781cab54 Merge pull request #347 from danielnelson/io-counters-for-names
Add disk.IOCountersForNames function
8 years ago
Daniel Nelson ab6db76df1
Fix IOCountersForNames on darwin 8 years ago
Daniel Nelson 3f35f001da
Add disk.IOCountersForNames function
Operates like disk.IOCounters, but accepts an array of names to limit
the results.
8 years ago
WAKAYAMA Shirou e49a95f3d5 [host]darwin: PlatformInformation has been 5 values other is 4. 8 years ago
shirou 08ade552e3 Merge pull request #336 from rburchell/master
disk_darwin: Add support for IOCounters using IOKit
8 years ago