Re: Reduce the size of PageFreeSpaceInfo on 64bit platform - Mailing list pgsql-patches

From Tom Lane
Subject Re: Reduce the size of PageFreeSpaceInfo on 64bit platform
Date
Msg-id 25014.1205114861@sss.pgh.pa.us
Whole thread Raw
In response to Re: Reduce the size of PageFreeSpaceInfo on 64bit platform  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-patches
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> Here is a revised patch to reduce memory usage during VACUUM,
> using FSMPageData (6 byte) instead of PageFreeSpaceInfo (8 or 16 bytes).

Applied, thanks.

> The keepable pages with freespace will extended to 21GB from 8GB with
> 16MB of default maintenance_work_mem.

AFAICS, maintenance_work_mem doesn't really have anything to do with
this; but it should reduce memory usage anyway if you've got large
relations and a large max_fsm_pages setting.

I'm a bit worried that the change may be pointless if FSM is rewritten
to not use dedicated shared memory, as I hope will happen for 8.4.
But we can always revert it if that happens.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Silly bug in pgbench's random number generator
Next
From: Euler Taveira de Oliveira
Date:
Subject: Re: [BUGS] BUG #3975: tsearch2 index should not bomb out of 1Mb limit