Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50fdec65 authored by T.J. Mercier's avatar T.J. Mercier
Browse files

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
parent 9bd45cf3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -315,6 +315,7 @@ Result<void> ServiceParser::ParseSharedKallsyms(std::vector<std::string>&& args)
}

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";
    }