Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4013298ybg; Fri, 25 Oct 2019 12:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj37FTL1iwOnq2/kdU7la8+KaA2X2PqtWs+C7cOPC6Iupxew5oichLZxTluJAqMEqF53Ia X-Received: by 2002:a17:906:6dd3:: with SMTP id j19mr4875002ejt.144.1572030348449; Fri, 25 Oct 2019 12:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030348; cv=none; d=google.com; s=arc-20160816; b=wzV2+sVWmt1tJshC7SKhQIAjtE5kc0gB02GLgZ1AyZ/xKd0Gmrmd0cBQgUJum5n4+N Wi/v4z5PsgwKAjC7meXb/xOFsxd6VVHyYCJCgNWLzt4KFEr6zEF+d84BtaNAm5zBSKHk nspN1P9XucfniHihGX7+ItJ+Zz1+4yrwcom3RCEz6/OWT1L0/kL/rhRF6jeKqPX2GgWE T8visgXAZh8jVH/lnxbCc+URg4s/YFIMnoUmV1fmRt7bUoe72zY7MquKUU3lRot77b1Q TpOoAdf1ydaQojXUXemvIweJNvZarzQp5CGhhXady3S4s08TbmJSSE5qSYjZ6RPMhdHH gkHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=P5eA1oDE3Qtpw+qOFdRdAQ1eF3iVulVsioGWBMMrwZ4=; b=ffTj/wT7JpPiY3sT77Cxfs/av2nkwc0uQiAv7XulCCerTKDW1VwMm47QKSpBNWh6mH tmGgB+Tloo+ozNZoIzMEMa8yz2EtoOMMt9eeGHw8stIxrx1mTk7Xdi8fRtTHhjevOPgF X4yvNW7RKm85/EUCsNVDGtkV0CsTulF01oJZRZOhbAy8iflkn9iQ4/e2WjQEH5s945BD fIsYg/yNhB1QSxwnV/Hlnp59DIOAj9oN6Nr/tZyNnbu1EDsgKgKIP8lbq/IVIr3UI54G +IAi+aEsly2Y7oDgk2JxVE2lGTLEBtm6ZTcDb30nOs2zQDk3qEO30IEx4LETE4C3ZoPE KfuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p37si1979134eda.405.2019.10.25.12.05.25; Fri, 25 Oct 2019 12:05:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728250AbfJXUee (ORCPT + 99 others); Thu, 24 Oct 2019 16:34:34 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:34802 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727677AbfJXUee (ORCPT ); Thu, 24 Oct 2019 16:34:34 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-98.corp.google.com [104.133.0.98] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x9OKYJcq008461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Oct 2019 16:34:20 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 19C74420456; Thu, 24 Oct 2019 16:34:19 -0400 (EDT) Date: Thu, 24 Oct 2019 16:34:19 -0400 From: "Theodore Y. Ts'o" To: Boaz Harrosh Cc: Paul Menzel , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List , Donald Buczek Subject: Re: File system for scratch space (in HPC cluster) Message-ID: <20191024203419.GG1124@mit.edu> References: <20191024145504.GD1124@mit.edu> <70755c40-b800-8ba0-a0df-4206f6b8c8d4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70755c40-b800-8ba0-a0df-4206f6b8c8d4@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 06:01:05PM +0300, Boaz Harrosh wrote: > > You could use ext4 in nojournal mode. If you want to make sure that > > fsync() doesn't force a cache flush, you can mount with the nobarrier > > mount option. > > And open the file with O_TMPFILE|O_EXCL so there is no metadata as well. O_TMPFILE means that there is no directory entry created. The pathname passed to the open system call is the directory specifying the file system where the temporary file will be created. This may or may not be what the original poster wanted, depending on whether by "scratch file" he meant a file which could be opened by pathname by another, subsequent process or not. - Ted