Re: priority on a process

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Chris Palmer <chris(dot)palmer(at)geneed(dot)com>
Cc: "pg-general (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: priority on a process
Date: 2003-05-16 19:49:46
Message-ID: Pine.LNX.4.33.0305161347340.6494-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 16 May 2003, Chris Palmer wrote:

> Scott Marlowe writes:
>
> > Also, if your machine has memory to spare, look at increasing
> > the effect cache size.
>
> Doesn't Linux automatically grow the fs cache/buffer to most of
> available memory? The OP said he was using Linux.
>
> On e.g. OpenBSD you would have to set the size in the kernel config, but
> Istr Linux doesn't need that. Granted, I haven't followed Linux closely
> since the 2.2 days, and I know there has been some VM hilarity in the
> "stable" 2.4 series. So maybe someone can update my old understanding...

Yes, effective_cache_size is the postgresql setting that tells the
postmaster we have "about this much kernel cache" on average.

If it's set low, then postgresql assumes the kernel isn't caching much, if
it's higher, then it assumes it's more likely for data to be "in memory"
and makes index scans more likely than seq scans.

Sorry, I should have pointed out I was talking out about a postgresql
configuration parameter and not a linux one...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Palmer 2003-05-16 19:50:44 Re: priority on a process
Previous Message Ian Harding 2003-05-16 19:36:44 Re: MSSQL -> PostgreSQL