Re: Memory buffer alignment

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Manfred Spraul <manfred(at)colorfullife(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Memory buffer alignment
Date: 2003-09-27 21:45:58
Message-ID: 200309272145.h8RLjww14477@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > it certainly seems like it would be a good idea to have the 8k buffers
> > aligned on 4k offsets.
>
> Why? What mechanism do you expect would find that more efficient?

There was the idea that some OS's can swap the pages in from kernel into
the user space. I am not sure any one does that, but it would be
interesting to see. Also, a single shared buffer access would be a
single virtual memory lookup, rather than two lookups. Not sure, but it
would interesting to see.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-27 21:48:03 Re: getaddrinfo() for threading instead of gethostbyname()
Previous Message Vincent Janelle 2003-09-27 21:44:45 Re: Can't Build 7.3.4 on OS X