From: | Ruben Rubio <ruben(at)rentalia(dot)com> |
---|---|
To: | Christopher Browne <cbbrowne(at)acm(dot)org> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: shared_buffer optimization |
Date: | 2006-08-09 10:50:13 |
Message-ID: | 44D9BDE5.9060202@rentalia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
So ...
I have tried different values. The best one for one day sentences seems
to be 24576
IO in vmstat has the lowest values
"id" (idle) has the biggest values.
I have created an script that executes all day sentences to try that.
By the way, could u explain a little bit this?
"The "rule of thumb" is to set shared buffers to the lesser of 10000
and 15% of system memory. In your case, that would be the lesser of
10000 and 78643, which is 10000."
Im sorry but im not understanding it at all.
Thanks in advance.
Christopher Browne wrote:
> Quoth ruben(at)rentalia(dot)com (Ruben Rubio):
>> Hi, I have a question with shared_buffer.
>>
>> Ok, I have a server with 4GB of RAM
>> -----
>> # cat /proc/meminfo
>> MemTotal: 4086484 kB
>> [...]
>> -----
>>
>> So, if I want to, for example, shared_buffer to take 3 GB of RAM then
>> shared_buffer would be 393216 (3 * 1024 * 1024 / 8)
>>
>> Postmaster dont start.
>> Error: FATAL: shmat(id=360448) failed: Invalid argument
>>
>>
>> I can set a less value, but not higher than 3 GB.
>>
>> Am I doing something wrong?
>> Any idea?
>
> Yes, you're trying to set the value way too high.
>
> The "rule of thumb" is to set shared buffers to the lesser of 10000
> and 15% of system memory. In your case, that would be the lesser of
> 10000 and 78643, which is 10000.
>
> I'm not aware of any actual evidence having emerged that it is of any
> value to set shared buffers higher than 10000.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE2b3kIo1XmbAXRboRAh12AKCodmhmXZWamrG7MnAf9mhVfubjgwCfa75v
7bgmSzq4F7XpBoEkSpyDqnE=
=3lMc
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Mohan R | 2006-08-09 11:58:54 | unsubscribe |
Previous Message | Stephen Frost | 2006-08-09 10:30:12 | Re: Hardware upgraded but performance still ain't good enough |