From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: simultaneous creates in a directory Date: Fri, 27 Sep 2002 12:44:18 -0700 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3D94B512.2BDF1840@digeo.com> References: <20020927150249.B27592@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, dwmw2@infradead.org, wli@holomorphy.com Return-path: Received: from digeo-nav01.digeo.com (digeo-nav01.digeo.com [192.168.1.233]) by packet.digeo.com (8.9.3+Sun/8.9.3) with SMTP id MAA05355 for ; Fri, 27 Sep 2002 12:44:13 -0700 (PDT) To: Matthew Wilcox List-Id: linux-fsdevel.vger.kernel.org Matthew Wilcox wrote: > > At startup, tiobench does a large number of open(O_CREAT) calls, all > in the same directory. This leads to a large number of processes all > trying to do down() on the parent directory's i_sem. That wouldn't be > so bad, but each one is sleeping with an entire page (of ZONE_NORMAL) > allocated. 800MB of ZONE_NORMAL / 4k pages.. ok, it'd take 200,000 > tasks to completely OOM your box, but a user can certainly make life > difficult for us with fewer tasks. > > The most important question is: Do we care? tiobench is only a benchmark. If the fs was mounted -o sync or -o dirsync, those creates would involve synchronous I/O inside i_sem. So the problem is potentially more serious in such a setup. Even then, do we care? Well hrm. One page of ZONE_NORMAL per process doesn't sound like the end of the world...