Search Postgresql Archives

Re: PostgreSQL reads each 8k block - no larger blocks are used - even on sequential scans

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gerhard Wiesinger <lists@xxxxxxxxxxxxx> writes:
> I've one idea, which is not ideal, but may work and shouldn't be much 
> effort to implement:
> As in the example above we read B1-B5 and B7-B10 on a higher level outside 
> of normal buffer management with large request sizes (e.g. where hash 
> index scans and sequential scans are done). As the blocks are now in cache 
> normal buffer management is very fast:
> 1.) B1-B5: 5*8k=40k
> 2.) B7-B10: 4*8k=32k

> So we are reading for 1.):
> B1-B5 in one 40k block (typically from disk), afterwards we read B1, B2, 
> B3, B4, B5 in 8k chunks from cache again.

Is this really different from, or better than, telling the OS we'll need
those blocks soon via posix_fadvise?

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux