From: Greg Smith <gsmith@gregsmith.com>
To: Sam Mason <sam@samason.me.uk>
Cc: pgsql-general@postgresql.org
Subject: Re: PostgreSQL Cache
Date: Mon, 29 Sep 2008 17:53:02 -0400 (EDT)
Message-ID: <Pine.GSO.4.64.0809291750190.16949@westnet.com> (raw)
In-Reply-To: <20080929112634.GM7271@frubble.xen.chris-lamb.co.uk>
References: <f88da7150809282143w71c0920avb51f7809eb398ef7@mail.gmail.com>
<Pine.GSO.4.64.0809290237330.18983@westnet.com>
<20080929112634.GM7271@frubble.xen.chris-lamb.co.uk>
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@gregsmith.com http://www.gregsmith.com Baltimore, MD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gsmith@gregsmith.com, sam@samason.me.uk, pgsql-general@postgresql.org
Subject: Re: PostgreSQL Cache
In-Reply-To: <Pine.GSO.4.64.0809291750190.16949@westnet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox