shirou_gopsutil/net
Conor Branagan 198e65c801 Add ConnectionsMax function that limits connections per pid.
The goal is to improve performance of connection fetching connections across
all processes when some processes can have several hundred or thousands of file
descriptors. Right now when you have many thousands of fds the process spends
lots of time inside the syscalls from Readdir and Readlink.

The public API works as before with two new functions:

- `ConnectionsMax`
- `ConnectionsPidMax`

Each function takes an additional int argument that sets the max number of fds
read per process.
2016-12-11 13:05:40 -05:00
..
net.go add Uids field to net_linux 2016-10-06 14:50:03 +02:00
net_darwin.go only run ifconfig/netstat if necessary, add some tests 2016-09-04 16:37:28 +02:00
net_darwin_test.go only run ifconfig/netstat if necessary, add some tests 2016-09-04 16:37:28 +02:00
net_fallback.go Add support for OpenBSD/amd64 2016-11-24 22:30:29 +01:00
net_freebsd.go add Timeout to invoke command and use common.Invoke refs: #201 2016-05-20 17:59:41 +09:00
net_linux.go Add ConnectionsMax function that limits connections per pid. 2016-12-11 13:05:40 -05:00
net_linux_test.go Add ConnectionsMax function that limits connections per pid. 2016-12-11 13:05:40 -05:00
net_openbsd.go Add support for OpenBSD/amd64 2016-11-24 22:30:29 +01:00
net_test.go fix net_test.go 2016-10-06 15:46:14 +02:00
net_unix.go fixed by golint. 2016-04-01 21:34:39 +09:00
net_windows.go Fix NetIOCounter windows interface behavior 2016-10-25 16:51:40 +01:00