Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnIpQ-00Cb5o-ED for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Mar 2024 13:51:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rnIpO-00Dg3N-Bl for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Mar 2024 13:51:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnIpO-00Dg3D-2D for pgsql-bugs@lists.postgresql.org; Thu, 21 Mar 2024 13:51:30 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rnIpK-005g1B-Ib for pgsql-bugs@lists.postgresql.org; Thu, 21 Mar 2024 13:51:29 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-41477b68cb5so1299565e9.2 for ; Thu, 21 Mar 2024 06:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiven.io; s=google; t=1711029086; x=1711633886; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zBA6dpm7HCHumiffy6TTYawODXRjBDekC4502oaSaiI=; b=jxtk9sKOOjwFpK3pXuY+PiRd3zZXiS7YKCraSO5YDXWvTewhcRwTU7WOw13N7vBPFM jpXM6/TEy206UQFx9EjHYCqUdB1usOd2M8bcRv/dBvMKq9Tnh3NkiYncNM5dHgEEtJLW qVdoMJ/FIrkAVgi9wkyoFimxuHWgVd8abEijw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711029086; x=1711633886; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zBA6dpm7HCHumiffy6TTYawODXRjBDekC4502oaSaiI=; b=PCiEz1odxV5qDtdBn/gWrpcvW5fOvstrxZrvnOF0b5n0DRemOUT2mFBFfdTSF+QyOE xZVW2i/xiVWyj0l+IUa9zAHSbj6cK7M3Mx03yKG1obRZGa5UvKu2c5BVkE3CPyAeYcip DSc+eO4kspwZ2zPUa0LHjBrfcPqZRtRSoG+QRimgNUHP9xWmF+RsO0U+YpDzwmaK7jx2 GPC8rM2C6Wm2jZD4fFkI5QcdiFT+CJ8IZaU3TyNg6xXt5Bz0p2hPBaQaPgW+rAFkrD7D KPstN/DEr+AmxMqHNtGDGtYRrlPolkyOx4A7j4/+fZXR71GFM+QgTOj9Qa5VXNV5UeO2 xfDQ== X-Forwarded-Encrypted: i=1; AJvYcCVD5vUZpW+/EFptTANsp6Aq8dpuo7KQwmgQhcVAQaru2Z81E4dwPCi4KtXvMzt+DIwJBI4gPcR2rM2jbWvk/dKo1KU96ID+ZL+LlFeMdRs9 X-Gm-Message-State: AOJu0YwXrIY+Fhx5Q6/NKP9HdV0oRZijwqoDgfbyIsBkRT4P7dFA054J NicVfdRa/kQ1J2Bmzn2X3VUG6/1n+urAEQY2isRXWb9aHlKEDsTRTvZc25HVYI4= X-Google-Smtp-Source: AGHT+IHzNOWNZO7CFKGmrriCWyeLY794qf0kChTYDWd57vUPlkdgxFv+apKmaAO1EtVjFdsQmsRL3g== X-Received: by 2002:a05:600c:358f:b0:414:dae:218f with SMTP id p15-20020a05600c358f00b004140dae218fmr8982727wmq.35.1711029086162; Thu, 21 Mar 2024 06:51:26 -0700 (PDT) Received: from aivenlaptop.localnet ([45.13.105.93]) by smtp.gmail.com with ESMTPSA id f20-20020a05600c155400b00414674a1a40sm5743718wmg.45.2024.03.21.06.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 06:51:25 -0700 (PDT) From: Ronan Dunklau To: Noah Misch Cc: Michael Paquier , pgsql-bugs Subject: Re: FSM Corruption (was: Could not read block at end of the relation) Date: Thu, 21 Mar 2024 14:51:25 +0100 Message-ID: <2493745.irdbgypaU6@aivenlaptop> In-Reply-To: <20240316045834.83@rfd.leadboat.com> References: <20240316030339.03.nmisch@google.com> <20240316045834.83@rfd.leadboat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Le samedi 16 mars 2024, 05:58:34 CET Noah Misch a =C3=A9crit : > > Does "that benchmark" refer to "unlogged tables, 4 parallel copies", > > "logged tables, 4 parallel copies", or something else? Sorry I was quite busy, and will not find time to run more benchmarks until= =20 next week but I'll get back to it. It was 4 parallel copies, logged tables. Results for unlogged tables are=20 similar.=20 > >=20 > > > master: 15.05s > > > patched: 15.24s (+1.25%) > > >=20 > > > If I remove the best and worst run for each of those, the difference > > > falls at +0.7%. > >=20 > > To get some additional perspective on the benchmark, how hard would it = be > > to run one or both of the following? Feel free to decline if difficult. > >=20 > > - Make GetPageWithFreeSpace() just "return InvalidBlockNumber", then re= run > > the>=20 > > benchmark. This should be a lot slower. If not, the bottleneck is > > somewhere unexpected, and we'd need a different benchmark. Hum, it doesn't change much so that benchmark does not indeed exercise that= =20 code too aggressively. I was thinking my initial benchmark for the very fir= st=20 naive version of the patch could work, but I'm afraid it won't show much as= =20 the table size will be cached soon enough.=20 > >=20 > > - Get profiles with both master and patched. (lseek or freespace.c > > functions>=20 > > rising by 0.1%-1% would fit what we know.) >=20 I'll try to run that asap, probably next week unfortunately. > Forgot one more: >=20 > - Your earlier version of the patch, with fewer lseek() but more disuse of > FSM entries. Noted. =2D- Ronan Dunklau