Thread: hardware to get best performance

hardware to get best performance

From
Vincent Chen
Date:
Hi, all

Does postgresql support thread? Or let me put it this way, will postgresql get
better performance on multiple processor host than single processor? What's the
best platform, freebsd? linux?

I have been looking around, but still don't have answers for the above
questions.


Thanks,


Vincent Chen


-----------------------------------------------------------------
Yahoo!奇摩造型精靈
最新的造型精靈簽名檔,讓信件獨具個人色彩!
http://tw.avatar.yahoo.com/

Re: hardware to get best performance

From
Bruno Wolff III
Date:
On Tue, Nov 23, 2004 at 22:34:23 +0800,
  Vincent Chen <vctw@yahoo.com> wrote:
> Hi, all
>
> Does postgresql support thread? Or let me put it this way, will postgresql get
> better performance on multiple processor host than single processor? What's the
> best platform, freebsd? linux?

If you have multiple connections to the database server making simultaneous
queries, multiple processors will be used. This is the normal case for
real database use.

The best platform for you is probably the one you are most familiar with.

Re: hardware to get best performance

From
Vincent Chen
Date:
>> Hi, all
>>
>> Does postgresql support thread? Or let me put it this way, will postgresql
get
>> better performance on multiple processor host than single processor? What's
the
>> best platform, freebsd? linux?
>
>If you have multiple connections to the database server making simultaneous
>queries, multiple processors will be used. This is the normal case for
>real database use.
>
>The best platform for you is probably the one you are most familiar with.
>

About platform, linux has much more filesystem choice than freebsd. If I put
postgresql data file on new filesystem like xfs or reiserfs, is it possible
that overall performance will be better than old filesystem like ufs?


Thanks for your response,


Vincent Chen


-----------------------------------------------------------------
Yahoo!奇摩造型精靈
最新的造型精靈簽名檔,讓信件獨具個人色彩!
http://tw.avatar.yahoo.com/

Re: hardware to get best performance

From
"Jim C. Nasby"
Date:
ext3 is just ext2 with journalling, and from what I've heard is rather
slow. ext2 is fast because it's async. RFS is fast at losing your data.
:)

UFS is rock-solid and is still being developed. In the past couble years
it's been changed to support some monsterous file and filesystem sizes
and has had soft-updates added. Soft-updates order metadata and data
writes in such a way that the filesystem will always come up in a
consistent state. It does what journaling does without the performance
drawback of a fixed journal space on the drive.

Another advantage FreeBSD has is that the kernel will take process
priority into account when it's scheduling disk IO. This means you can
nice long-running processes and not starve other processes for disk IO.

Some people think having a half-dozen filesystems to choose from is an
advantage. Personally, I'd much rather stick with a filesystem that's
proven itself  for the past 30 years.

On Wed, Nov 24, 2004 at 01:30:06PM +0800, Vincent Chen wrote:
> >> Hi, all
> >>
> >> Does postgresql support thread? Or let me put it this way, will postgresql
> get
> >> better performance on multiple processor host than single processor? What's
> the
> >> best platform, freebsd? linux?
> >
> >If you have multiple connections to the database server making simultaneous
> >queries, multiple processors will be used. This is the normal case for
> >real database use.
> >
> >The best platform for you is probably the one you are most familiar with.
> >
>
> About platform, linux has much more filesystem choice than freebsd. If I put
> postgresql data file on new filesystem like xfs or reiserfs, is it possible
> that overall performance will be better than old filesystem like ufs?
>
>
> Thanks for your response,
>
>
> Vincent Chen
>
>
> -----------------------------------------------------------------
> Yahoo!?_???y?????F
> ???s???y?????F???W???A???H???W?????H???m?I
> http://tw.avatar.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>

--
Jim C. Nasby, Database Consultant               decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"