Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932429AbdIGSoR (ORCPT ); Thu, 7 Sep 2017 14:44:17 -0400 Received: from mail-yw0-f170.google.com ([209.85.161.170]:35524 "EHLO mail-yw0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932095AbdIGSoO (ORCPT ); Thu, 7 Sep 2017 14:44:14 -0400 X-Google-Smtp-Source: ADKCNb7zyBDo3WdKzQSrutU/Rsund55lQpur6BZovNqHFotVwi2+189I/pdsvz+knCqAqCnBa4vEIhvMg6/uSQgQUCc= MIME-Version: 1.0 In-Reply-To: <20170830105524.GA2852@castle.dhcp.TheFacebook.com> References: <20170829100150.4580-1-guro@fb.com> <20170829192621.GA5447@cmpxchg.org> <20170830105524.GA2852@castle.dhcp.TheFacebook.com> From: Shakeel Butt Date: Thu, 7 Sep 2017 11:44:12 -0700 Message-ID: Subject: Re: [PATCH] mm: memcontrol: use per-cpu stocks for socket memory uncharging To: Roman Gushchin Cc: Johannes Weiner , Linux MM , Michal Hocko , Vladimir Davydov , cgroups@vger.kernel.org, kernel-team@fb.com, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 411 Lines: 10 >> As far as other types of pages go: page cache and anon are already >> batched pretty well, but I think kmem might benefit from this >> too. Have you considered using the stock in memcg_kmem_uncharge()? > > Good idea! > I'll try to find an appropriate testcase and check if it really > brings any benefits. If so, I'll master a patch. > Hi Roman, did you get the chance to try this on memcg_kmem_uncharge()?