Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLbyB-00079r-1i for pgsql-general@arkaria.postgresql.org; Sun, 03 Dec 2017 21:38:39 +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 1eLbyA-0007gG-6m for pgsql-general@arkaria.postgresql.org; Sun, 03 Dec 2017 21:38:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLby9-0007g7-Sl for pgsql-general@lists.postgresql.org; Sun, 03 Dec 2017 21:38:38 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eLby7-0008VY-Fy for pgsql-general@lists.postgresql.org; Sun, 03 Dec 2017 21:38:37 +0000 Received: by mail-pf0-x22a.google.com with SMTP id l24so7047140pfj.6 for ; Sun, 03 Dec 2017 13:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=Ln1uZA5K1L7nd+c55aWDY5VXhoA1l/eF8XoGbnWRhCY=; b=i3RWj9GnhSd6fLAFE64TY7uNLt7nISvOqX3Bg1EcW9L1+oGQJjRw3ZnxWZppeA0Blp 8HkVHzkOfEd0n+ah5OWnorfQyI17/MZ+r6jxxblJiadyTsMAVexXiuTubfJ+5OLYfE0n pXJXVLVNGnEu8ywMxcw3iHayYEforxmRul9r/1T02y4a8Ea4KUCRvGqS5A/Y2A2NXx5K yWMCpfZtMrrt6J1EGi9A7jk1LKFIMGe8oVM/ykORv5H/iUHDa2on0NO2BR+7bU4hMiAY r5gWJ2Lpk1h80BQMoYxCIc1pcEVQc4dB6Q4iavxH5OS20hDtoDSjz5xvSMNH8MIF6arG Cveg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=Ln1uZA5K1L7nd+c55aWDY5VXhoA1l/eF8XoGbnWRhCY=; b=udPTiBhAtMSMhFSq+HrY1Vw25jzb/qPYR6cWO3w/xrOpnCb9dctso+pb16lGXDyx9d 5sFCZ2B8zJGXejEvIrk+zba257xctK2vlP+kVR/SOITOShv/a5vN3oNlTgNqdDJZCTr5 vUJZBkcCSHnNBfNP55719Il1f/x4f0mPEi0XZqAucZxdGdkZcXWa7VEheouJvb4aO4W7 sSd1isvL8COVuSO121hjXB2I3vZYG3pLwItDy0LN4fSix+rPBqpqV8myxCDiJbIRoJ5U g03QulZaRi9mBoCTNdOhbYuLkgGtZfjcsnPRLZcp6pd0e+3+r0pYNLiBuIfkZMSygcz7 L1ZQ== X-Gm-Message-State: AJaThX4wakTSCIPVug+FONB3nubP7xa8qmA+45hu9xCspLdLWiXsgvTU 1ibLbWEOm7ynX2u00FRH2QCoBFwJ X-Google-Smtp-Source: AGs4zMZ1DBxR/a4jHtQSI/g8hN1hmfBpxjv3ABf5p1VAatq4AZqVNbyXo3JnCjr4OBdTLwcn9Z+Q1A== X-Received: by 10.99.5.200 with SMTP id 191mr12243270pgf.450.1512337112277; Sun, 03 Dec 2017 13:38:32 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id a87sm21883502pfg.159.2017.12.03.13.38.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Dec 2017 13:38:31 -0800 (PST) Subject: Re: building a server To: pgsql-general@lists.postgresql.org References: <8CFC3898-F163-4C1D-9511-5AAC53EAACE2@gmail.com> <40799b22-a159-939f-c860-f78c3f05b19b@hogranch.com> From: Rob Sargent Message-ID: <955fd3cd-90f7-e744-cd82-c72aada1115d@gmail.com> Date: Sun, 3 Dec 2017 14:39:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <40799b22-a159-939f-c860-f78c3f05b19b@hogranch.com> Content-Type: multipart/alternative; boundary="------------1F17336DCABC8B708A2ABF90" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------1F17336DCABC8B708A2ABF90 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------1F17336DCABC8B708A2ABF90 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit



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.
--------------1F17336DCABC8B708A2ABF90--