Re: Writing large build logs to NFS extremely slow?
- In reply to: Rick Macklem : "Re: Writing large build logs to NFS extremely slow?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Oct 2021 22:27:53 UTC
Rick Macklem wrote: ?Felix Palmen wrote: [stuff snipped] >>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? >Nope, I don't think keeping the file open would help much. >However, if the file is opened with O_DIRECT, you could try setting ># sysctl vfs.nfs.nfs_directio_enable=1 >in the NFS client machine. Oops, my bad..I for some reason was thinking you were using an NFSv3 mount, but you didn't say. For NFSv4, repeated open/close of the same file will result in significant overhead. The official remedy for this would be enabling delegations, but there were some significant issues with using them that were only fixed recently, so you need a really up to date system if you are going to enable delegations on the NFSv4 server. rick rick > 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 ;) -- Dipl.-Inform. Felix Palmen <felix@palmen-it.de> ,.//.......... {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