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.96) (envelope-from ) id 1wSxB6-000Def-2E for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2026 13:23:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wSxB5-002dr6-0W for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2026 13:23:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wSxB4-002dqx-2m for pgsql-hackers@lists.postgresql.org; Fri, 29 May 2026 13:23:07 +0000 Received: from mail-vs1-xe34.google.com ([2607:f8b0:4864:20::e34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wSxB2-000000008xN-1gLI for pgsql-hackers@postgresql.org; Fri, 29 May 2026 13:23:06 +0000 Received: by mail-vs1-xe34.google.com with SMTP id ada2fe7eead31-63319183a49so5310953137.2 for ; Fri, 29 May 2026 06:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780060982; cv=none; d=google.com; s=arc-20240605; b=jG/XrXGw57Epy28oCne5tGZZZfaKKOmKUEZgSf2mi03Qmk76J9vsOkfACkaHKYu4A7 l7+V+aCGogfalvoi8CUuO62Wmtdm6jpxeyU6goX+KJlYCLTySWUxbujdiqLF2CTpOcNm 9DbncchzVthvJoKUiNvvA051jb1U+3f2KBdIByvFe6p+I3RJTsEmFny2vNZMTfxQHpsC dAsrpIMCipy33+BwxrW7DUPimSq1mGsLJcRRIFCdmHGncN5BIpzIw03aYIYNfZkHMu2f IP+SkaiXoAbr+0d9/qq4tt6wQi1ihK9xqXLsdfQOtFfCqyOcw1aozeyWopHUmAIGQqNd OQeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FRyB+Jw5QLDqXh3EixldJEIHmskpDzv9XYLJuodYAbE=; fh=WO7Ivi//J/XSltrg1wZCaNw6/+vHPgG46FGVLFR+S6k=; b=aiEeUtU/o4DNo3tnpWVOxsTlwiEvBmrHeA4lhGmMzkLhDailfGgg0WH9dqJIsOZPOQ 8PjKJ4eI2xRZnksCoBD63zCpILaxh/srTID5wByKzyVw9YBgSqqYIpDQEs+pLWvPz8Zn 4ahPEN+aM+lx5PsORrwwp2REMP/VbC6yFG0Ir9Qw/onER/yDJR5KzPg991BU3IIBuq4u buNYYElsWLyywGG0NBa8tc6Vipj770YWuStrgjjyQZ0ic9GjTQeEClwT4slIc6I9kS4g CmzcqbnGEZjNzL5Ao1ZHX+D4GaUIpdJjDBgHsqAoqA6T8CEDoib9e9r4X5AGvog/q2i/ vtkA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1780060982; x=1780665782; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FRyB+Jw5QLDqXh3EixldJEIHmskpDzv9XYLJuodYAbE=; b=eyDJRjXcvvd3zEQw9AUCHsSUIdCiIZH54NRvwa+N5Ajayw7FNbag24LxQeqeTpsDBm 33tDDHwdUQyf/TQfoGwxvW6axZF8VDfCDe+KtqAhhjZnX1uN/vXAzvniDeGpsuyyZVY6 7S01DnDtmMTAUb0Vj7iggb3em9+Qm5yIU81kNWg8yyXvCuOJXlSekDZ9gv9wvWP8gYWD Qhv4tro6DRuEkGP+UNQcoafCw/uMbxNCwj9Q3WHtxZ9Bt+JOqZt92ZcJEPOCD84LqNf/ JgmoRmChJvKPJ7Iq5t+RIbgl9bA5HLL9BWvjGiGM42jUCTfCrxq3F1xibhhEpntBbxBV 1Nog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780060982; x=1780665782; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=FRyB+Jw5QLDqXh3EixldJEIHmskpDzv9XYLJuodYAbE=; b=UYypCXJaUQOEpf7H+Qu6Iuy7AIf1Vxa96OmCDeLphvWPQqPSYO3TBMseslEIUDLeav F78k5mfETJRY52HGiXB1J8EF16jGTW6ZBSDsW31CJrKDgLIdyRNk44PebFGHYx6Nkiqw oJZhk74f9sUt7PvwB8bntYK4I2ckFyGLH3/0C+rwZHczHsFri1NO+QCW4BoD9/poDEq9 9XoINMlMYdpx77D70fvY4qKE5uZBuA8I7MoW9uWpqvyM56QPBQbU6E4K2luRUL9jcOX5 XdAjYAPdALHLuBCqHj/U0GfZLzpg7Lrs3YwWRpFfKOYjawHYKII5uRvVfgus0GCY+p9d L9Sw== X-Forwarded-Encrypted: i=1; AFNElJ9YHAG5zP2ZW69u+imc0BVJIhi7p/C8OfaNny0IfNyu93/VZfezb1GT0yeVGAlsAkcjTzuDY5lDOkEgtCJB@postgresql.org X-Gm-Message-State: AOJu0YwXPnCZuO35J46WpN9j1LMU4ak27J4PT+IiB5bXDL0e+zbwPm2X AkaqABA9dNEYMqnNzFHzE//Ha8mx9U2bwDQdgZAH4RlPtb35DSr+GqHJq+XAWvBFXkOhQBi9pvj oqLc3U6B4XJavDQ7pOwIngPvLD5xa0Ld4DxZjrjto X-Gm-Gg: Acq92OHrAhOSTIupB+aGxH90dAHwC2I/dPihlJpq6C+6hWUNwnzo2vGLtXNKb+qZNV3 39WEgryzztLiEZ7FHet285XmPJ/9gDH0Mbd6DnXoIm4oEL1/EnZwdRlX8D/Ut5J4XRvoHrqqXxX VNa7prdKLyVse7Fdd3mjP+74p/f+46kPaN6o5fU9cRS+ivyeYePB4chqPpZ9wn1zeVnHKrwOM79 ED7RL6Lvv2MBtZhUaQQY5EhoMHGEOqYG9TXcsKjBUcw/rQALMS475ElyRbRghtGCytm5AryfdJH fQNYEOsCF6fjjKyl2Ndp+cEt2ROaJcUMiEvv+v+hm9NDq4v5eZA1XppugerHxG5Vab0l4qaTJbP NXsI= X-Received: by 2002:a05:6102:598c:b0:608:9a34:c8ea with SMTP id ada2fe7eead31-6bf309c8a78mr1040833137.10.1780060981725; Fri, 29 May 2026 06:23:01 -0700 (PDT) MIME-Version: 1.0 References: <3wulk62iw2c5n3bxnkdpumm4updcbw3id3ahwkq2566q7m7jbj@qkbdz4rrukbw> In-Reply-To: <3wulk62iw2c5n3bxnkdpumm4updcbw3id3ahwkq2566q7m7jbj@qkbdz4rrukbw> From: Jakub Wartak Date: Fri, 29 May 2026 15:22:50 +0200 X-Gm-Features: AVHnY4Jrped65pWN6gUV4KqwfrQy6k3QyLmLDvpRvc7yc8fPw3jRMDxjNNhHqH4 Message-ID: Subject: Re: Heads Up: cirrus-ci is shutting down June 1st To: Andres Freund Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , Nazir Bilal Yavuz , Jelte Fennema-Nio , Thomas Munro , pgsql-hackers@postgresql.org, Zsolt Parragi , Peter Eisentraut Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 28, 2026 at 9:42=E2=80=AFPM Andres Freund = wrote: [..] > It's definitely slower. I've not fully analyzed why, my suspicion is that= we > end up being rather terribly IO bound - we used bigger and faster disks o= n > cirrus than we have access to with github hosted runners (there are large > runners with more storage, but that's not free). > > A full testrun on master creates about 36GB of data directories. If indiv= idual > tests are fast, that's often not *that* bad, because the tests are over b= efore > linux decides to flush out the data, and then linux never needs to write = that > data back, because we remove the data directories immediately. But once y= ou > get to the point that several tests take more than 30s (the default time = after > which linux writes dirty data back) or enough dirty data accumulates (20%= of > memory IIRC), you have a lot of IO. > > My buildfarm host, which hosts quite a few animals, got a new disk within= the > last year. Here's what smartctl says about disk IO: > > Data Units Read: 43,513,034 [22.2 TB] > Data Units Written: 6,062,401,949 [3.10 PB] > > A nice indication of how much our tests end up writing... `nijna -C build test` (of course without compilation) that was run in dedicated cgroup gave me this /sys/fs/cgroup/my_test_suite/io.stat figure: rbytes=3D88616960 wbytes=3D18406756352 rios=3D13843 wios=3D275457 dbyte= s=3D0 dios=3D0 ~84.5 MB read ~17.1 GB written (sic!!!) 13k read ops 275k write ops So yeah, I've really even didn't think we could generate that much IO there= . btw it's seems to be coming from block controller, so it's number of flushed to disk (so the logically written data but removed without flush? would be way higher; so by what Your' saying we should tweak that 30s writeback right?) Anyway I've tried with way more relaxed dirty/writeback a= nd got this stil onthe same laptop with 32GB RAM: rbytes=3D20934656 wbytes=3D5957296128 rios=3D3040 wios=3D81992 dbytes= =3D0 dios=3D ~20MB read ~5.55 GB written (down from 17GB) 3k read ops 82k write ops And that was without even trying hard: sudo sysctl -w vm.dirty_ratio=3D50 # ~16GB sudo sysctl -w vm.dirty_background_ratio=3D40 sudo sysctl -w vm.dirty_expire_centisecs=3D60000 #default was 3000 as Y= ou said sudo sysctl -w vm.dirty_writeback_centisecs=3D50000 Steps were: sudo mkdir /sys/fs/cgroup/my_test_suite echo $$ | sudo tee /sys/fs/cgroup/my_test_suite/cgroup.procs ninja -C build test cat /sys/fs/cgroup/my_test_suite/io.stat -J.