Re: Performance while loading data and indexing

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: shridhar_daithankar(at)persistent(dot)co(dot)in
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Performance while loading data and indexing
Date: 2002-09-26 16:41:34
Message-ID: 200209261641.g8QGfYc04099@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-performance

Shridhar Daithankar wrote:
> I might have found the bottleneck, although by accident. Mysql was running out
> of space while creating index. So my friend shut down mysql and tried to move
> things by hand to create links. He noticed that even things like cp were
> terribly slow and it hit us.. May be the culprit is the file system. Ext3 in
> this case.

I just added a file system and multi-cpu section to my performance
tuning paper:

http://www.ca.postgresql.org/docs/momjian/hw_performance/

The paper does recommend ext3, but the differences between file systems
are very small. If you are seeing 'cp' as slow, I wonder if it may be
something more general, like poorly tuned hardware or something. You can
use 'dd' to throw some data around the file system and see if that is
showing slowness; compare those numbers to another machine that has
different hardware/OS.

Also, though ext3 is slower, turning fsync off should make ext3 function
similar to ext2. That would be an interesting test if you suspect ext3.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Johnson, Shaunn 2002-09-26 17:08:20 Re: get date in binary number format
Previous Message Johnson, Shaunn 2002-09-26 16:41:15 unlock / drop table

Browse pgsql-hackers by date

  From Date Subject
Next Message Masaru Sugawara 2002-09-26 17:02:49 About connectby() again
Previous Message Bruce Momjian 2002-09-26 16:22:17 Re: Bug in PL/pgSQL GET DIAGNOSTICS?

Browse pgsql-performance by date

  From Date Subject
Next Message Doug cNaught 2002-09-26 17:16:36 Re: [HACKERS] Performance while loading data and indexing
Previous Message Greg Copeland 2002-09-26 15:41:37 Re: [HACKERS] Performance while loading data and indexing