Re: Ubutu 12.04 and PostgreSQL9.2.1

From: "ac(at)hsk(dot)hk" <ac(at)hsk(dot)hk>
To: Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>
Cc: "ac(at)hsk(dot)hk" <ac(at)hsk(dot)hk>, "pgsql-general(at)postgresql(dot)org general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Ubutu 12.04 and PostgreSQL9.2.1
Date: 2012-12-07 05:09:38
Message-ID: 8B822A3B-DB60-4E49-AF75-C2CA223C9DE4@hsk.hk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, thank you very much!

On 7 Dec 2012, at 11:47 AM, Ondrej Ivanič wrote:

> Hi,
>
> On 7 December 2012 14:17, ac(at)hsk(dot)hk <ac(at)hsk(dot)hk> wrote:
>> I have questions about Linux Write cache sizing:
>>
>> 1) /proc/sys/vm/dirty_ratio : current value (default) 20
>> 2) /proc/sys/vm/dirty_background_ratio: current value (default) 10
>>
>> I am using Ubuntu 12.04 (8GB RAM) and PostgreSQL 9.2.1, what values of these kernel ratios
>> should be set for better PostgreSQL database performance?
>
> Read this thread:
> http://archives.postgresql.org/pgsql-performance/2011-10/msg00076.php
> Mainly,
> - http://archives.postgresql.org/pgsql-performance/2011-10/msg00078.php
> - and http://archives.postgresql.org/pgsql-performance/2011-10/msg00080.php
>
> To sum up:
> - with 8G RAM you should be fine with the defaults
> - keep keep dirty_ratio lower than the size of your disk controller cache
> - you can use dirty_bytes and dirty_background_bytes in recent kernels
>
> --
> Ondrej Ivanic
> (http://www.linkedin.com/in/ondrejivanic)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2012-12-07 08:59:39 Re: Setting default privs for a user doesn't seem to work.
Previous Message Tom Lane 2012-12-07 04:19:03 Re: Statistics mismatch between n_live_tup and actual row count