From: Venky Shankar Date: Thu, 8 Nov 2018 12:58:37 +0000 (+0530) Subject: mds: disallow dumping huge caches to formatter X-Git-Tag: v14.1.0~685^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6be2ce98c629d2cfe9d8443659e59600148b7675;p=ceph.git mds: disallow dumping huge caches to formatter Dumping huge caches (~ 1G) to formatter causes mds to hang or get terminated. Until the underlying issues is fixed, disallow dumping cache if cache usage exceeds this threshold. Also, Patrick feels a similar issue might be hiding there for cache dumps to file when cache sizes are really huge. This case has not been been reproduced yet, hence, the limit for cache dumps to file is currently kept not capped. Fixes: http://tracker.ceph.com/issues/36703 Signed-off-by: Venky Shankar --- diff --git a/src/common/options.cc b/src/common/options.cc index c10f459884da..4b84646f1915 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7353,6 +7353,16 @@ std::vector