Re: semtimedop instead of setitimer/semop/setitimer - Mailing list pgsql-hackers

From Tom Lane
Subject Re: semtimedop instead of setitimer/semop/setitimer
Date
Msg-id 26732.1064083523@sss.pgh.pa.us
Whole thread Raw
In response to Re: semtimedop instead of setitimer/semop/setitimer  (Manfred Spraul <manfred@colorfullife.com>)
List pgsql-hackers
Manfred Spraul <manfred@colorfullife.com> writes:
> MAX_ALIGNOF affects the on-disk format, correct?

Right, it could affect placement of fields on-disk.  I was thinking we
could change it as an easy test, but maybe not ...

If you set up the shared buffers at an appropriate offset, that should
get most of the possible win from aligning I/O transfers, but not all.
It would also be worth looking at the local buffers (see
src/backend/storage/buffer/localbuf.c).  The trouble here is, if malloc
returns something that's only 4-byte aligned, aren't we stuck?

There might also be some joy in making src/backend/storage/file/buffile.c
align its buffers suitably, but again the issue is controlling malloc.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Manfred Spraul
Date:
Subject: Re: semtimedop instead of setitimer/semop/setitimer
Next
From: Florian Weimer
Date:
Subject: Re: PostgreSQL not ACID compliant?