From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728018AbgLCQHP (ORCPT ); Thu, 3 Dec 2020 11:07:15 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA257C061A4E for ; Thu, 3 Dec 2020 08:06:28 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id u12so2438747wrt.0 for ; Thu, 03 Dec 2020 08:06:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: David Pineau Date: Thu, 3 Dec 2020 17:06:16 +0100 Message-ID: Subject: Re: Difficulties pushing FIO towards many small files and WORM-style use-case Content-Type: text/plain; charset="UTF-8" List-Id: fio@vger.kernel.org To: "Elliott, Robert (Servers)" Cc: "fio@vger.kernel.org" On Thu, Dec 3, 2020 at 4:43 PM Elliott, Robert (Servers) wrote: > > > > > -----Original Message----- > > From: David Pineau > > Sent: Wednesday, December 02, 2020 8:32 AM > > To: fio@vger.kernel.org > > Subject: Difficulties pushing FIO towards many small files and WORM- > > style use-case > > > > Hello, > > > ... > > As we have data on the actual usage of this current software, we know > > the spread of accesses to various size ranges, and we rely on a huge > > number of files accessed by the multi-threaded service. As the pieces > > of data can live a long time on this service and are immutable, I'm > > trying to go for a WORM-style workload with FIO. > > > > With this information in mind, I build the following FIO > > configuration file: > > > > >>>> > > [global] > > # File-related config > > directory=/mnt/test-mountpoint > > nrfiles=3000 > > I don't think most systems can handle 3000 open files at a time for > one process. Try > ulimit -n > > which might report that the default is 1024 open files per process. > > The fio openfiles= option can be used to limit how many files it > keeps open at a time. The number of open file descriptors is tuned on our servers (the system is usually running between 30-40k open files constantly according to our monitoring), so I'm not limited on that side, but I had indeed noticed the "openfiles" option, thanks for hinting at that. > >