aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-20 15:45:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-21 09:22:22 +0100
commit22238b0b79fc80d9a0218f8bf9ecf3e91401bd12 (patch)
tree4070bfdb691f726ed702abe71074ac2aecc36f40
parenta7ae31ed14a28ec2501e4113578ef3cee6020a75 (diff)
dashboard/app: increase text entity size limit
Increase text entity size limit from 2MB to 10MB. In preparation for dumping /proc/lockdep* files in vm.Diagnose. A typical log file I am getting with lockdep info is ~5MB which compresses to ~500KB.
-rw-r--r--dashboard/app/api.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dashboard/app/api.go b/dashboard/app/api.go
index f802603d8..c12808441 100644
--- a/dashboard/app/api.go
+++ b/dashboard/app/api.go
@@ -1150,7 +1150,9 @@ func putText(c context.Context, ns, tag string, data []byte, dedup bool) (int64,
return 0, nil
}
const (
- maxTextLen = 2 << 20
+ // Kernel crash log is capped at ~1MB, but vm.Diagnose can add more.
+ // These text files usually compress very well.
+ maxTextLen = 10 << 20
maxCompressedLen = 1000 << 10 // datastore entity limit is 1MB
)
if len(data) > maxTextLen {