Re: Memory buffer alignment - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Memory buffer alignment
Date
Msg-id 200309272145.h8RLjww14477@candle.pha.pa.us
Whole thread Raw
In response to Re: Memory buffer alignment  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: getaddrinfo() for threading instead of gethostbyname()
Next
From: Bruce Momjian
Date:
Subject: Re: getaddrinfo() for threading instead of gethostbyname()