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 1gtN67-0001j6-Nd for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Feb 2019 01:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtN66-0008I2-AX for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Feb 2019 01:42:54 +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 1gtN65-0008HF-Ss for pgsql-bugs@lists.postgresql.org; Tue, 12 Feb 2019 01:42:54 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtN63-0002C5-3x for pgsql-bugs@lists.postgresql.org; Tue, 12 Feb 2019 01:42:52 +0000 Received: by mail-ot1-x341.google.com with SMTP id b3so1755506otp.4 for ; Mon, 11 Feb 2019 17:42:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5NBSHAv59Fnz6Ae5cbM0LF8ZVMJgecIfIV5hrrEGKsM=; b=JLTh1dn5Tyjimgg8rkbZzEbCGs7Q9jX7h7BKbQlA0Ae7Y3s/wCzivlOlxZSdppdTQC SA2f9nCtZhAK2GBQUgXQMnXriVanPXpQ6KVb5kpAlgob2xT1jEFJv2PKX1duy4wPhHiX 3zWNWCCWl8hThleir5U3V8iLBN0A7KC0wsXitjl2iM2CbNMdDGHgDGauKWR7kp5P6v0S R4uGi0LTloPk7/f6i/RL2sIEYiEmvkhsxiTVFY7yw4GxVpiBWLtGkuB3FFFF63JqyLaP SVbPcMG41v06jaLQc0Dd19uBAlr3Trwm9oM8HS51oV9+XQfiVcl+LgexnLyMusR4cwDT gQZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5NBSHAv59Fnz6Ae5cbM0LF8ZVMJgecIfIV5hrrEGKsM=; b=lB1D49HO96GYcerB4iONNQjmepi8PVah6BKVvxXhVynn4QNRrDc1BvpwiVc2EUv6wq Efmq3NA+uMQ+BlvGZCYAPTVbQEF7Qg0wJLLhjGdR1Or1mGcDY89WWSGuyfa+kwI27Emq /So3f14huivfea0EL4MCtvlD2SIIkTt6Qy6SNjsClhxzxZ6ts0Bv4gNsAUOpZ1cCKhdb g1w6YW/nMDWjwyI/Pp5ZsxaUVA7tP0Vf5acUS0Y7mogjGObY/CUQZs2f7xHVW9oG1zSn z8xsRoq6cbV9h2AV4X0zqD+l4g40Wm0aMDmFqcFWFIExEmrpkGFtGSd1+u2lSjRxZS2m A7qA== X-Gm-Message-State: AHQUAuanUxZIwELP8wKhyAcvL3pqD7sfS7HPmt9Y+7HkO4GVWhfSzBsD MIFPoyBoEZ3IFe24pp192cQTg4LX3Bqt86KiKl8+TQ== X-Google-Smtp-Source: AHgI3Ibo5wvAq4p2NEfHbyWPEFnXqGcWxkbLyIUTNe6Gc6NHKN8jMz+0ufdqjpnt60KURc9RC93GxJ15vTguQJHWg/w= X-Received: by 2002:a9d:6353:: with SMTP id y19mr1240489otk.336.1549935770166; Mon, 11 Feb 2019 17:42:50 -0800 (PST) MIME-Version: 1.0 References: <15609-3e1e2b03ff3bdb01@postgresql.org> <877eeohqnk.fsf@news-spur.riddles.org.uk> In-Reply-To: From: Peter Geoghegan Date: Mon, 11 Feb 2019 17:42:39 -0800 Message-ID: Subject: Re: BUG #15609: synchronous_commit=off insert performance regression with secondary indexes To: "Saul, Jean Paolo" Cc: Andrew Gierth , PostgreSQL mailing lists Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Feb 11, 2019 at 5:36 PM Saul, Jean Paolo wrote: > Using prepared and extended. No luck. And your checkpoint settings? The performance you're seeing is pretty bad for a server that has more than 40GB of memory. I can get far superior performance on the same benchmark with a relatively inexpensive workstation, at least on the master branch. Try these for a start if you're using default checkpoint settings, as I suspect you are: checkpoint_timeout=5min min_wal_size=10GB max_wal_size=40GB wal_compression=on backend_flush_after=0 checkpoint_flush_after=256kB checkpoint_completion_target=0.9 -- Peter Geoghegan