From owner-freebsd-fs@freebsd.org Thu Oct 25 13:13:44 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 302C71075922; Thu, 25 Oct 2018 13:13:44 +0000 (UTC) (envelope-from ronald@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CAE3781618; Thu, 25 Oct 2018 13:13:43 +0000 (UTC) (envelope-from ronald@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1gFfSB-0007BD-L9; Thu, 25 Oct 2018 15:13:35 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org, "FreeBSD Current" , freebsd-fs@freebsd.org Date: Thu, 25 Oct 2018 15:13:36 +0200 Subject: tmpfs corrupt file (aarch64/12.0-ALPHA5) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 76f3589a93270604ea078d468a2051b3 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 13:13:44 -0000 Hello, I'm running this small script which generates changelog file in gzipped JSON format. TMPDIR=/var/tmp START=1 END=$(( $START + $STEP - 1 )) while test $START -lt 300000 do svnlite log --xml -r $START:$END -v ~/src/freebsd-base > $TMPDIR/bla.xml bin/xml2json.py > $TMPDIR/commits.$START-$END.json gzip -f $TMPDIR/commits.$START-$END.json START=$(( $START + $STEP )) END=$(( $START + $STEP - 1 )) done So $TMPDIR/bla.xml is overwritten every iteration. Well: - If $TMPDIR=/var/tmp which is on UFS the script works. - If %TMPDIR=/tmp which is tmpfs the xml2json.py script very often gives errors about the XML structure of bla.xml like if the file is truncated or empty. So it looks like something is happening on tmpfs that the data is not yet 'synced'. Can this be a threading/cpu-cache issue on aarch64? This is on an RPI3B+. FreeBSD rpi3 12.0-ALPHA5 FreeBSD 12.0-ALPHA5 #5 r338616: Wed Sep 12 22:23:05 CEST 2018 builder@rpi3:/data/src/obj-head/data/src/head/arm64.aarch64/sys/GENERIC-NODEBUG arm64 Can I do more testing or provide more information before creating a PR about this? Regards, Ronald.