Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLca5-0000xZ-Uv for pgsql-general@arkaria.postgresql.org; Sun, 03 Dec 2017 22:17:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLca4-0005OK-Qb for pgsql-general@arkaria.postgresql.org; Sun, 03 Dec 2017 22:17:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLca4-0005OB-D7 for pgsql-general@lists.postgresql.org; Sun, 03 Dec 2017 22:17:48 +0000 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eLcZz-0001dz-4B for pgsql-general@lists.postgresql.org; Sun, 03 Dec 2017 22:17:47 +0000 Received: by mail-wr0-x232.google.com with SMTP id h1so15246742wre.12 for ; Sun, 03 Dec 2017 14:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=jaVbU1r7gD0xj/Yr+mcMsqOQAgTq/SeeBQ4tgCWwIJM=; b=kDm5DDg0f6h4rIQtpdK6yysOhpBVV7dJEdvs17py7vKcFNIqd/EqeP8lpSYVDX96jN qCYtkTb3YszonFoPlvvZilwGEbEU3S1OBHlseXL5qpEZqUNGfg7eKSBLlozZnSmUMSne KI17dPVns0i0uHFnYwcGqSrbGycVEcWz525EJB/uhWeGE0NAYYs1Q8IFLbz7i5TjfCPA YLTfyuR3iBEsHi76/08bGgY5Hmky7PgUOqbNRflRtZaQ/uAInYTG7qzOB0RJJ8NQZKVk W3j2Hto5nR2LGe2WsrYCW/aIc9099jY6QvkYpiOYSWJ80Ms8Qhjwf8+9kYRSMDod81yY WhGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=jaVbU1r7gD0xj/Yr+mcMsqOQAgTq/SeeBQ4tgCWwIJM=; b=rn+MBFw6Tjvleuep60AOHjPrjjVEhMKeM5zYsoLl4/nuF1pNfscm7Wd5hp+1oGi4Av WNHoGf3kJYJruBd4/wi5RDxTvsvAnz8blnsMGLoKIySpBUZRBMCL759lRi18OAsGALfX uAZZeIS9Uq/pGRusqjc6sM9csjvtHYFF+RSY2AbqmONbYXRqrkba48M0bthhKLRiaYrt 3bu1INiy41f4i1b18IJBelj+vkj3OOgBoQpJJkF++1FTQCorCGiEwQF6mwoHYvWaHT4U f3Crd7bvbf1Xfy5cLABFSqgyBSm05yxcs3HikdfXqq6c/p9f6DfjujRBCxqE62mMBKtG vVuA== X-Gm-Message-State: AJaThX5+aoy/UxsfnDzX7WIyFR6itEZt5NZCk5cELQT0IKy03ezdVVqQ +aJ/TSEnHtj7s5HQ3h52TbXlq320 X-Google-Smtp-Source: AGs4zMZrRBeIP7nl6m/Rs+aOOS9mOq2nQOzh6Eqk5Ml1iGCDgcuJZGd7ZpDKvm81gMkclEa6wG3lIw== X-Received: by 10.223.195.50 with SMTP id n47mr11564034wrf.139.1512339461399; Sun, 03 Dec 2017 14:17:41 -0800 (PST) Received: from ?IPv6:2600:70ff:e829::4dda:b5c1:5ae7:8710? ([2600:70ff:e829:0:4dda:b5c1:5ae7:8710]) by smtp.gmail.com with ESMTPSA id l16sm2451865wma.19.2017.12.03.14.17.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Dec 2017 14:17:39 -0800 (PST) From: hvjunk Message-Id: <82D17122-B2DE-4B90-8945-790EF40ED87D@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_88FAD20A-27F3-4647-9FB6-0600910F7BC4" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: building a server Date: Mon, 4 Dec 2017 00:17:36 +0200 In-Reply-To: <955fd3cd-90f7-e744-cd82-c72aada1115d@gmail.com> Cc: pgsql-general@lists.postgresql.org To: Rob Sargent References: <8CFC3898-F163-4C1D-9511-5AAC53EAACE2@gmail.com> <40799b22-a159-939f-c860-f78c3f05b19b@hogranch.com> <955fd3cd-90f7-e744-cd82-c72aada1115d@gmail.com> X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_88FAD20A-27F3-4647-9FB6-0600910F7BC4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 03 Des. 2017, at 23:39 , Rob Sargent wrote: > On 12/03/2017 02:15 PM, John R Pierce wrote: >> On 12/3/2017 12:47 PM, Gmail wrote: >>> So I revisited = https://momjian.us/main/writings/pgsql/hw_selection.pdf = >>> Near the end (page 24) I spotted:=20 >>> Heavy use of server-side functions might generate significant = CPU load >>> Just want to confirm that this referring to workload on the = mainly-single-threaded server not an advocacy for more cores. >>>=20 >> well, if you have significant concurrency with high CPU usage, you = want both more AND faster cores >>=20 >> john r pierce, recycling bits in santa cruz >>=20 > Granted! I suppose I'm looking for confirmation/correction on = believing that for the server to make use of multiple cores is more = dependent on the nature of the queries handled. Concurrency should not = be a huge problem for this project, though I've put pieces in place to = mitigate that issue. I would not say that much on the =E2=80=9Cnature of the queries=E2=80=9D, = but more on the =E2=80=9Cnumber of concurrent sessions doing queries=E2=80= =9D. Granted that with the later postgresql versions, given you=E2=80=99ve= set the needed to enable parallel queries and you have = =E2=80=9Cbig-enough-tables=E2=80=9D some selects does make use of = multiple cores. As they always say: YMMV= --Apple-Mail=_88FAD20A-27F3-4647-9FB6-0600910F7BC4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On 03 Des. 2017, at 23:39 , Rob Sargent <robjsargent@gmail.com> wrote:
On 12/03/2017 02:15 PM, = John R Pierce wrote:
On 12/3/2017 12:47 PM, Gmail = wrote:
So = I revisited https://momjian.us/main/writings/pgsql/hw_selection.pdf
Near the end (page 24) I spotted: 
Heavy use of server-side functions might generate significant = CPU load

Just want to confirm that this = referring to workload on the mainly-single-threaded server not an advocacy for more cores.

well, if you have significant = concurrency with high CPU usage, you want both more AND faster cores

john r = pierce, recycling bits in santa cruz

Granted!  I suppose I'm looking for = confirmation/correction on believing that for the server to make use of multiple cores is more dependent on the nature of the queries handled.  = Concurrency should not be a huge problem for this project, though I've put pieces in place to mitigate that issue.

I would not say = that much on the =E2=80=9Cnature of the queries=E2=80=9D, but more on = the =E2=80=9Cnumber of concurrent sessions doing queries=E2=80=9D. = Granted that with the later postgresql versions, given you=E2=80=99ve = set the needed to enable parallel queries and you have = =E2=80=9Cbig-enough-tables=E2=80=9D some selects does make use of = multiple cores.

As they always say: YMMV
= --Apple-Mail=_88FAD20A-27F3-4647-9FB6-0600910F7BC4--