From patchwork Mon Dec 19 04:22:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bagas Sanjaya X-Patchwork-Id: 13076233 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1AE2C4167B for ; Mon, 19 Dec 2022 04:22:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9AC998E0007; Sun, 18 Dec 2022 23:22:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 89DD38E0006; Sun, 18 Dec 2022 23:22:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 688418E0007; Sun, 18 Dec 2022 23:22:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 488438E0005 for ; Sun, 18 Dec 2022 23:22:24 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E9A511606C9 for ; Mon, 19 Dec 2022 04:22:23 +0000 (UTC) X-FDA: 80257758966.23.456AF9A Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by imf28.hostedemail.com (Postfix) with ESMTP id 2B30AC0003 for ; Mon, 19 Dec 2022 04:22:21 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CivmBZcj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of bagasdotme@gmail.com designates 209.85.216.52 as permitted sender) smtp.mailfrom=bagasdotme@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671423742; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dm3StokzlT7Szh+BiWvCYI/X474BbeHVmllPMqNHQFs=; b=C4x/6tRq/oC6XslC5Av7E27MZKWF3IA4OXnjKzXn9C3aaBUesnFPP74+BhmXkjLpa8YvUp BKWqzMmzEZyAPRFx2hGm6i9O1pErqQrJOOnEedIXMsAuk/5A6lAEJLMnD93F6NVYlm/Vgn H7hyoXDoUEEgmJr06iPLcvE1xlCOVbo= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CivmBZcj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of bagasdotme@gmail.com designates 209.85.216.52 as permitted sender) smtp.mailfrom=bagasdotme@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671423742; a=rsa-sha256; cv=none; b=mofCCMiau2FihdY0Xy/H0X/MChdHIeBKj/SVcbQrMi5v6PX0oMms3BDQdrFtzAVYCr3ZYi QbKX5iKiErJOu+xFZNI2PZHLFyHudxNg2otQo3eG8T7ltaTnDtga3W7Tn4F7RxPmjfH4/s /QY0kpW0wiUKLLf78e7TCzvyg+XUIaU= Received: by mail-pj1-f52.google.com with SMTP id t11-20020a17090a024b00b0021932afece4so11715955pje.5 for ; Sun, 18 Dec 2022 20:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dm3StokzlT7Szh+BiWvCYI/X474BbeHVmllPMqNHQFs=; b=CivmBZcjEkCkLhyVLzlphxvDMwl6nheUGKlegj1hnyWxPXopZtrKelMJg4NLztp6Ei 19ap32V2lPltBGqPJjF1yBiq+0421am0efG9yS/XctjfSJMUHJPg2KbY+drosobdJh7n gghu6w/mHGHBlxzAbFf/3ky8O7nGUoI16/HmaFoXCTM60F0g6N/aa3HWSmyxvZZBroOs 0IUlMvIpvPq9EUVRd08Us5p8bQ/ETvUMY7+aK58/0yKxoewBuKFZb0FIc8vWRY1rerdg ofnz3i0Kc4V+CwnzTxo9fb0DS9JoKTh94ENhKF8b6RzRqJ5RcsZp2hXo25O5OqXf7Mgo 1soA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dm3StokzlT7Szh+BiWvCYI/X474BbeHVmllPMqNHQFs=; b=VmUlTqI53dpGvD4LudOpUzwxkTLX4QHMFY8lFaIbwEnba56lRYELQH+RzAvm1pxhmp k5MCdB90seCqmm5EsXuYMVBb9ztU+X9E48T8sKSMZ56Z2bX7bnPEFmLGeOJR5QqQ2p2f vs4mLb/VZsGMP2RGL2bV7AuMbMsS+MMsFDsH3PrybiLBpJO0U2x8V5spxlZPJQZEl2wI ymh5Q35uD/8UnMXgpHI8JPAiJ16fHYJaSqN4i2SLWiIu/KY6eJ4KqjNo+y1FNnR7qFbL CcDoW3W2QG/MsJh6/w4P/AdQlF/Hyk7DVZvybzOpA7uWvE8rrTQerVujXMu+h5/8zlVB C6bA== X-Gm-Message-State: ANoB5plAIc8XGcF6ULvbd4pugp2CuJ/egD4taIqMG15+FoGVkqwmDd54 jHPfGBF8wVRTNX4vY3ECBEI= X-Google-Smtp-Source: AA0mqf5CnUHwvfX7+1EJIa5A6jcN2atInVT92XNpPGAKNN1DfPXiodIusuJr6g42L8vNFv6OI7Tt7w== X-Received: by 2002:a17:902:7e86:b0:189:eaae:a19c with SMTP id z6-20020a1709027e8600b00189eaaea19cmr39764943pla.30.1671423741073; Sun, 18 Dec 2022 20:22:21 -0800 (PST) Received: from debian.me (subs32-116-206-28-20.three.co.id. [116.206.28.20]) by smtp.gmail.com with ESMTPSA id u6-20020a170902e5c600b00189e1522982sm5876404plf.168.2022.12.18.20.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Dec 2022 20:22:19 -0800 (PST) Received: by debian.me (Postfix, from userid 1000) id C45D310403B; Mon, 19 Dec 2022 11:22:13 +0700 (WIB) From: Bagas Sanjaya To: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Linux Memory Management List Cc: Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Michal Hocko , Andrew Morton , Hugh Dickins , Shakeel Butt , Bagas Sanjaya Subject: [PATCH 03/10] docs: cgroup-v1: wrap remaining admonitions in admonition blocks Date: Mon, 19 Dec 2022 11:22:02 +0700 Message-Id: <20221219042209.22898-4-bagasdotme@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221219042209.22898-1-bagasdotme@gmail.com> References: <20221219042209.22898-1-bagasdotme@gmail.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2573; i=bagasdotme@gmail.com; h=from:subject; bh=lpUMV2xz23OWCWVLnriwcRj5xPuoIGRu0Ewl15SLIFA=; b=owGbwMvMwCX2bWenZ2ig32LG02pJDMnzn71z7D2sLB/nI+epfmjX8TWbYy0vZXxnNyt0vbLVJ3OP 3IINHaUsDGJcDLJiiiyTEvmaTu8yErnQvtYRZg4rE8gQBi5OAZjInU0M/2PY0lqe7C6p53qqp9STtv jzwfmNq/u1OK6wh/Gr3U9V1WD4w7ObbfXhP2dvCXbryN/+9eeUl0qKzZdN71um3rpuJn59MhsA X-Developer-Key: i=bagasdotme@gmail.com; a=openpgp; fpr=701B806FDCA5D3A58FFB8F7D7C276C64A5E44A1D X-Rspamd-Queue-Id: 2B30AC0003 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 81yahetp6x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YEf1t1GkjFfdvkQnDxRzjNRmqzqODIJj53FkbfHdhdBpL4kkI+x5FufAcg+i1guwgb2/Qz/MCcxz/6EF X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Wrap two other admonitions in appropriate blocks in order for readers to pay more attention to block contents: * hint:: for editor's note * warning:: for move charges deprecation Signed-off-by: Bagas Sanjaya --- .../admin-guide/cgroup-v1/memory.rst | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Documentation/admin-guide/cgroup-v1/memory.rst b/Documentation/admin-guide/cgroup-v1/memory.rst index ec99bcbd55c2e7..f828db2a671be4 100644 --- a/Documentation/admin-guide/cgroup-v1/memory.rst +++ b/Documentation/admin-guide/cgroup-v1/memory.rst @@ -13,11 +13,11 @@ Memory Resource Controller memory controller in this document. Do not confuse memory controller used here with the memory controller that is used in hardware. -(For editors) In this document: - When we mention a cgroup (cgroupfs's directory) with memory controller, - we call it "memory cgroup". When you see git-log and source code, you'll - see patch's title and function names tend to use "memcg". - In this document, we avoid using it. +.. hint:: + (For editors) In this document, when we mention a cgroup (cgroupfs's + directory) with memory controller, we call it "memory cgroup". When you + see git-log and source code, you'll see patch's title and function names + tend to use "memcg". In this document, we avoid using it. Benefits and Purpose of the memory controller ============================================= @@ -723,12 +723,14 @@ If we want to change this to 1G, we can at any time use:: 8. Move charges at task migration (DEPRECATED!) =============================================== -THIS IS DEPRECATED! +.. warning:: -It's expensive and unreliable! It's better practice to launch workload -tasks directly from inside their target cgroup. Use dedicated workload -cgroups to allow fine-grained policy adjustments without having to -move physical pages between control domains. + THIS IS DEPRECATED! + + It's expensive and unreliable! It's better practice to launch workload + tasks directly from inside their target cgroup. Use dedicated workload + cgroups to allow fine-grained policy adjustments without having to + move physical pages between control domains. Users can move charges associated with a task along with task migration, that is, uncharge task's pages from the old cgroup and charge them to the new cgroup.