Re: [GENERAL] avoiding file system caching of a table

2014-03-12 Thread Jeff Janes
On Mon, Feb 17, 2014 at 7:30 PM, Gabriel Sánchez Martínez < gabrielesanc...@gmail.com> wrote: > > On 02/17/2014 08:45 PM, Jeff Janes wrote: > > On Mon, Feb 17, 2014 at 5:09 PM, "Gabriel E. Sánchez Martínez" < > gabrielesanc...@gmail.com> wrote: > >> >> >> I have read forum postings saying that t

Re: [GENERAL] avoiding file system caching of a table

2014-02-17 Thread Haribabu Kommi
On Mon, Feb 17, 2014 at 2:33 PM, Gabriel Sánchez Martínez < gabrielesanc...@gmail.com> wrote: > Is there a way of asking PostgreSQL to read the files of a table directly > off the disk, asking the OS not to use the file cache? I am running > PostgreSQL 9.1 on Ubuntu Server 64-bit. The server in

Re: [GENERAL] avoiding file system caching of a table

2014-02-17 Thread Gabriel Sánchez Martínez
On 02/17/2014 08:45 PM, Jeff Janes wrote: On Mon, Feb 17, 2014 at 5:09 PM, "Gabriel E. Sánchez Martínez" mailto:gabrielesanc...@gmail.com>> wrote: On 02/16/2014 10:33 PM, Gabriel Sánchez Martínez wrote: Is there a way of asking PostgreSQL to read the files of a table dire

Re: [GENERAL] avoiding file system caching of a table

2014-02-17 Thread Tom Lane
Jeff Janes writes: > If you told postgresql to tell the kernel not to cache the data it reads, > how would this help? I seem to recall also that O_DIRECT disables optimizations we definitely want, like read-ahead. So it could come out a loser independently of any what's-in-cache concerns.

Re: [GENERAL] avoiding file system caching of a table

2014-02-17 Thread Jeff Janes
On Mon, Feb 17, 2014 at 5:09 PM, "Gabriel E. Sánchez Martínez" < gabrielesanc...@gmail.com> wrote: > > On 02/16/2014 10:33 PM, Gabriel Sánchez Martínez wrote: > >> Is there a way of asking PostgreSQL to read the files of a table directly >> off the disk, asking the OS not to use the file cache? I

Re: [GENERAL] avoiding file system caching of a table

2014-02-17 Thread Gabriel E. Sánchez Martínez
On 02/16/2014 10:33 PM, Gabriel Sánchez Martínez wrote: Is there a way of asking PostgreSQL to read the files of a table directly off the disk, asking the OS not to use the file cache? I am running PostgreSQL 9.1 on Ubuntu Server 64-bit. The server in question has the maximum amount of RAM i

[GENERAL] avoiding file system caching of a table

2014-02-16 Thread Gabriel Sánchez Martínez
Is there a way of asking PostgreSQL to read the files of a table directly off the disk, asking the OS not to use the file cache? I am running PostgreSQL 9.1 on Ubuntu Server 64-bit. The server in question has the maximum amount of RAM it supports, but the database has grown much larger. Most