From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 4DC926B0062 for ; Fri, 18 Dec 2009 09:13:52 -0500 (EST) Message-ID: <4B2B8E16.9070504@redhat.com> Date: Fri, 18 Dec 2009 16:13:42 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [PATCH v2] vmscan: limit concurrent reclaimers in shrink_zone References: <20091211164651.036f5340@annuminas.surriel.com> <4B2B85C3.5040409@redhat.com> <4B2B8DC6.7010506@redhat.com> In-Reply-To: <4B2B8DC6.7010506@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Rik van Riel Cc: lwoodman@redhat.com, akpm@linux-foundation.org, KOSAKI Motohiro , linux-mm@kvack.org, linux-kernel@vger.kernel.org, minchan.kim@gmail.com List-ID: On 12/18/2009 04:12 PM, Rik van Riel wrote: > On 12/18/2009 08:38 AM, Avi Kivity wrote: > >>> + /* Number of processes running page reclaim code on this zone. */ >>> + atomic_t concurrent_reclaimers; >>> + wait_queue_head_t reclaim_wait; >>> + >> >> Counting semaphore? > > I don't see a safe way to adjust a counting semaphore > through /proc/sys. True. Maybe it's worthwhile to add such a way if this pattern has more uses. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- 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/ . Don't email: email@kvack.org