Re: Postgres performance and the Linux scheduler

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Simon Windsor *EXTERN*" <simon(dot)windsor(at)cornfield(dot)me(dot)uk>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres performance and the Linux scheduler
Date: 2011-06-17 07:39:17
Message-ID: D960CB61B694CF459DCFB4B0128514C2068E5962@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Simon Windsor wrote:
> Can the performance of Postgres be boosted, especially on busy
systems, using the none default
> DEADLINE Scheduler?

I think that mostly depends on your storage.

I personally have made one experience where (after weeks of trying
everything
else) I changed the scheduler from CFQ to deadline and immediately got
about
four times better performance. The storage in this case was a SAN.

I don't have enough experience, but my guess is that the smarter your
storage
is, the less the kernel should try to optimize I/O. I assume that in my
case
the kernel's optimizations (which try to optimize things for a physical
hard drive)
and the SAN's optimizations got in each other's way.

As I think is the case for all performance questions, there cannot be a
certain
answer -- the best thing is for you to try it out and see if it does
something for you.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2011-06-17 07:58:57 Re: Invalid byte sequence for encoding "UTF8": 0xedbebf
Previous Message Alban Hertroys 2011-06-17 06:46:50 Re: PostgreSQL 8.4.8 bringing my website down every evening