From f056ad1633949334fd15da706b2a34adb3a0ec0e Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 17 Aug 2018 11:52:23 +0200 Subject: [PATCH] allow a small amount of cache on low end devices --- policy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policy.go b/policy.go index 1f5805e3b..513ba5416 100644 --- a/policy.go +++ b/policy.go @@ -83,8 +83,8 @@ func init() { defaultBufferSize = -1 // For pipe to use unlimited size case defaultValue: // Env flag not defined. Use default values per CPU-arch. switch runtime.GOARCH { - case "arm", "mips", "mipsle", "mips64", "mips64le": - defaultBufferSize = 0 // Disable pipe caching for low-end devices + case "arm", "arm64", "mips", "mipsle", "mips64", "mips64le": + defaultBufferSize = 16 * 1024 // 16k cache for low-end devices default: defaultBufferSize = 2 * 1024 * 1024 }