From owner-freebsd-questions@freebsd.org Thu Aug 31 14:57:23 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75AB8E208E1 for ; Thu, 31 Aug 2017 14:57:23 +0000 (UTC) (envelope-from raf@rafal.net) Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 51F277F8AE for ; Thu, 31 Aug 2017 14:57:23 +0000 (UTC) (envelope-from raf@rafal.net) Received: from edina.glencottage.net (unknown [86.40.118.125]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 47D7B509C2; Thu, 31 Aug 2017 10:57:16 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Does NFS client cache? From: Rafal Lukawiecki In-Reply-To: <59A81E95.1060300@fjl.co.uk> Date: Thu, 31 Aug 2017 15:57:14 +0100 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <206BE5FE-7A80-4CCA-8107-F3BBD3FC00FA@rafal.net> <59A81E95.1060300@fjl.co.uk> To: Frank Leonhardt X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 14:57:23 -0000 Thank you, Frank. I will benchmark performance first in the hope that = FreeBSD NFS client is somehow faster than what I have experienced with = Linuxes. Otherwise the copy to local strategy makes a lot of sense. = It=E2=80=99s just so much easier to think and manage with a caching = system=E2=80=A6 Good luck with AWS. And thank you, for helping me understand FreeBSD. Rafal -- Rafal Lukawiecki Data Scientist=20 Project Botticelli Ltd > On 31 Aug 2017, at 15:35, Frank Leonhardt wrote: >=20 > Sometimes :-) NFS caching is a problem, especially when you consider = the effects of fsync() and being POSIX compliant in this respect. If you = cache a file, even R/O, then an fsync() operation on one host must = invalidate the cache on ALL other hosts before returning. Strictly = speaking. In practice there are a lot of kernel tuneables to ignore this = (some undocumented IME). You can also comment out the code that deals = with the fsync() requests. >=20 > Best strategy depends on exactly what you're trying to do. I'd = probably copy files to local storage as a cron job as an early option. >=20 > (Thanks for the info on AWS) >=20 > Regards, Frank. >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"