Re: Re[2]: [PERFORM] SMP on a heavy loaded database

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: nobody nowhere <devnull(at)mail(dot)ua>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Re[2]: [PERFORM] SMP on a heavy loaded database
Date: 2013-01-04 21:53:17
Message-ID: CAGTBQpZkk38g_Mk-V5BqB9vNqX0EobzAFBZ7i8rSR8Rj0U-bKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Jan 4, 2013 at 6:38 PM, nobody nowhere <devnull(at)mail(dot)ua> wrote:
> On Fri, Jan 4, 2013 at 6:07 PM, nobody nowhere <devnull(at)mail(dot)ua> wrote:
>> 9092 postgres 16 0 4326m 41m 34m S 0.0 0.3 0:00.27 14 postgres: user
>> user_db [local] idle
>> 9098 postgres 16 0 4329m 203m 194m S 3.5 1.3 0:00.65 14 postgres: user
>> user_db [local] idle
>> 9099 postgres 16 0 4327m 45m 38m S 0.0 0.3 0:00.41 14 postgres: user
>> user_db [local] idle
>
> That looks like pg has been pinned to CPU14. I don't think it's pg's
> doing. All I can think of is: check scheduler tweaks, numa, and pg's
> initscript. Just in case it's being pinned explicitly.
>
> Not pinned.
> Forks with tcp connection use other CPU. I just add connections pool and
> change socket to tcp

How interesting. It must be a peculiarity of unix sockets. I know unix
sockets have close to no buffering, task-switching to the consumer
instead of buffering. Perhaps what you're experiencing here is this
"optimization" effect. It's probably not harmful at all. The OS will
switch to another CPU if the need arises.

Have you done any stress testing? Is there any actual performance impact?

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2013-01-04 23:01:56 Re: Re[4]: [PERFORM] Re[2]: [PERFORM] SMP on a heavy loaded database
Previous Message nobody nowhere 2013-01-04 21:38:12 Re[6]: [PERFORM] Re[2]: [PERFORM] SMP on a heavy loaded database