Re: First set of OSDL Shared Mem scalability results, - Mailing list pgsql-performance

From Tom Lane
Subject Re: First set of OSDL Shared Mem scalability results,
Date
Msg-id 21489.1097274752@sss.pgh.pa.us
Whole thread Raw
In response to Re: First set of OSDL Shared Mem scalability results,  ("J. Andrew Rogers" <jrogers@neopolitan.com>)
Responses Re: First set of OSDL Shared Mem scalability results,
Re: First set of OSDL Shared Mem scalability results,
List pgsql-performance
"J. Andrew Rogers" <jrogers@neopolitan.com> writes:
> As I understand it (and I haven't looked so I could be wrong), the
> buffer cache is searched by traversing it sequentially.

You really should look first.

The main-line code paths use hashed lookups.  There are some cases that
do linear searches through the buffer headers or the CDB lists; in
theory those are supposed to be non-performance-critical cases, though
I am suspicious that some are not (see other response).  In any case,
those structures are considerably more compact than the buffers proper,
and I doubt that cache misses per se are the killer factor.

This does raise a question for Josh though, which is "where's the
oprofile results?"  If we do have major problems at the level of cache
misses then oprofile would be able to prove it.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: First set of OSDL Shared Mem scalability results, some wierdness ...
Next
From: "Steinar H. Gunderson"
Date:
Subject: Re: First set of OSDL Shared Mem scalability results,