Re: Analysis on backend-private memory usage (and a patch)

From: Greg Stark <stark(at)mit(dot)edu>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Analysis on backend-private memory usage (and a patch)
Date: 2013-09-06 10:30:10
Message-ID: CAM-w4HMnzgtYwH2ADDWsf338WO2-Bh=eZeha9ZCCck0Ap5wiJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 4 Sep 2013 20:46, "Heikki Linnakangas" <hlinnakangas(at)vmware(dot)com> wrote:
>

> One fairly simple thing we could do is to teach catcache.c to resize the
caches. Then we could make the initial size of all the syscaches much
smaller. At the moment, we use fairly caches for catalogs like pg_enum (256
entries) and pg_usermapping (128), even though most databases don't use
those features at all. If they could be resized on demand, we could easily
allocate them initially with just, say, 4 entries.

If most databases don't use the feature at all, tsparser, enums, etc, why
not start out with *no* cache and only build one when it's first needed?
This would also mean there's less overhead for implementing new features
that aren't universally used.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2013-09-06 11:38:56 Re: [PERFORM] encouraging index-only scans
Previous Message Florian Weimer 2013-09-06 08:30:11 Re: get rid of SQL_ASCII?