init: Warn about future deprecation of memcg.swappiness
This memcg feature is not supported in v2, which is now the default.
While memcg v1 is still currently supported, we don't think there are
any existing users which depend on this swappiness behavior. Let's warn
about it's future deprecation now.
Bug: 393020526
Change-Id: Ia2c6a77cb88bb97248e395ce9d60fd81af5384e8
diff --git a/init/service_parser.cpp b/init/service_parser.cpp
index 4c31718..bd69300 100644
--- a/init/service_parser.cpp
+++ b/init/service_parser.cpp
@@ -315,6 +315,7 @@
}
Result<void> ServiceParser::ParseMemcgSwappiness(std::vector<std::string>&& args) {
+ LOG(WARNING) << "memcg.swappiness is unsupported with memcg v2 and will be deprecated";
if (!ParseInt(args[1], &service_->swappiness_, 0)) {
return Error() << "swappiness value must be equal or greater than 0";
}