Re: VACUUM memory management

From: Greg Stark <stark(at)mit(dot)edu>
To: Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: VACUUM memory management
Date: 2019-12-09 21:36:15
Message-ID: CAM-w4HMwc=kKhd_y1MwfNWJwWG7dsPkrt2iVQjzQb=OfAr0eZw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 9 Dec 2019 at 14:03, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com> wrote:
> I'd
> actually argue that the segment size should be substantially smaller
> than 1 GB, like say 64MB; there are still some people running systems
> which are small enough that allocating 1 GB when we may need only 6
> bytes can drive the system into OOM."

I don't even see why you would allocated as much as 64MB. I would
think something around 1MB would be more sensible. So you might need
an array of segment pointers as long as a few thousand pointers, big
deal. We can handle repalloc on 8kB arrays pretty easily.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-12-09 21:38:04 Re: [Proposal] Level4 Warnings show many shadow vars
Previous Message Tom Lane 2019-12-09 21:35:21 Re: log bind parameter values on error