Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWH2c-00057l-EE for pgsql-general@arkaria.postgresql.org; Fri, 01 Oct 2021 11:49:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mWH2b-0008Gn-Dy for pgsql-general@arkaria.postgresql.org; Fri, 01 Oct 2021 11:49:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWH2a-0008Gf-Vr for pgsql-general@lists.postgresql.org; Fri, 01 Oct 2021 11:49:25 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mWH2Y-0007L6-Cv for pgsql-general@lists.postgresql.org; Fri, 01 Oct 2021 11:49:24 +0000 Received: by mail-ed1-x532.google.com with SMTP id l7so10029183edq.3 for ; Fri, 01 Oct 2021 04:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=hB1XtulCBU7vUyS8q1b1mW09E67N0JmlIO6T85uKX/s=; b=64J2M1hzaleRj1rgLzp9lhlRF5Rv79ctGUgZsq35uNsqKUL/K6RaQ4PKa2jR7jItwV pDRN21XGgQtVejta8niPtjpreN3cQfxwgpLcvlvYMApJU8PSGJEEmPLIOkVBvAxjwUGc K8ynRCG7plQvtMT1BQ8Gs1Igs7ratVewMZSvGjVz2UN7R9zJPL6Xkpc0uF3B0VYtXbVp DmWm4Gg5ShPEmoYS8jowtA6mUqpTgD4OLBvS0wFJWnXbc1MAWA+wn5gz8YHRAw6GsOhQ gYac8NkpLFcPX0Or8RGtRfR0/Rf72rpA8zgOwUE1gALYkgnmjZRWEQymhT2reWlCzNK1 ALVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=hB1XtulCBU7vUyS8q1b1mW09E67N0JmlIO6T85uKX/s=; b=KaBY0R/aTSK6j50YYoeq9gqSrkaxE8mg7It1+vNob9INNOjdxVvBuc3jDD6P88htP1 moF2xIMHaURQnHSusjAlvdnihHULgAhNypSLkEM2NlalDveNlo/cbrwTVOI8GrLvzhVm REIUqdbQkZClp1xV976BTOo1Sk7av+SpUKGKAUzCECw458deHI0oqP4RiJ321k3Iiql9 wJk8iZte+6YOXVAm2CETqvLIg9AhgPP/5WwLhoXMyb7CF/YZD9CGPSUP2M8DgwBcIV2c /B2Y0grKiB0fVycMe5eoz81fmvH3mlF+Q0hAmZS3DoHm9vBGFAEQsvrc36R0yBmTqYOo ET1Q== X-Gm-Message-State: AOAM533E5xZ+bfM4DNvHBnZwx3NzEoOLg8PE0wdhmwXOwuJaI3wI3kKl ylTTmxcpZ1F82X1XuJImpKmBEg== X-Google-Smtp-Source: ABdhPJy3KAvd8E4F+4s3UqVPacb18u/edUe+0w4CXBKHh+wLpdIvrRIrddy/42BJuEodQ5IPWcY+qw== X-Received: by 2002:a17:906:1e56:: with SMTP id i22mr5820724ejj.173.1633088960628; Fri, 01 Oct 2021 04:49:20 -0700 (PDT) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id de36sm3036927ejc.72.2021.10.01.04.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 04:49:20 -0700 (PDT) Message-ID: Subject: Re: Sysbench tests on PG12 From: Laurenz Albe To: Subhrajyoti Senapati , pgsql-general@lists.postgresql.org Date: Fri, 01 Oct 2021 13:49:19 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-10-01 at 14:22 +0530, Subhrajyoti Senapati wrote: > Was running a few sysbench tests in Postgres12. > Sysbench Test Config > oltp-readwrite-custom > Threads - 500 > Machine: 16 core 64G > > In PG server: > shared_buffers: 16GB > maintenance_work_memory: 16GB > checkpoint_timeout: 1h > max_wal_size: 10GB > wal_sync_method: 'open_sync' > effective_cache_size: 32GB > wal_buffers: -1 > wal_compression: on > > Got some qps dips. > > Changed fsync and full_page_rewrite to 'off'. > Which helped in avoiding these many long dips in performance: > > But fsync ensures DBMS consistency. So, instead of that can I change a few other configurations to avoid these inconsistent performance dips ? Try playing with "bgwriter_flush_after", "checkpoint_flush_after" and "wal_writer_flush_after" and see if that influences the behavior. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com