From eb52adbbec1234366d6dc5ac1c729e0182176c05 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 8 Feb 2016 22:29:54 +0000 Subject: [PATCH] Raise maximum rate limit --- probe/endpoint/procspy/background_reader_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/endpoint/procspy/background_reader_linux.go b/probe/endpoint/procspy/background_reader_linux.go index 6d4405175..6199ac3d3 100644 --- a/probe/endpoint/procspy/background_reader_linux.go +++ b/probe/endpoint/procspy/background_reader_linux.go @@ -14,7 +14,7 @@ import ( const ( initialRateLimitPeriod = 50 * time.Millisecond // Read 20 * fdBlockSize file descriptors (/proc/PID/fd/*) per namespace per second - maxRateLimitPeriod = 250 * time.Millisecond // Read at least 4 * fdBlockSize file descriptors per namespace per second + maxRateLimitPeriod = 500 * time.Millisecond // Read at least 2 * fdBlockSize file descriptors per namespace per second fdBlockSize = uint64(300) // Maximum number of /proc/PID/fd/* files to stat per rate-limit period // (as a rule of thumb going through each block should be more expensive than reading /proc/PID/tcp{,6}) targetWalkTime = 10 * time.Second // Aim at walking all files in 10 seconds