Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-15 Thread ITAGAKI Takahiro
Joshua D. Drake j...@commandprompt.com wrote: So has anyone here done any experiments with live systems with different block sizes? What were your experiences? I tested with 4k once. The system tanked. This might be a good one for the performance lab. I'm using 16k blocks for one

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Martijn van Oosterhout
On Wed, Mar 11, 2009 at 01:29:43PM +, Greg Stark wrote: The main advantage would be for circumstances such as the Windows installer where users are installing precompiled binaries. They don't get an opportunity to choose the block size at all. (Similarly for users of binary-only commercial

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Joshua D. Drake
On Sat, 2009-03-14 at 13:53 +0100, Martijn van Oosterhout wrote: On Wed, Mar 11, 2009 at 01:29:43PM +, Greg Stark wrote: The main advantage would be for circumstances such as the Windows installer where users are installing precompiled binaries. They don't get an opportunity to choose

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Gregory Stark
Joshua D. Drake j...@commandprompt.com writes: On Sat, 2009-03-14 at 13:53 +0100, Martijn van Oosterhout wrote: On Wed, Mar 11, 2009 at 01:29:43PM +, Greg Stark wrote: The main advantage would be for circumstances such as the Windows installer where users are installing precompiled

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Joshua D. Drake
On Sat, 2009-03-14 at 15:29 +, Gregory Stark wrote: Joshua D. Drake j...@commandprompt.com writes: I think that is an understatement. I would say 99% of postgresql users do NOT compile from source. Heck the only time I compile from source is when I need to fix mis-configured defaults

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Tom Lane
Gregory Stark st...@enterprisedb.com writes: So has anyone here done any experiments with live systems with different block sizes? What were your experiences? That should really have been the *first* question. We are not going to make this a tunable unless there is some pretty strong evidence

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Joshua D. Drake
On Sat, 2009-03-14 at 11:47 -0400, Tom Lane wrote: Gregory Stark st...@enterprisedb.com writes: So has anyone here done any experiments with live systems with different block sizes? What were your experiences? That should really have been the *first* question. We are not going to

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Tom Lane
Joshua D. Drake j...@commandprompt.com writes: On Sat, 2009-03-14 at 11:47 -0400, Tom Lane wrote: ... Aside from the implementation costs of making it variable, there is the oft repeated refrain that Postgres has too many configuration knobs already. Well that too many knobs argument doesn't

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Josh Berkus
Tom Lane wrote: Gregory Stark st...@enterprisedb.com writes: So has anyone here done any experiments with live systems with different block sizes? What were your experiences? Mark tested this back in the OSDL days. His findings on DBT2 was that the right *combination* of OS and PG

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Alvaro Herrera
Josh Berkus wrote: However, at Greenplum I remember determining that larger PG block sizes, if matched with larger filesystem block sizes did significantly help on performance of data warehouses which do a lot of seq scans -- but that our ceiling of 32K was still too small to really

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-14 Thread Joshua D. Drake
On Sat, 2009-03-14 at 12:25 -0400, Tom Lane wrote: Joshua D. Drake j...@commandprompt.com writes: On Sat, 2009-03-14 at 11:47 -0400, Tom Lane wrote: ... Aside from the implementation costs of making it variable, there is the oft repeated refrain that Postgres has too many configuration

[HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-11 Thread Jacky Leng
After all, re-initdb is much easier than re-build the whole package. And there seems nothing diffcult to implement this. Is that true? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-11 Thread Tom Lane
Jacky Leng lengjianq...@163.com writes: And there seems nothing diffcult to implement this. Is that true? No. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription:

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-11 Thread Greg Stark
On Wed, Mar 11, 2009 at 12:38 PM, Tom Lane t...@sss.pgh.pa.us wrote: And there seems nothing diffcult to implement this. Is that true? No. Eh? There's nothing difficult in implementing it. But there are a lot of other constants dependant on this value which are currently compile-time

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-11 Thread Tom Lane
Greg Stark st...@enterprisedb.com writes: On Wed, Mar 11, 2009 at 12:38 PM, Tom Lane t...@sss.pgh.pa.us wrote: And there seems nothing diffcult to implement this. Is that true? No. Eh? There's nothing difficult in implementing it. But there are a lot of other constants dependant on this

Re: [HACKERS] Has anybody think about changing BLCKSZ to an option of initdb?

2009-03-11 Thread Greg Stark
On Wed, Mar 11, 2009 at 1:13 PM, Tom Lane t...@sss.pgh.pa.us wrote: Greg Stark st...@enterprisedb.com writes: On Wed, Mar 11, 2009 at 12:38 PM, Tom Lane t...@sss.pgh.pa.us wrote: And there seems nothing diffcult to implement this. Is that true? No. Eh? There's nothing difficult in