From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Does fsync() block read and write ops on the same file? Date: Thu, 10 Dec 2009 09:22:35 +0000 Message-ID: <82ein3npyc.fsf@mid.bfk.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: linux-fsdevel@vger.kernel.org Return-path: Received: from mx01.bfk.de ([193.227.124.2]:40811 "EHLO mx01.bfk.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755781AbZLJJW3 convert rfc822-to-8bit (ORCPT ); Thu, 10 Dec 2009 04:22:29 -0500 Received: from mx00.int.bfk.de ([10.119.110.2]) by mx01.bfk.de with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) id 1NIfEJ-0000cf-K0 for linux-fsdevel@vger.kernel.org; Thu, 10 Dec 2009 10:22:35 +0100 Received: by bfk.de with local id 1NIfEJ-00072T-Ti for linux-fsdevel@vger.kernel.org; Thu, 10 Dec 2009 09:22:35 +0000 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: I've got an odd performance issue. It seems that when fsync() is called on a file, other processes block when they try to access it. This is not merely due to I/O contention on the underlying block device, it seems. Oracle reported a similar performance issue in the Berkeley DB JE changelog. Is this really true? Are there any workarounds? (I'm mainly interested in the situation on ext[34] and XFS.) --=20 =46lorian Weimer BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstra=DFe 100 tel: +49-721-96201-1 D-76133 Karlsruhe fax: +49-721-96201-99 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html