Date: Sat, 9 Oct 2021 22:27:53 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: Writing large build logs to NFS extremely slow? Message-ID: <YQXPR0101MB0968B4900F28C0974E27B080DDB39@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <YQXPR0101MB096840849470A4AA61C72188DDB39@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> References: <20211007021643.bwglyvrswk2nm3fl@nexus.home.palmen-it.de> <CAOgwaMsLTWaMddx1HPY0eiY4t-12x-bEiZmhUpFsuEqkNhM27w@mail.gmail.com> <20211009141852.3cmjh7tysnehum7b@nexus.home.palmen-it.de> <YQXPR0101MB096832C878E88DF877B39DB8DDB39@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <20211009155033.fckg4i7zqo4yt2te@nexus.home.palmen-it.de> <YQXPR0101MB0968CA670A7AD47437D64E5FDDB39@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <YQXPR0101MB096840849470A4AA61C72188DDB39@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
Rick Macklem wrote:=0A= ?Felix Palmen wrote:=0A= [stuff snipped]=0A= >>Ok, thanks for the insight here! So maybe, I could have a look at=0A= >>poudriere's code? If I understand you correctly, keeping the file open=0A= >>and just issuing more write() calls wouldn't trigger that problem?=0A= >Nope, I don't think keeping the file open would help much.=0A= >However, if the file is opened with O_DIRECT, you could try setting=0A= ># sysctl vfs.nfs.nfs_directio_enable=3D1=0A= >in the NFS client machine.=0A= Oops, my bad..I for some reason was thinking you were using an NFSv3=0A= mount, but you didn't say. For NFSv4, repeated open/close of the same=0A= file will result in significant overhead. The official remedy for this woul= d=0A= be enabling delegations, but there were some significant issues with using= =0A= them that were only fixed recently, so you need a really up to date system= =0A= if you are going to enable delegations on the NFSv4 server.=0A= =0A= rick=0A= =0A= rick=0A= =0A= > You could try the "nocto" mount option, which might help, if the log file= =0A= > is being re-opened many times, but I doubt it will help.=0A= =0A= Well, I take any suggestion, so will try that as well and report back,=0A= thanks again!=0A= =0A= Side note, please don't CC/To me, I'm subscribed the list ;)=0A= =0A= --=0A= Dipl.-Inform. Felix Palmen <felix@palmen-it.de> ,.//..........=0A= {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de=0A= {pgp public key} http://palmen-it.de/pub.txt // """""""""""=0A= {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A=0A= =0A= =0A=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR0101MB0968B4900F28C0974E27B080DDB39>