Re: Limited performance on multi core server

Поиск
Список
Период
Сортировка
От Matthew Lunnon
Тема Re: Limited performance on multi core server
Дата
Msg-id 475FD3AC.1030207@rwa-net.co.uk
обсуждение исходный текст
Ответ на Re: Limited performance on multi core server  (Sven Geisler <sgeisler@aeccom.com>)
Ответы Re: Limited performance on multi core server  (Sven Geisler <sgeisler@aeccom.com>)
Список pgsql-performance
Hi Sven,

yes the patch would be great if you could send it to me, we have already had to compile postgres to up the number of function parameters from 32 to 64.

Meanwhile I will try and persuade my colleagues to consider the upgrade option.

Thanks
Matthew

Sven Geisler wrote:
Hi Matthew,

I remember that I also an issue with AMD Opterons before Pg 8.1
There is a specific Opteron behaviour on shared memory locks which adds
a extra "penalty" during the execution time for Pg code before 8.1.
I can you provide my patch for Pg 8.0 which should be adaptable for Pg
7.4 if you can compile PostgreSQL.

But if you can upgrade you should upgrade to Pg 8.2.5 64-bit. The scale
up for your concurrent queries will be great.

Sven.

Matthew Lunnon schrieb: 
Hi,

I have a 4 * dual core 64bit AMD OPTERON server with 16G of RAM, running
postgres 7.4.3.  This has been recompiled on the server for 64 stored
procedure parameters, (I assume this makes postgres 64 bit but are not
sure).  When the server gets under load from database connections
executing reads, lets say 20 - 40 concurrent reads, the CPU's seem to
limit at about 30-35% usage with no iowait reported. If I run a simple
select at this time it takes 5 seconds, the same query runs in 300
millis when the server is not under load so it seems that the database
is not performing well even though there is plenty of spare CPU.  There
does not appear to be large amounts of disk IO and my database is about
5.5G so this should fit comfortably in RAM.

changes to postgresql.sql:

max_connections = 500
shared_buffers = 96000
sort_mem = 10240
effective_cache_size = 1000000

Does anyone have any ideas what my bottle neck might be and what I can
do about it?

Thanks for any help.

Matthew.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend   
 

-- 
Matthew Lunnon
Technical Consultant
RWA Ltd.
mlunnon@rwa-net.co.ukTel: +44 (0)29 2081 5056www.rwa-net.co.uk
--

В списке pgsql-performance по дате отправления:

Предыдущее
От: Sven Geisler
Дата:
Сообщение: Re: Limited performance on multi core server
Следующее
От: Matthew Lunnon
Дата:
Сообщение: Re: Limited performance on multi core server