Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVyYh-0004AZ-BQ for pgsql-performance@arkaria.postgresql.org; Sun, 09 Dec 2018 12:51:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gVyYe-0000rX-1l for pgsql-performance@arkaria.postgresql.org; Sun, 09 Dec 2018 12:51:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVyYd-0000n2-Ia for pgsql-performance@lists.postgresql.org; Sun, 09 Dec 2018 12:51:39 +0000 Received: from mail-yw1-xc44.google.com ([2607:f8b0:4864:20::c44]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVyYZ-0003Iz-OJ for pgsql-performance@lists.postgresql.org; Sun, 09 Dec 2018 12:51:38 +0000 Received: by mail-yw1-xc44.google.com with SMTP id l200so2909960ywe.10 for ; Sun, 09 Dec 2018 04:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=b4CLO4aHQfHZG8ksDQMQhbZGqk8yXhmrnG4Kmee+FAA=; b=shplJUtf+vojqLYNRB9Rxk+5D8NEntepKC3QXd0taRMu+9PSEG+5inpqde2HlP1zHF 980nTQDSncu0AVk6g692m5ahfh80OgnPE5avzXV4yYRx/jbMRTw0DeFwqXX2f/kw/CG4 cJqTzJmRtkK7bOGoyq9ugkEnqn1Q/61h21znD2LmYk8hDriaIfi6jxUWni/eUBpu08S+ PuMbtBjd6xl7muri5e8XWlP/oYUb8tq1EvefTgFcRgnkJ9PbMuowprEV/XS8FiODbFxC zuIiDO0MW1+7AvEXR7T50eTuk8jwuRXP+o6z9aUMHLA5pqGXq+WTq2wLA3g6yGegr0Vp x01Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=b4CLO4aHQfHZG8ksDQMQhbZGqk8yXhmrnG4Kmee+FAA=; b=UjNVR6Q5hY5jPbTcgjcawpSTEKREF+s+wfJv+Nk4i7xo6ILn9dzulYKvMMiJuVIQ/i iWbf72y6mMY04ubSqH1nzn5ChrQtQFvCw50VRL4b/vo9HPiyBXjmDrE4wga/g1fDO8BQ 08lK4VzIgmA16yieXHfOZ9w1+AyQwRzuvq2o5IR3QDQOh6cXrzwF2o7xbWGoppf0Y8hR oCJ/kNl/zPRkTYk+PMRPFnEbhlVFtrAK5nmo4yr1zL40kFv5brAp9iypH5eZ0c47DBXj WSpO1pfk0/VzxRRcky+Y8lOKBRB7nJuDTbWfMzHgqGp9sYX/SgF4UflI8o3rN8AdwCCc +LXw== X-Gm-Message-State: AA+aEWZYt+lxQ76530M9lo6yH0fxpj9l2I4ojNSTsi7TQeuGcdSY5FCj GzJOQn2SihcG559/F3vyXxNtjGg4X1s45aE/ytGg1OnLXR7jNlD3MV1nZ9a2OgygeEoyNvRnZZp QuVACV6btknBREycnwVsUGf0IZOJtrxdDBdughtpGHwguyI038EQo0G1Y64KQwvHeYmK4bK5V7q r+K0wYLliEtk614VOIlTcEP3+srQ== X-Google-Smtp-Source: AFSGD/VQlIyAQuqkASchXL7Z65jsiIJEL1HHakQ9JwdGSNMBYgyfJUHBow8+v1rYqGStI6JOgQ3HGA== X-Received: by 2002:a81:e30b:: with SMTP id q11mr8861175ywl.490.1544359894648; Sun, 09 Dec 2018 04:51:34 -0800 (PST) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id v191sm2763160ywc.102.2018.12.09.04.51.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Dec 2018 04:51:33 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: amazon aroura config - seriously overcommited defaults? (May be Off Topic) To: Andres Freund , Rob Sargent Cc: "pgsql-generallists.postgresql.org" , "pgsql-performance@lists.postgresql.org" References: <51a1e143-a679-d525-90a1-3fa8abecaf00@amazon.com> <20181208231242.t66zpocct36m4o46@alap3.anarazel.de> <7AF20599-CCD4-43D9-962D-3EB7B3E25122@gmail.com> <20181208233818.qu5k5bb4mjklzcqw@alap3.anarazel.de> Message-ID: Date: Sun, 9 Dec 2018 07:51:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181208233818.qu5k5bb4mjklzcqw@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/8/18 6:38 PM, Andres Freund wrote: > On 2018-12-08 15:23:19 -0800, Rob Sargent wrote: >> >>> On Dec 8, 2018, at 3:12 PM, Andres Freund wrote: >>> >>> On 2018-12-08 12:06:23 -0800, Jeremy Schneider wrote: >>>> On RDS PostgreSQL, the default is 25% of your server memory. This seems >>>> to be pretty widely accepted as a good starting point on PostgreSQL. >>> FWIW, I think it's widely cited, but also bad advice. 25% for a OLTP >>> workload on a 1TB machine with a database size above 25% is a terrible >>> idea. >>> >> Sorry, could you please expand “database size above 25%”? 25% of what? > Memory available to postgres (i.e. 100% of the server's memory on a > server dedicated to postgres, less if it's shared duty). > I think the best advice these days is that you need to triangulate to find the best setting for shared_buffers. It's very workload dependent, and there isn't even a semi-reliable rule of thumb. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services