From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [PATCH] writeback: safety margin for bdi stat errors Date: Tue, 07 Dec 2010 12:34:13 -0500 Message-ID: <4CFE7015.3070000@redhat.com> References: <20101205064430.GA15027@localhost> <4CFB9BE1.3030902@redhat.com> <20101207131136.GA20366@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Zijlstra , Andrew Morton , "Theodore Ts'o" , Chris Mason , Dave Chinner , Jan Kara , Jens Axboe , Mel Gorman , KOSAKI Motohiro , Christoph Hellwig , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML To: Wu Fengguang Return-path: In-Reply-To: <20101207131136.GA20366@localhost> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On 12/07/2010 08:11 AM, Wu Fengguang wrote: > So the root cause is, the bdi_dirty is well under nr_dirty due to > accounting errors. They should be very close because there is only one > heavy dirtied bdi in the system. This can be fixed by using > bdi_stat_sum(), however that's costly on large NUMA machines. So do a > less costly fix of lowering the bdi limit, so that the accounting > errors won't lead to the absurd situation "global limit exceeded but > bdi limit not exceeded". > > CC: Rik van Riel > CC: Peter Zijlstra > Signed-off-by: Wu Fengguang I like this simple approach. Acked-by: Rik van Riel -- All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org