From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Modify local buffer management to request memory for local |
Date: | 2006-12-27 22:32:03 |
Message-ID: | 20061227223203.4E3739FA363@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Modify local buffer management to request memory for local buffers in blocks
of increasing size, instead of one at a time. This reduces the memory
management overhead when num_temp_buffers is large: in the previous coding
we would actually waste 50% of the space used for temp buffers, because aset.c
would round the individual requests up to 16K. Problem noted while studying
a performance issue reported by Steven Flatt.
Back-patch as far as 8.1 --- older versions used few enough local buffers
that the issue isn't significant for them.
Tags:
----
REL8_1_STABLE
Modified Files:
--------------
pgsql/src/backend/storage/buffer:
localbuf.c (r1.70.2.2 -> r1.70.2.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/buffer/localbuf.c.diff?r1=1.70.2.2&r2=1.70.2.3)
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2006-12-27 22:39:16 | dbi-link - dbi-link: Fixed off-by-one error in make_dbi_link_role(TEXT) |
Previous Message | Tom Lane | 2006-12-27 22:31:59 | pgsql: Modify local buffer management to request memory for local |