pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vitaliy Garnashevich <vgarnashevich@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: shared_buffers 8GB maximum
Date: Sat, 17 Feb 2018 08:19:31 +0200
Message-ID: <2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com> (raw)
In-Reply-To: <7tve8ddg1lcf4uejigos0j71kkjd488jad@4ax.com>
References: <d9eeeeff-5983-0a67-9852-d6903ca2a618@gmail.com>
	<7tve8ddg1lcf4uejigos0j71kkjd488jad@4ax.com>


> Not necessarily - it depends on exactly what was changed ... which
> unfortunately I don't know for certain.
>
> Any filesystem call is a kernel transition.  That's a Meltdown issue.
> Meltdown can be avoided by using trampoline functions to call the
> (real) kernel functions and isolating each trampoline so that no other
> code immediately follows it.  This wastes some memory but there is
> very little added time cost.
>
>
> Spectre is about snooping within the user space of a single process -
> it has nothing to do with kernel calls.  The issues with Spectre are
> things like untrusted code breaking out of "sandboxes", snooping on
> password handling or encryption, etc.
>
> Fixing Spectre requires purposefully limiting speculative execution of
> code and can significantly affect performance.  But the effects are
> situation dependent.
>

I don't know the details either. But one of proposed fixes was to flush 
CPU caches after doing system calls. That's the reason why I'm asking.


> So now you know that 32GB is better for your workload than 8GB.  But
> that is not necessarily a reason immediately to go crazy with it.  Try
> increasing it gradually - e.g., adding 16GB at a time - and see if the
> additional shared space provides any real benefit.


That's what we're going to do. Thanks!

Regards,
Vitaliy






view thread (11+ messages)  latest in thread

Message-ID: <2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com>
Permalink:  ../2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com/
Also on:    postgresql.org/message-id/2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: vgarnashevich@gmail.com
  Subject: Re: shared_buffers 8GB maximum
  In-Reply-To: <2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com>
  References: <d9eeeeff-5983-0a67-9852-d6903ca2a618@gmail.com> <7tve8ddg1lcf4uejigos0j71kkjd488jad@4ax.com> <2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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