From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boaz Harrosh Subject: Re: [LSF/MM TOPIC] Parallelize file operation (like creation, unlink) under large shared directory Date: Sun, 22 Jan 2012 15:55:34 +0200 Message-ID: <4F1C1556.7010908@panasas.com> References: <4F1B2612.7020001@whamcloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: , , Jinshan Xiong To: wangdi Return-path: Received: from natasha.panasas.com ([67.152.220.90]:56755 "EHLO natasha.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751816Ab2AVNzo (ORCPT ); Sun, 22 Jan 2012 08:55:44 -0500 In-Reply-To: <4F1B2612.7020001@whamcloud.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 01/21/2012 10:54 PM, wangdi wrote: > Single directory performance is a critical in some use cases. For > example the multiple application threads might create hundreds of > thousands of files in a single directory simultaneously within a short > window of time. > read NFSD here ;-) > Currently, both filename lookup and file system modifying operations > (such as create and unlink) are protected with a single lock for the > entire directory. It might be useful to remove this lock, so multiple > application threads can access the directory simultaneously. > I agree about create, unlink, and so on. But don't we have some lockless look up in place since a few Kernels ago? But yes the topic is very interesting, though I'd suspect its hard to implement. > Thanks > WangDi > Thanks Boaz