Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3185B37C07A for ; Mon, 29 Sep 2008 18:53:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56097-02 for ; Mon, 29 Sep 2008 18:53:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id 6CD2537C078 for ; Mon, 29 Sep 2008 18:53:04 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m8TLr2f0027454; Mon, 29 Sep 2008 17:53:02 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m8TLr2tO027451; Mon, 29 Sep 2008 17:53:02 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Mon, 29 Sep 2008 17:53:02 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Sam Mason cc: pgsql-general@postgresql.org Subject: Re: PostgreSQL Cache In-Reply-To: <20080929112634.GM7271@frubble.xen.chris-lamb.co.uk> Message-ID: References: <20080929112634.GM7271@frubble.xen.chris-lamb.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/1163 X-Sequence-Number: 138170 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