Re: 8.4.1 ubuntu karmic slow createdb

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Michael Clemmons <glassresistor(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 8.4.1 ubuntu karmic slow createdb
Date: 2009-12-11 23:59:13
Message-ID: dcc563d10912111559t4e2524di14369c2b4e3d802c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On Fri, Dec 11, 2009 at 3:52 PM, Michael Clemmons
<glassresistor(at)gmail(dot)com> wrote:
> Thanks all this has been a good help.
> I don't have control(or easy control) over unit tests creating/deleting
> databases since Im using the django framework for this job.

Reminds of the issues we had with Ruby on Rails and it's (at the time)
very mysql-centric tools that made us take a fork to large portions of
its brain to get things like this working. Worked with a developer
for a day or two fixing most of the worst mysqlisms in RoR at the time
to just get this kind of stuff working.

>  Createdb takes
> 12secs on my system(9.10 pg8.4 and ext4)  which is impossibly slow for
> running 200unittests.

Wait, so each unit test createdbs by itself? Wow...

>  Fsync got it to .2secs or so which is blazing but
> also the speed I expected being used to 8.3 and xfs.  This dev box is my
> laptop and the data is litterally unimportant and doesn't exist longer than
> 20sec but Im all about good practices.  Will definately try synchronous
> commit tonight once Im done working for the day.  I've got some massive
> copying todo later though so this will probably help in the future as well.

Yeah, I'd probably resort to fsync off in that circumstance too
especially if syn commit off didn't help that much.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2009-12-12 00:15:20 Re: Adding support for SE-Linux security
Previous Message Greg Smith 2009-12-11 23:41:39 Re: [PATCH] dtrace probes for memory manager

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2009-12-12 00:19:38 Re: 8.4.1 ubuntu karmic slow createdb
Previous Message Michael Clemmons 2009-12-11 22:52:01 Re: 8.4.1 ubuntu karmic slow createdb