From nobody Sat Oct 9 15:50:33 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4FF4817E6120 for ; Sat, 9 Oct 2021 15:50:44 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HRTzl46xhz3NfR for ; Sat, 9 Oct 2021 15:50:43 +0000 (UTC) (envelope-from felix@palmen-it.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hKw6wNcfZ+HlYHs3tBrNIWVeizJz+3UeBoYBWRaAs5Q=; b=xcW4Is1B1I64eo2PcIogBANQhD MgklaiIOttF/2X2cvqksw3A1insFxrl+04XcqxXVl6sfcfq83peKGiEX7/AZPLTzoTVHPL4ReuryM 35OrRGrm8g8aPOxSsZKSlGM406zLNNLgWdC8dA+deYf/IUUuk+c2y7T7CPtSDMQvqyy8lmd5VVRtp 1BnuMwwkUkiTYBHAa4jf7uvLff/Wl/044A+al7JwlEda1zwJlc+8KwvPh2XG9wVbZ6Xmlh1ud0x+Z F/xT5GwGCUDLOaV50gCGr5MNZqzPzVphIB6V6RenYFURM8UlN4bbZTr0BlzpufJiDUNSuPkyps7XD YRF4/FnQ==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mZEcU-002ndk-6M for freebsd-current@freebsd.org; Sat, 09 Oct 2021 17:50:42 +0200 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mZEcR-000NXD-Bj for freebsd-current@freebsd.org; Sat, 09 Oct 2021 15:50:39 +0000 Date: Sat, 9 Oct 2021 17:50:33 +0200 From: Felix Palmen To: freebsd-current@freebsd.org Subject: Re: Writing large build logs to NFS extremely slow? Message-ID: <20211009155033.fckg4i7zqo4yt2te@nexus.home.palmen-it.de> Mail-Followup-To: freebsd-current@freebsd.org X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: palmen-it.de References: <20211007021643.bwglyvrswk2nm3fl@nexus.home.palmen-it.de> <20211009141852.3cmjh7tysnehum7b@nexus.home.palmen-it.de> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="khodntlu4fcbzk3t" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20210205 X-Rspamd-Queue-Id: 4HRTzl46xhz3NfR X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b=xcW4Is1B; dmarc=pass (policy=none) header.from=palmen-it.de; spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de X-Spamd-Result: default: False [-7.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1:c]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[palmen-it.de:+]; DMARC_POLICY_ALLOW(-0.50)[palmen-it.de,none]; RCVD_IN_DNSWL_MED(-0.20)[2001:470:1f0b:bbb:1::1:from]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[palmen-it.de:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --khodntlu4fcbzk3t Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Rick Macklem [20211009 15:35]: > Felix Palmen wrote: > Assuming your NFS performance is acceptable for other things and it > is only this log file that is a problem, then I doubt there is much you > can do to improve it. Yes, that's the only problem I found so far=E2=80=A6 > --> Append (as in O_APPEND opens) are a poor case for NFS, since there > is no append write in NFS. To approximate append write, it must flu= sh > all dirty data to the server, do a Getattr to find out the file's c= urrent > size and then do the write (over and over and over again). Ok, thanks for the insight here! So maybe, I could have a look at poudriere's code? If I understand you correctly, keeping the file open and just issuing more write() calls wouldn't trigger that problem? > You could try the "nocto" mount option, which might help, if the log file > is being re-opened many times, but I doubt it will help. Well, I take any suggestion, so will try that as well and report back, thanks again! Side note, please don't CC/To me, I'm subscribed the list ;) --=20 Dipl.-Inform. Felix Palmen ,.//.......... {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de {pgp public key} http://palmen-it.de/pub.txt // """"""""""" {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A --khodntlu4fcbzk3t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAmFhukkACgkQPvKLCrwC 2irRMQf/cHZ+l+ta4CW6lojzmkYsb2I+p3WnRKXJM++5XF6SHcq36W2V8+EBfXcN c9PYCbtdvPE/1+X9HG6RPAOqC1uaiRONh7qmCBtYlPCjEjOOHAugXXpodzIRG3LW EL1vKKW2OlqgxVVxVHXFaKCjqeqewkfZzONGMJ4yQTfPmllaAuLkJgb8CVmC1A0D 1xPWf3Uk/GSApSLlmyTFT064MDIK6hg3vkBNVLicZuaFn8hv84n8O8jQrS8R0HAi u0dvLbXgJM7eztYbev+39Jh5IeOr9A5ZI7/ZniCXm0Z4iOWwLDuOr/iEAM9JspFQ BfO5Ec/H99qzEnDUFq36DEox4TWLpg== =U4rE -----END PGP SIGNATURE----- --khodntlu4fcbzk3t--