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

Re: PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?

From: Stefan Keller <sfkeller(at)gmail(dot)com>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Claudio Freire <klaussfreire(at)gmail(dot)com>, postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?
Date: 2012-02-29 15:24:15
Message-ID: CAFcOn28PmJxWAvZXbakvuXnpJ+VZSdqmWzOo3hf5fc4zCsutvg@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
2012/2/29 Jeff Janes <jeff(dot)janes(at)gmail(dot)com>:
>> It's quite possible the vacuum full is thrashing your disk cache due
>> to maintainance_work_mem. You can overcome this issue with the tar
>> trick, which is more easily performed as:
>>
>> tar cf /dev/null $PG_DATA/base
>
> But on many implementations, that will not work.  tar detects the
> output is going to the bit bucket, and so doesn't bother to actually
> read the data.

Right.
But what about the commands cp $PG_DATA/base /dev/null or cat
$PG_DATA/base > /dev/null ?
They seem to do something.

-Stefan

In response to

Responses

pgsql-performance by date

Next:From: Stefan KellerDate: 2012-02-29 15:28:25
Subject: Re: PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?
Previous:From: Claudio FreireDate: 2012-02-29 15:18:12
Subject: Re: PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?

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