From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60CDCC433F5 for ; Wed, 29 Sep 2021 10:20:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4361761246 for ; Wed, 29 Sep 2021 10:20:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245399AbhI2KWH (ORCPT ); Wed, 29 Sep 2021 06:22:07 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:33466 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245125AbhI2KWG (ORCPT ); Wed, 29 Sep 2021 06:22:06 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Uq0ghvM_1632910824; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0Uq0ghvM_1632910824) by smtp.aliyun-inc.com(127.0.0.1); Wed, 29 Sep 2021 18:20:24 +0800 From: Baolin Wang To: akpm@linux-foundation.org Cc: baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Support hugetlb charge moving at task migration Date: Wed, 29 Sep 2021 18:19:26 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Now in the hugetlb cgroup, charges associated with a task aren't moved to the new hugetlb cgroup at task migration, which is odd for hugetlb cgroup usage. This patch set adds hugetlb cgroup charge moving when migrate tasks among cgroups, which are based on the memcg charge moving. Please help to review. Thanks. Baolin Wang (2): hugetlb_cgroup: Add interfaces to move hugetlb charge at task migration hugetlb_cgroup: Add post_attach interface for tasks migration mm/hugetlb_cgroup.c | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) -- 1.8.3.1