Skip site navigation (1) Skip section navigation (2)

Re: PostgreSQL Cache

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Sam Mason <sam(at)samason(dot)me(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Cache
Date: 2008-09-29 21:53:02
Message-ID: Pine.GSO.4.64.0809291750190.16949@westnet.com (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-general
On Mon, 29 Sep 2008, Sam Mason wrote:

> On Mon, Sep 29, 2008 at 02:55:52AM -0400, Greg Smith wrote:
>> 3) sudo echo 3 > /proc/sys/vm/drop_caches
>
> I'm not sure about the rest, but shouldn't this be:
>  echo 3 | sudo tee /proc/sys/vm/drop_caches

I couldn't think of any reason to actually include the tee in there and 
just optimized displaying the "3" out as script noise.

> As an aside, it would be nicer if there was a more appropriately program 
> than tee but I've yet to find one.

What are you trying to accomplish here that tee isn't quite right for?

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

In response to

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2008-09-29 22:45:53
Subject: Re: Do we need vacuuming when tables are regularly dropped?
Previous:From: Andrew SullivanDate: 2008-09-29 18:59:27
Subject: Re: PID file

pgsql-general by date

Next:From: Ashutosh ChauhanDate: 2008-09-29 21:58:44
Subject: Re: subquery in FROM must have an alias
Previous:From: Tommy GibbonsDate: 2008-09-29 21:52:52
Subject: dbsamples from pgfoundry

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group