postgresql/src/include/storage
Robert Haas 46846433a0 shm_mq: Update mq_bytes_written less often.
Do not update shm_mq's mq_bytes_written until we have written
an amount of data greater than 1/4th of the ring size, unless
the caller of shm_mq_send(v) requests a flush at the end of
the message. This reduces the number of calls to SetLatch(),
and also the number of CPU cache misses, considerably, and thus
makes shm_mq significantly faster.

Dilip Kumar, reviewed by Zhihong Yu and Tomas Vondra. Some
minor cosmetic changes by me.

Discussion: http://postgr.es/m/CAFiTN-tVXqn_OG7tHNeSkBbN+iiCZTiQ83uakax43y1sQb2OBA@mail.gmail.com
2021-10-14 16:13:36 -04:00
..
.gitignore
backendid.h
barrier.h
block.h
buf_internals.h
buf.h
buffile.h Optimize fileset usage in apply worker. 2021-09-02 08:13:46 +05:30
bufmgr.h process startup: Always call Init[Auxiliary]Process() before BaseInit(). 2021-08-05 15:36:59 -07:00
bufpage.h
checksum_impl.h
checksum.h
condition_variable.h
copydir.h
dsm_impl.h
dsm.h
fd.h Move temporary file cleanup to before_shmem_exit(). 2021-08-07 19:20:47 -07:00
fileset.h Refactor sharedfileset.c to separate out fileset implementation. 2021-08-30 08:48:15 +05:30
freespace.h
fsm_internals.h
indexfsm.h
ipc.h Introduce GUC shared_memory_size 2021-09-08 12:02:30 +09:00
item.h
itemid.h
itemptr.h
large_object.h
latch.h
lmgr.h
lock.h
lockdefs.h
lwlock.h
md.h
off.h
pg_sema.h
pg_shmem.h Introduce GUC shared_memory_size_in_huge_pages 2021-09-21 10:31:58 +09:00
pmsignal.h
predicate_internals.h
predicate.h
proc.h
procarray.h
proclist_types.h
proclist.h
procsignal.h
reinit.h
relfilenode.h
s_lock.h Add RISC-V spinlock support in s_lock.h. 2021-08-13 13:59:43 -04:00
sharedfileset.h Refactor sharedfileset.c to separate out fileset implementation. 2021-08-30 08:48:15 +05:30
shm_mq.h shm_mq: Update mq_bytes_written less often. 2021-10-14 16:13:36 -04:00
shm_toc.h
shmem.h
sinval.h
sinvaladt.h
smgr.h
spin.h
standby.h
standbydefs.h
sync.h