Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-30 Thread Albe Laurenz
I wrote: >Jeff Janes wrote: All that said, there has always been a recommendation of caution around using NFS as a backing store for PG, or any RDBMS.. >>> >>> I know that Oracle recommends it - they even built an NFS client >>> into their database server to make the most of it. >

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-28 Thread Josh Berkus
>> Why would they implement their own client? Did they have to do something >> special in their client to >> make it safe? > > I think it is mostly a performance issue. Each backend mounts its own copy > of the data files it needs. I personally would never put PostgreSQL on an NFS share on Li

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-28 Thread John Melesky
On Tue, May 27, 2014 at 4:06 AM, Albe Laurenz wrote: > I just learned that NFS does not use a file system cache on the client > side. > That's ... incorrect. NFS is cache-capable. NFSv3 (I think? It may have been v2) started sending metadata on file operations that was intended to allow for clien

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-28 Thread Albe Laurenz
Jeff Janes wrote: >>> All that said, there has always been a recommendation of caution around >>> using NFS as a backing store for PG, or any RDBMS.. >> >> I know that Oracle recommends it - they even built an NFS client >> into their database server to make the most of it. > > Last I h

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-28 Thread Albe Laurenz
John Melesky wrote: >> I just learned that NFS does not use a file system cache on the client side. > > That's ... incorrect. NFS is cache-capable. NFSv3 (I think? It may have been > v2) started sending > metadata on file operations that was intended to allow for client-side > caches. NFSv4 adde

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Jeff Janes
On Tue, May 27, 2014 at 4:06 AM, Albe Laurenz wrote: > I just learned that NFS does not use a file system cache on the client > side. > My experience suggested that it did something a little weirder than that. It would cache read data as long as it was clean, but once the data was dirtied and wr

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Jeff Janes
On Tue, May 27, 2014 at 8:00 AM, Albe Laurenz wrote: > Stephen Frost wrote: > > All that said, there has always been a recommendation of caution around > > using NFS as a backing store for PG, or any RDBMS.. > > I know that Oracle recommends it - they even built an NFS client > into their database

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread David Boreham
On 5/27/2014 9:09 AM, Shaun Thomas wrote: On 05/27/2014 10:00 AM, Albe Laurenz wrote: I know that Oracle recommends it - they even built an NFS client into their database server to make the most of it. That's odd. Every time the subject of NFS comes up, it's almost immediately shot down wit

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Shaun Thomas
On 05/27/2014 10:00 AM, Albe Laurenz wrote: I know that Oracle recommends it - they even built an NFS client into their database server to make the most of it. That's odd. Every time the subject of NFS comes up, it's almost immediately shot down with explicit advice to Never Do That(tm). It c

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Albe Laurenz
Stephen Frost wrote: > All that said, there has always been a recommendation of caution around > using NFS as a backing store for PG, or any RDBMS.. I know that Oracle recommends it - they even built an NFS client into their database server to make the most of it. Yours, Laurenz Albe -- Sent vi

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Stephen Frost
* Heikki Linnakangas (hlinnakan...@vmware.com) wrote: > On 05/27/2014 02:06 PM, Albe Laurenz wrote: > >I just learned that NFS does not use a file system cache on the client side. > > > >On the other hand, PostgreSQL relies on the file system cache for > >performance, > >because beyond a certain a

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Heikki Linnakangas
On 05/27/2014 02:06 PM, Albe Laurenz wrote: I just learned that NFS does not use a file system cache on the client side. On the other hand, PostgreSQL relies on the file system cache for performance, because beyond a certain amount of shared_buffers performance will suffer. Together these thing