Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emvqb-0003O7-UY for pgsql-general@arkaria.postgresql.org; Sat, 17 Feb 2018 06:19:46 +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 1emvqa-0005ss-3e for pgsql-general@arkaria.postgresql.org; Sat, 17 Feb 2018 06:19:44 +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 1emvqZ-0005si-PH for pgsql-general@lists.postgresql.org; Sat, 17 Feb 2018 06:19:43 +0000 Received: from mail-yb0-x22c.google.com ([2607:f8b0:4002:c09::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1emvqS-0004mz-SF for pgsql-general@lists.postgresql.org; Sat, 17 Feb 2018 06:19:43 +0000 Received: by mail-yb0-x22c.google.com with SMTP id v135-v6so1313914ybe.2 for ; Fri, 16 Feb 2018 22:19:36 -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:content-transfer-encoding:content-language; bh=h9Yk4R1bSUCBEiTwtB/7XwjcqYEC0GbBWIZSyKqGrCg=; b=UCchbTRZHZjdf5u3ixPuSoByR76at7I/edX29sxjuL7oSUk3xi04/OOU4VHcCsnRVS kv5Lz4Td7ic0i98X71oQGC8hwIHlgpfEOMVlFcCD1tjYbsBdt7G+snyvCnRO4HCpV3ib qAgneAYsLQOa7/v+0OlHVHj/DNvyehmdttbfo7GJhnM6WmHlj8/TTJrsCETPw/IHpSij c1OMAFHxZlGI+VSlaeQBf9wOqYPluY/gznaOp+7iGosT3itw24ZjLqRmafFyRQ0q+MRj WZQM6HFmw/43C3jdYYF5OaRVM+Kr3R/r4hnUzNPT+FhBUwKbMXFF/vXRdQzxbhDqnLro H7MQ== 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:content-transfer-encoding :content-language; bh=h9Yk4R1bSUCBEiTwtB/7XwjcqYEC0GbBWIZSyKqGrCg=; b=Av+cDozPJHNJfHa/3KXpoLaQgSYSKw+ehMThOzm+kiM1m1CcVpD/RRTCIz3Nagb+jc LifgaoRAQUO1WEWIZAqwg3nf3P9StFzbLVJkmYFKHzHDKBDdCJoWhK6SaNJxH7zCsQRV f95vBV9M/UJJhS+hL+8MqEXBmiZEQUmI0u5Ijca/00Tmf5+Qo2hknjoUHEjkNt1xtv6Z 05z3rdrYtXMw8LYEK6wuZ3zKeyxMEgB+Bew+OJEBFmQLwWhZbS7KaDCu4fJQ2mJgwOwG YkuzuCbKqrrkLxKNHvUHx3lOtKFpkPqzQOz6IFx4Xb3ImZ8zBGMfxqSSbNmim780ZkFx sRSg== X-Gm-Message-State: APf1xPAuXcgt3sKRhkezW0Swjwm9D7lBVl1h4Np+xpTjO8fo7XnTcdHS cOfph2MIpY7QP0qIMAHM0mUWARW/ X-Google-Smtp-Source: AH8x226wl8rxacFO59B3dHOs7IhAhgsYj6Rovyg0du6EpBtNwFb1XbR/1qRacdVtasF9O9FEfcLP9A== X-Received: by 10.37.214.83 with SMTP id n80mr6234431ybg.36.1518848374543; Fri, 16 Feb 2018 22:19:34 -0800 (PST) Received: from [192.168.1.151] ([178.54.41.83]) by smtp.gmail.com with ESMTPSA id z186sm1174320ywb.66.2018.02.16.22.19.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 22:19:33 -0800 (PST) Subject: Re: shared_buffers 8GB maximum To: pgsql-general@lists.postgresql.org References: <7tve8ddg1lcf4uejigos0j71kkjd488jad@4ax.com> From: Vitaliy Garnashevich Message-ID: <2b526baa-e7a4-53d1-fa6b-f8b3f9744439@gmail.com> Date: Sat, 17 Feb 2018 08:19:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <7tve8ddg1lcf4uejigos0j71kkjd488jad@4ax.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 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