From juniorlist@yahoo.com.br Wed Aug 6 20:31:28 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 162BFD1C4BF for ; Wed, 6 Aug 2003 20:31:28 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 71474-05 for ; Wed, 6 Aug 2003 17:30:07 -0300 (ADT) Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by svr1.postgresql.org (Postfix) with SMTP id 96832D1C4E3 for ; Wed, 6 Aug 2003 17:31:16 -0300 (ADT) Received: from unknown (HELO notebook) (juniorlist@200.180.192.112 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 6 Aug 2003 20:31:17 -0000 Message-ID: <032901c35c59$bf6b2260$70c0b4c8@notebook> From: "Wilson A. Galafassi Jr." To: Subject: ext3 block size Date: Wed, 6 Aug 2003 17:31:38 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0326_01C35C40.9783B780" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_60_70 X-Spam-Level: X-Archive-Number: 200308/88 X-Sequence-Number: 9811 This is a multi-part message in MIME format. ------=_NextPart_000_0326_01C35C40.9783B780 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello. my database size is 5GB. what is the block size recommend? thanks wilson ------=_NextPart_000_0326_01C35C40.9783B780 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hello.
my database size is 5GB. what is the block= size=20 recommend?
thanks
wilson
------=_NextPart_000_0326_01C35C40.9783B780-- From oderbolz@ecologic.de Fri Aug 8 15:40:00 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E0BD8D1C922 for ; Fri, 8 Aug 2003 15:40:00 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 47130-02 for ; Fri, 8 Aug 2003 12:38:32 -0300 (ADT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by svr1.postgresql.org (Postfix) with ESMTP id 77263D1C4E1 for ; Fri, 8 Aug 2003 12:39:49 -0300 (ADT) Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19l9LH-0008PE-00; Fri, 08 Aug 2003 17:39:47 +0200 Received: from [217.230.196.156] (helo=ecologic.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19l9LG-0004zK-00; Fri, 08 Aug 2003 17:39:47 +0200 Message-ID: <3F33C442.2000809@ecologic.de> Date: Fri, 08 Aug 2003 17:39:46 +0200 From: Dani Oderbolz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Wilson A. Galafassi Jr." Cc: pgsql-admin@postgresql.org Subject: Re: ext3 block size References: <032901c35c59$bf6b2260$70c0b4c8@notebook> In-Reply-To: <032901c35c59$bf6b2260$70c0b4c8@notebook> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/116 X-Sequence-Number: 9838 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 From scott.marlowe@ihs.com Fri Aug 8 16:09:10 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E2F92D1C4DB for ; Fri, 8 Aug 2003 16:09:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 47807-04 for ; Fri, 8 Aug 2003 13:07:42 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 6A59BD1C4BF for ; Fri, 8 Aug 2003 13:08:59 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h78G7wbS004637; Fri, 8 Aug 2003 10:07:58 -0600 (MDT) Date: Fri, 8 Aug 2003 09:51:56 -0600 (MDT) From: "scott.marlowe" To: Dani Oderbolz Cc: "Wilson A. Galafassi Jr." , Subject: Re: ext3 block size In-Reply-To: <3F33C442.2000809@ecologic.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/117 X-Sequence-Number: 9839 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.