X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p8U7I8KR246149 for ; Fri, 30 Sep 2011 02:18:09 -0500 X-ASG-Debug-ID: 1317367459-11f800f40000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mx1.redhat.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 444FB152ABAD for ; Fri, 30 Sep 2011 00:24:19 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id 0ueDYC7wH8i3HkuB for ; Fri, 30 Sep 2011 00:24:19 -0700 (PDT) X-ASG-Whitelist: Barracuda Reputation Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8U7Hc0g013650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Sep 2011 03:17:39 -0400 Received: from dexter.home.cmpxchg.org (vpn1-6-157.ams2.redhat.com [10.36.6.157]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8U7HZO3018881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 30 Sep 2011 03:17:37 -0400 From: Johannes Weiner To: Andrew Morton Cc: Mel Gorman , Christoph Hellwig , Dave Chinner , Wu Fengguang , Jan Kara , Rik van Riel , Minchan Kim , Chris Mason , "Theodore Ts'o" , Andreas Dilger , Shaohua Li , xfs@oss.sgi.com, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org X-ASG-Orig-Subj: [patch 0/5] per-zone dirty limits v3 Subject: [patch 0/5] per-zone dirty limits v3 Date: Fri, 30 Sep 2011 09:17:19 +0200 Message-Id: <1317367044-475-1-git-send-email-jweiner@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Barracuda-Connect: mx1.redhat.com[209.132.183.28] X-Barracuda-Start-Time: 1317367461 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean Hi, this is the third revision of the per-zone dirty limits. Changes from the second version have been mostly documentation, changelog, and naming fixes based on review feedback: o add new dirty_balance_reserve instead of abusing totalreserve_pages for undirtyable (per-zone) reserves and document the variable and its calculation (Mel) o use !ALLOC_WMARK_LOW instead of adding new ALLOC_SLOWPATH (Mel) o rename determine_dirtyable_memory -> global_dirtyable_memory (Andrew) o better explain behaviour on NUMA in changelog (Andrew) o extend changelogs and code comments on how per-zone dirty limits are calculated, and why, and their proportions to the global limit (Mel, Andrew) o kernel-doc zone_dirty_ok() (Andrew) o extend changelogs and code comments on how per-zone dirty limits are used to protect zones from dirty pages (Mel, Andrew) o revert back to a separate set of zone_dirtyable_memory() and zone_dirty_limit() for easier reading (Andrew) Based on v3.1-rc3-mmotm-2011-08-24-14-08. fs/btrfs/file.c | 2 +- include/linux/gfp.h | 4 +- include/linux/mmzone.h | 6 ++ include/linux/swap.h | 1 + include/linux/writeback.h | 1 + mm/filemap.c | 5 +- mm/page-writeback.c | 181 +++++++++++++++++++++++++++++++++------------ mm/page_alloc.c | 48 ++++++++++++ 8 files changed, 197 insertions(+), 51 deletions(-)