pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
building a server
5+ messages / 4 participants
[nested] [flat]

* building a server
@ 2017-12-03 20:47 Gmail <robjsargent@gmail.com>
  2017-12-03 21:15 ` Re: building a server John R Pierce <pierce@hogranch.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Gmail @ 2017-12-03 20:47 UTC (permalink / raw)
  To: pgsql-general

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.

Thanks

PS The wiki page at https://wiki.postgresql.org/wiki/Database_Hardware lists a reference to a PDF by Greg Smith.  The url vectors off into some proprietary e-book enticement. Is that intentional?=

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: building a server
  2017-12-03 20:47 building a server Gmail <robjsargent@gmail.com>
@ 2017-12-03 21:15 ` John R Pierce <pierce@hogranch.com>
  2017-12-03 21:39   ` Re: building a server Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: John R Pierce @ 2017-12-03 21:15 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: building a server
  2017-12-03 20:47 building a server Gmail <robjsargent@gmail.com>
  2017-12-03 21:15 ` Re: building a server John R Pierce <pierce@hogranch.com>
@ 2017-12-03 21:39   ` Rob Sargent <robjsargent@gmail.com>
  2017-12-03 21:45     ` Re: building a server John R Pierce <pierce@hogranch.com>
  2017-12-03 22:17     ` Re: building a server hvjunk <hvjunk@gmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Rob Sargent @ 2017-12-03 21:39 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org



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.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: building a server
  2017-12-03 20:47 building a server Gmail <robjsargent@gmail.com>
  2017-12-03 21:15 ` Re: building a server John R Pierce <pierce@hogranch.com>
  2017-12-03 21:39   ` Re: building a server Rob Sargent <robjsargent@gmail.com>
@ 2017-12-03 21:45     ` John R Pierce <pierce@hogranch.com>
  1 sibling, 0 replies; 5+ messages in thread

From: John R Pierce @ 2017-12-03 21:45 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 12/3/2017 1:39 PM, Rob Sargent wrote:
> 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.


a single connection will only ever use more than one core if its 
explicitly doing concurrent query.


-- 
john r pierce, recycling bits in santa cruz





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: building a server
  2017-12-03 20:47 building a server Gmail <robjsargent@gmail.com>
  2017-12-03 21:15 ` Re: building a server John R Pierce <pierce@hogranch.com>
  2017-12-03 21:39   ` Re: building a server Rob Sargent <robjsargent@gmail.com>
@ 2017-12-03 22:17     ` hvjunk <hvjunk@gmail.com>
  1 sibling, 0 replies; 5+ messages in thread

From: hvjunk @ 2017-12-03 22:17 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org


> 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 <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 “nature of the queries”, but more on the “number of concurrent sessions doing queries”. Granted that with the later postgresql versions, given you’ve set the needed to enable parallel queries and you have “big-enough-tables” some selects does make use of multiple cores.

As they always say: YMMV=

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2017-12-03 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-03 20:47 building a server Gmail <robjsargent@gmail.com>
2017-12-03 21:15 ` John R Pierce <pierce@hogranch.com>
2017-12-03 21:39   ` Rob Sargent <robjsargent@gmail.com>
2017-12-03 21:45     ` John R Pierce <pierce@hogranch.com>
2017-12-03 22:17     ` hvjunk <hvjunk@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox