Re: Time to run initdb is mostly figure-out-the-timezone work - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Time to run initdb is mostly figure-out-the-timezone work
Date
Msg-id 8437.1261159027@sss.pgh.pa.us
Whole thread Raw
In response to Re: Time to run initdb is mostly figure-out-the-timezone work  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Time to run initdb is mostly figure-out-the-timezone work  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I notice that most of the difference is system time ... I imagine we do
> a lot of syscalls to guess the timezone.

Yeah, it seems to be mostly the cost of searching the timezone directory
tree and reading all those small files.  I was led to notice this
because Red Hat's latest devel kernels seem to have a bit of a
performance regression in this area:
https://bugzilla.redhat.com/show_bug.cgi?id=548403
Obviously there's something there for the kernel guys to fix, but
even with a non-borked kernel it's an expensive thing to do.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Time to run initdb is mostly figure-out-the-timezone work
Next
From: Heikki Linnakangas
Date:
Subject: Re: Backup history file should be replicated in Streaming Replication?