Received: by 10.213.65.68 with SMTP id h4csp62227imn; Wed, 21 Mar 2018 12:24:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELt6WNJzUjXTLKLbCsuj2Rcm7AiUDqyVHv39AxjyOWT1XgP4JvTzQ8Fje6jUjKgmJsCqz5t3 X-Received: by 2002:a17:902:6f01:: with SMTP id w1-v6mr21609738plk.196.1521660273307; Wed, 21 Mar 2018 12:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521660273; cv=none; d=google.com; s=arc-20160816; b=c9XjDvR3Z0wfj3y2LwscywdhGhiwKKc/DBamrlxMg8JM+WtBKSEnxWCrZWslraSdaj Eb6qq8UWsMDig4sM6t9F8kkm9S32dhVc8icLKmqqF2aP2oA7QaqMGIY6ZInRVhtM5T5r +3ioScYXk3VtaFPwPc3LphC7txjgLkjf5BxZXMMKw37DjDhF2P/HNq3VspXHFskbFV6a 10PpglI2CMvFDVq03IQqWAZSk5uuotoKldmhGArhE6ZEmtEKOnwWXC0dYXr8Ea9QJ05g /gTOU7ZtZVUa/wiqu516zVHeMJuAm+vuyyTnVzKWDorn7nq4ctKkqK1OPF93tMMHMkTf Qikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=voMTj2aV5NEysCZT8vqLOlQ7Fx7a8bsWk1dYPruKMMM=; b=xvTrLoyDIMLt0XPff7q+O+LoxfTalUao/yb87phzn81QHsONR7EXPnIFbtf8p9K4xr OwVI2O0UJwAgSpQtO0a11yYogqKiQF4u2MR5HD37xYg7TXrn+eZvmrUW15bY8oa9jBkf Ht8UpYZ3xGDjmOwlrlBMwuew443vsyKJQuGmckmHYx7Z72iIcV9oyCh/EWv7f9DYnyEq YWhrUhkbMvxscYlsqh2reb169cnAErihaYgKy7LFF6etjLa4JmbGJfHxIg5o913hXsFw AUz0+zsTI4qNewYzD/LvQg8S3zz8Qk/Nh5eqBml9iWvN88qUQRemyLtrmJofmr9QTHnV vrSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6-v6si4403163pla.333.2018.03.21.12.24.19; Wed, 21 Mar 2018 12:24:33 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753092AbeCUTXT (ORCPT + 99 others); Wed, 21 Mar 2018 15:23:19 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44106 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753023AbeCUTXP (ORCPT ); Wed, 21 Mar 2018 15:23:15 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2LJIYJx047072 for ; Wed, 21 Mar 2018 15:23:15 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2guuubvcmj-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 21 Mar 2018 15:23:14 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Mar 2018 19:23:12 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 21 Mar 2018 19:23:05 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2LJN5lY64880750; Wed, 21 Mar 2018 19:23:05 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8EF2311C04A; Wed, 21 Mar 2018 19:15:35 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 98E4F11C050; Wed, 21 Mar 2018 19:15:32 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.206.27]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 21 Mar 2018 19:15:32 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 21 Mar 2018 21:23:01 +0200 From: Mike Rapoport To: Jonathan Corbet Cc: Andrey Ryabinin , Richard Henderson , Ivan Kokshaysky , Matt Turner , Tony Luck , Fenghua Yu , Ralf Baechle , James Hogan , Michael Ellerman , Alexander Viro , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kasan-dev@googlegroups.com, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Mike Rapoport Subject: [PATCH 02/32] docs/vm: balance: convert to ReST format Date: Wed, 21 Mar 2018 21:22:18 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521660168-14372-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1521660168-14372-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18032119-0008-0000-0000-000004E0DF6B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18032119-0009-0000-0000-00001E7403DD Message-Id: <1521660168-14372-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-21_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803210221 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Mike Rapoport --- Documentation/vm/balance | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/vm/balance b/Documentation/vm/balance index 9645954..6a1fadf 100644 --- a/Documentation/vm/balance +++ b/Documentation/vm/balance @@ -1,3 +1,9 @@ +.. _balance: + +================ +Memory Balancing +================ + Started Jan 2000 by Kanoj Sarcar Memory balancing is needed for !__GFP_ATOMIC and !__GFP_KSWAPD_RECLAIM as @@ -62,11 +68,11 @@ for non-sleepable allocations. Second, the HIGHMEM zone is also balanced, so as to give a fighting chance for replace_with_highmem() to get a HIGHMEM page, as well as to ensure that HIGHMEM allocations do not fall back into regular zone. This also makes sure that HIGHMEM pages -are not leaked (for example, in situations where a HIGHMEM page is in +are not leaked (for example, in situations where a HIGHMEM page is in the swapcache but is not being used by anyone) kswapd also needs to know about the zones it should balance. kswapd is -primarily needed in a situation where balancing can not be done, +primarily needed in a situation where balancing can not be done, probably because all allocation requests are coming from intr context and all process contexts are sleeping. For 2.3, kswapd does not really need to balance the highmem zone, since intr context does not request @@ -89,7 +95,8 @@ pages is below watermark[WMARK_LOW]; in which case zone_wake_kswapd is also set. (Good) Ideas that I have heard: + 1. Dynamic experience should influence balancing: number of failed requests -for a zone can be tracked and fed into the balancing scheme (jalvo@mbay.net) + for a zone can be tracked and fed into the balancing scheme (jalvo@mbay.net) 2. Implement a replace_with_highmem()-like replace_with_regular() to preserve -dma pages. (lkd@tantalophile.demon.co.uk) + dma pages. (lkd@tantalophile.demon.co.uk) -- 2.7.4