From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Rohan Kadekodi <kadekodirohan@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-admin@lists.postgresql.org
Cc: gsievers19@comcast.net
Subject: Re: Regarding postgreSQL performance on DRAM
Date: Thu, 21 Feb 2019 16:30:53 +0100
Message-ID: <f79c8603-2e22-5c71-3817-7583f469b7bd@2ndquadrant.com> (raw)
In-Reply-To: <CADb0YN=0wnmhUC+fOeZcKXqLOOYS1XQREcdjnDwMToa6mTP3ng@mail.gmail.com>
References: <CADb0YNk+jYXt6oC3vefFzOigmG8WOCkXmeAq5L8ABA4eMbypHA@mail.gmail.com>
<87va1exlfo.fsf@jsievers.enova.com>
<f37b7ea7-966d-d54a-bf8d-a1c7229e5f8a@gmx.net>
<29251.1550696663@sss.pgh.pa.us>
<CADb0YN=0wnmhUC+fOeZcKXqLOOYS1XQREcdjnDwMToa6mTP3ng@mail.gmail.com>
On 2019-02-20 22:50, Rohan Kadekodi wrote:
> Perf tool shows that there is a non-trivial amount of time spent in
> DropCachedPlan and AllocSetAlloc. Does this hint to some sort of caching
> being done by PostgreSQL, and is there a way to disable this caching?
AllocSetAlloc() is memory allocation, which, well, you need some of. ;-)
DropCachedPlan() has to do with how statements are prepared and
released. You can probably reduce some of that overhead by using
prepared statements consistently. Hard to tell without more details
about your test script. Have you looked at pgbench?
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: peter.eisentraut@2ndquadrant.com, kadekodirohan@gmail.com, tgl@sss.pgh.pa.us, spam_eater@gmx.net, pgsql-admin@lists.postgresql.org, gsievers19@comcast.net
Subject: Re: Regarding postgreSQL performance on DRAM
In-Reply-To: <f79c8603-2e22-5c71-3817-7583f469b7bd@2ndquadrant.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