Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9416341ybl; Fri, 17 Jan 2020 11:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyAJ0srRqJkF6KK3lmA9u8PMROOlX/V/XrZdJRX45GcGmKP9/k0s1IBC+sH/syAkjO7IF4k X-Received: by 2002:a05:6808:b13:: with SMTP id s19mr4426437oij.119.1579289778746; Fri, 17 Jan 2020 11:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579289778; cv=none; d=google.com; s=arc-20160816; b=HAuUSMpTBlTLXOLFZLan6fC4Yf2nQZVJTemNHn6HKFSb2s5AG3TDJnujRGNi+N5OeN pwgLKgxIl/S9nzCY7iReyey6/pV/lqQlZESEZ12g797MK216/4jUISeQAFPBoCn/1Lk+ gCwPg3dZ6nV+zzlchn3UQLDo36AMYcXIPKiqn4zTc7YkPFpvR5nnlq5yJhWViQC+dHhL toySlLDslAB3ca6xIboI/bzU/Z7F7Ik5YuDuSvCfCB2RW7PAQSa/blqhSn84XRrixRWz 6F8UiABe5JYhf5mzf3KRDIKaNWpHeLOovWO136ZE+oIIKuMIYR+DMIsglsEWixJmOd3/ dUtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wnbjoT0j5ag9BS3W7d99gmYHDerGz9fZIduxI8d9DlM=; b=kWk1G+G1rAm31u9C2pZ+XK+I+KHCARCfjVmv4ZbUSVh3WzOlY2Wak7r/5tOHuRTGcd Jh+7nX7WhXy4O0blK4QKC1OClKdmBcQcYXAG4lIFwDc7YdBltxhOELWVaQplYjCAD+O0 kiv8XAjwH6LetPtgMimFl/FmubXIzeBhnmBLv4QLsWzvrr/LAWD/iDOFi8qaBwEC/meF ueSnGl8GLW22F8Xr3KFNw+2GMCr0UBsAkoCUD/KSkHZPxeeef95bz1uwTpxrG/kMgtgi /brSFGpGPB5tgNNeXCPQ5iUv9ztBvmS1Q6ufzIyoalmFOqujd/+83DIr0IbPXEaODL3t zYGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TT8zNjpu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si13929828oie.196.2020.01.17.11.36.07; Fri, 17 Jan 2020 11:36:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TT8zNjpu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729678AbgAQTev (ORCPT + 99 others); Fri, 17 Jan 2020 14:34:51 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:46427 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729674AbgAQTeu (ORCPT ); Fri, 17 Jan 2020 14:34:50 -0500 Received: by mail-oi1-f193.google.com with SMTP id 13so23171662oij.13 for ; Fri, 17 Jan 2020 11:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wnbjoT0j5ag9BS3W7d99gmYHDerGz9fZIduxI8d9DlM=; b=TT8zNjpuzdDlDWtxUF3ROPfakHa88TVeTCCzR5vCXgxUY7gnjtDdV908bvnyE5y4oV QU36Uh70B8zBcLbEC5WsV9OQuSgknaM4MnZ+6jDRyDTKzq1HngpAdAAs3mElPkgX1Ngs w8RxWNVZZmLjGd/pbBFQ57NF0JHpuxd7a1wSLqAAJwqSwurny5s+HaCNXAxlSd2TrGbE I0HJnlRsjj6jLQu5Cu7qeoUYEz1c4KM83fzEb63Qt4ALXNdDhAqG60fYhmckugqonIpN Q31HLAuMmqxdrdOBjnJmAuE2XH93asNdBTd9rXjxonqLYa1bomCyyydoau0rPmn4pocx 0aNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wnbjoT0j5ag9BS3W7d99gmYHDerGz9fZIduxI8d9DlM=; b=G7Y5yeFPTMlAKdAgjhLO0uC3Ko0DNf+H8dFqrMjvUIjjqrnI0Z2l6fmXP3pBm+gpz3 Eul0aTa1MRd5edQFji93vU6ZwCSNqL8rT/801M7gVhI4V6yTiLx4AtBbZNZBw7G514X/ xq/KAVjucTIBJEuv8LRHEuRofnEyHqJdUpmIIkEzSgEKWR2CrBcAGZkqLP6zr/YoHu8c KzOCB+F+8qjDZduXhxTfy/pbQ6GFqDT6yoshoN8vBgokYKVkvs37fjuxdbsDj36Kuqom mG3cEouXS8B98znnorWcNYJyJ2o3KRU8VP1T9v9K+wYee1gM7n1yx25sTFOk7UFUkEp/ layQ== X-Gm-Message-State: APjAAAXjff752BU2wqsD7S4hrg0VDRLvecJN3TzN2AxJIzsOX2Cq2o2X 3xXqhE8VZzjTcUoMFmKpnh/Iv51F1StbIH5lkjDTUw== X-Received: by 2002:aca:ed57:: with SMTP id l84mr4713560oih.8.1579289689665; Fri, 17 Jan 2020 11:34:49 -0800 (PST) MIME-Version: 1.0 References: <20200115012651.228058-1-almasrymina@google.com> <20200115012651.228058-2-almasrymina@google.com> <7e1d2c5f-3b07-4d16-9e1b-bd89d25e7fb3@oracle.com> In-Reply-To: <7e1d2c5f-3b07-4d16-9e1b-bd89d25e7fb3@oracle.com> From: Mina Almasry Date: Fri, 17 Jan 2020 11:34:38 -0800 Message-ID: Subject: Re: [PATCH v10 2/8] hugetlb_cgroup: add interface for charge/uncharge hugetlb reservations To: Mike Kravetz Cc: David Rientjes , Shakeel Butt , shuah , Greg Thelen , Andrew Morton , open list , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org, Aneesh Kumar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 17, 2020 at 11:26 AM Mike Kravetz wrote: > > On 1/14/20 5:26 PM, Mina Almasry wrote: > > Augments hugetlb_cgroup_charge_cgroup to be able to charge hugetlb > > usage or hugetlb reservation counter. > > > > Adds a new interface to uncharge a hugetlb_cgroup counter via > > hugetlb_cgroup_uncharge_counter. > > > > Integrates the counter with hugetlb_cgroup, via hugetlb_cgroup_init, > > hugetlb_cgroup_have_usage, and hugetlb_cgroup_css_offline. > > > > Signed-off-by: Mina Almasry > > > > --- > > > > Changes in v10: > > - Added missing VM_BUG_ON > > Thanks for addressing my comments. > I see that patch 8 was updated to address David's comments. I will also > review patch 8 later. > > I am again requesting that someone with more cgroup experience comment on > this patch. I do not have enough experience to determine if the code to > not reparent/zombie cgroup is correct. > Thank you very much for your continued reviews and I'm sorry I'm having so much trouble getting anyone with cgroup experience to look deeply into this. My guess is that it's not very active feature and the patchseries is long and complex so folks are not interested. Nevertheless I'm continually poking David and Shakeel and they will hopefully continue to look into this. FWIW, I have a test for repartenting/counting zombies and the tests at least don't uncover any problems. > For now, > Acked-by: Mike Kravetz > while waiting for cgroup comments. > > -- > Mike Kravetz