pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedext3 block size
3+ messages / 3 participants
[nested] [flat]
* ext3 block size
@ 2003-08-06 20:31 Wilson A. Galafassi Jr. <juniorlist@yahoo.com.br>
0 siblings, 1 reply; 3+ messages in thread
From: Wilson A. Galafassi Jr. @ 2003-08-06 20:31 UTC (permalink / raw)
To: pgsql-admin
hello.
my database size is 5GB. what is the block size recommend?
thanks
wilson
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ext3 block size
@ 2003-08-08 15:39 Dani Oderbolz <oderbolz@ecologic.de>
parent: Wilson A. Galafassi Jr. <juniorlist@yahoo.com.br>
0 siblings, 1 reply; 3+ messages in thread
From: Dani Oderbolz @ 2003-08-08 15:39 UTC (permalink / raw)
To: Wilson A. Galafassi Jr. <juniorlist@yahoo.com.br>; +Cc: pgsql-admin
Wilson A. Galafassi Jr. wrote:
> hello.
> my database size is 5GB. what is the block size recommend?
> thanks
> wilson
Hmm, IMHO this depends more on your IO System
rather than on the DB size.
It doesnt make sense to have a blocksize which your IO System
(HD, Controller...) cannot fetch in one read.
And it also depends on the type of Processing you are doing.
If you will have mostly big tablescans, a big blocksize is good,
whereas if you will be doing lots of Index acess, a lower one
can make more sense.
(And also if you store lots of data in one row).
In general I guess 8K (the default) is ok,
but 16K can make sense.
Regards,
Dani
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ext3 block size
@ 2003-08-08 15:51 scott.marlowe <scott.marlowe@ihs.com>
parent: Dani Oderbolz <oderbolz@ecologic.de>
0 siblings, 0 replies; 3+ messages in thread
From: scott.marlowe @ 2003-08-08 15:51 UTC (permalink / raw)
To: Dani Oderbolz <oderbolz@ecologic.de>; +Cc: Wilson A. Galafassi Jr. <juniorlist@yahoo.com.br>; pgsql-admin
On Fri, 8 Aug 2003, Dani Oderbolz wrote:
> Wilson A. Galafassi Jr. wrote:
>
> > hello.
> > my database size is 5GB. what is the block size recommend?
> > thanks
> > wilson
>
> Hmm, IMHO this depends more on your IO System
> rather than on the DB size.
> It doesnt make sense to have a blocksize which your IO System
> (HD, Controller...) cannot fetch in one read.
> And it also depends on the type of Processing you are doing.
> If you will have mostly big tablescans, a big blocksize is good,
> whereas if you will be doing lots of Index acess, a lower one
> can make more sense.
> (And also if you store lots of data in one row).
> In general I guess 8K (the default) is ok,
> but 16K can make sense.
But that's confusing postgresql block size with ext3 block size. Right
now the linux 2.4.x kernel only really understands 4k block size as the
max, due to limitations of architechture (X86 only understands 4k memory
page size, and the max block size of a file system is the max page size of
your architecture. Now, while Itanium (8k) and Itanium2 (64k) can have
larger page sizes, not much has been done to make the 2.4.x series
kernels use these larger limits on hard drive blocks, and the little bit
of hacking I've found on it makes it look like it's still something that's
being tested, i.e. it's not ready for prime time.
Switching to Postgresql block sizes...
Note that while Postgresql supports larger block sizes, it isn't
tested as much as the 8k block size, so you might want to test it
thorougly before putting it into production.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-08-08 15:51 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-06 20:31 ext3 block size Wilson A. Galafassi Jr. <juniorlist@yahoo.com.br>
2003-08-08 15:39 ` Dani Oderbolz <oderbolz@ecologic.de>
2003-08-08 15:51 ` scott.marlowe <scott.marlowe@ihs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox