Re: CPUs for new databases

From: Scott Carey <scott(at)richrelevance(dot)com>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: "Christian Elmerot (at) One(dot)com" <ce(at)one(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: CPUs for new databases
Date: 2010-12-03 17:36:43
Message-ID: 15C3CE0E-B25A-42AB-A618-DBB98A678AAF@richrelevance.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On Nov 26, 2010, at 2:30 PM, Greg Smith wrote:

>
> In addition to the memory issues, there's also thread CPU scheduling
> involved here. Ideally the benchmark would pin each thread to a single
> core and keep it there for the runtime of the test, but it's not there
> yet. I suspect one source of variation at odd numbers of threads
> involves processes that bounce between CPUs more than in the more even
> cases.
>

Depends on what you're interested in.

Postgres doesn't pin threads to processors. Postgres doesn't use threads. A STREAM benchmark that used multiple processes, with half SYSV shared and half in-process memory access, would be better. How the OS schedules the processes and memory access is critical. One server might score higher on an optimized 'pin the processes' STREAM test, but be slower in the real world for Postgres because its not testing anything that Postgres can do.

> --
> Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
> PostgreSQL Training, Services and Support www.2ndQuadrant.us
> "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2010-12-03 20:32:32 Re: problem with from_collapse_limit and joined views
Previous Message Robert Haas 2010-12-03 17:16:18 Re: executor stats / page reclaims