Re: [GENERAL] clearing the buffer cache

2009-02-16 Thread Greg Smith
On Mon, 16 Feb 2009, Sam Mason wrote: On Mon, Feb 16, 2009 at 11:09:59AM -0500, Chris Mayfield wrote: You can also try something like this: http://wiki.services.openoffice.org/wiki/Cold-start-simulator might take too long in your situation of thousands of small queries. Why is this better tha

Re: [GENERAL] clearing the buffer cache

2009-02-16 Thread Sam Mason
On Mon, Feb 16, 2009 at 11:09:59AM -0500, Chris Mayfield wrote: > >With recent versions of Linux you can flush the system's buffer cache by > >doing: > > > > # echo 3 > /proc/sys/vm/drop_caches > > You can also try something like this: > http://wiki.services.openoffice.org/wiki/Cold-start-simulat

Re: [GENERAL] clearing the buffer cache

2009-02-16 Thread Chris Mayfield
With recent versions of Linux you can flush the system's buffer cache by doing: # echo 3 > /proc/sys/vm/drop_caches You can also try something like this: http://wiki.services.openoffice.org/wiki/Cold-start-simulator Shutting down the server and running fillmem has worked for me, but that mi

Re: [GENERAL] clearing the buffer cache

2009-02-14 Thread Greg Smith
On Fri, 13 Feb 2009, Sam Mason wrote: I was hoping for a function I could call, or maybe some variable I write to, that would cause the contents to be invalidated. For most people, just restarting the server is acceptable overhead, which is why nobody has bothered to write such a thing. It w

Re: [GENERAL] clearing the buffer cache

2009-02-13 Thread Sam Mason
On Fri, Feb 13, 2009 at 11:13:36AM -0700, Scott Ribe wrote: > > I was hoping to run many thousands of small (i.e. 100ms or less) queries > > and if it takes a couple of seconds to restart the database I'm not > > going to be able to do this. > > Are you forgetting the OS's file system cache? That

Re: [GENERAL] clearing the buffer cache

2009-02-13 Thread Scott Ribe
> Isn't there anything faster than this? > > I was hoping to run many thousands of small (i.e. 100ms or less) queries > and if it takes a couple of seconds to restart the database I'm not > going to be able to do this. Are you forgetting the OS's file system cache? That will also have a huge effe

Re: [GENERAL] clearing the buffer cache

2009-02-13 Thread Sam Mason
[ Sorry Brad, I didn't mean to delete your response! lets try again. ] On Fri, Feb 13, 2009 at 12:52:21PM -0500, Brad Nicholson wrote: > On Fri, 2009-02-13 at 17:49 +, Sam Mason wrote: > > I was doing some performance checks and wondered what the best way to > > clear out the shared buffers is

Re: [GENERAL] clearing the buffer cache

2009-02-13 Thread Sam Mason
On Fri, Feb 13, 2009 at 12:52:21PM -0500, Brad Nicholson wrote: > On Fri, 2009-02-13 at 17:49 +, Sam Mason wrote: > > I was doing some performance checks and wondered what the best way to > > clear out the shared buffers is? With the recent improvements in buffer > > management it appears a si

Re: [GENERAL] clearing the buffer cache

2009-02-13 Thread Brad Nicholson
On Fri, 2009-02-13 at 17:49 +, Sam Mason wrote: > Hi, > > I was doing some performance checks and wondered what the best way to > clear out the shared buffers is? With the recent improvements in buffer > management it appears a simple SELECT * FROM large_table; doesn't help > here! > > I was

[GENERAL] clearing the buffer cache

2009-02-13 Thread Sam Mason
Hi, I was doing some performance checks and wondered what the best way to clear out the shared buffers is? With the recent improvements in buffer management it appears a simple SELECT * FROM large_table; doesn't help here! I was hoping for a function I could call, or maybe some variable I write