| От | Jeff Davis |
|---|---|
| Тема | pgsql: Specialize MemoryContextMemAllocated(). |
| Дата | |
| Msg-id | E1jEhLU-0002Jd-6G@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Specialize MemoryContextMemAllocated(). An AllocSet doubles the size of allocated blocks (up to maxBlockSize), which means that the current block can represent half of the total allocated space for the memory context. But the free space in the current block may never have been touched, so don't count the untouched memory as allocated for the purposes of MemoryContextMemAllocated(). Discussion: https://postgr.es/m/ec63d70b668818255486a83ffadc3aec492c1f57.camel@j-davis.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e00912e11a9ec2d29274ed8a6465e81385906dc2 Modified Files -------------- src/backend/utils/mmgr/aset.c | 46 ++++++++++++++++++++++++++----------- src/backend/utils/mmgr/generation.c | 25 ++++++++++++++++---- src/backend/utils/mmgr/mcxt.c | 3 +-- src/backend/utils/mmgr/slab.c | 29 +++++++++++++++++------ src/include/nodes/memnodes.h | 2 +- 5 files changed, 77 insertions(+), 28 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера