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 1t15ST-00EfGP-E1 for pgsql-novice@arkaria.postgresql.org; Wed, 16 Oct 2024 14:57:05 +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 1t15SR-004YBQ-5M for pgsql-novice@arkaria.postgresql.org; Wed, 16 Oct 2024 14:57:03 +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.94.2) (envelope-from ) id 1t15SQ-004YBG-O9 for pgsql-novice@lists.postgresql.org; Wed, 16 Oct 2024 14:57:03 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t15SO-001N9g-LG for pgsql-novice@lists.postgresql.org; Wed, 16 Oct 2024 14:57:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1729090618; x=1729695418; i=lazyvirus@gmx.com; bh=3K9djBpIZcX1NRvidq7yGpmedjbszfcFzJGGpi0RWNo=; h=X-UI-Sender-Class:Date:From:To:Subject:Message-ID:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=WUyxemXh3HQ/dXnVLxa0hWAHy9xJwkq/v4uaQBmRpZF4/1zPZB68WZrJgP/rMqHN 29fEz8/lkgubif2mC3HeD3hPYRmJcLAyxqqpixHtH3ow4d9/5FpizxS02ludfliYW tvevn5P31oaxRDm2fWePy8SjN4F0wdjZyw+OGRWHHNwuKckUpxBbUTspzbgHD5wle H9+20jbUY815KT0enmOe4tBJ4G4P+I9H5qdfuWOrKIHoW45fZEGVm+DYn6XLs5ubv eIf7OaPQd7o611AebvtjKUC9+M+XLPKHuVqeUq84DwpeUrfnzCGvwjnpRRmCAushL RtvbWFE9/d96zMF66Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mail.defcon1.lan ([93.15.31.113]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M6lpG-1t1csm1rYM-008FaI for ; Wed, 16 Oct 2024 16:56:58 +0200 Date: Wed, 16 Oct 2024 16:56:55 +0200 From: Bzzzz To: pgsql-novice@lists.postgresql.org Subject: Re: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server Message-ID: <20241016165655.29c2d2a8@msi> In-Reply-To: <89E7D559-F734-4739-9730-7EDDF787910D@flaky.build> References: <89E7D559-F734-4739-9730-7EDDF787910D@flaky.build> Organization: Anyone, anywhere but in banana demokratik republik of france or ueRSS. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:4q7oLE9DBxSy9Z9AwrcheKl7bisl4LO06vgmeELzf9PF9pln++v 3uXHc2oJF+AGcIw0npBAA1F0IwfZJRrann6T2OhQo0ryFP3fvZRk6mDcKMYPI0qhAETiF0L YM6wxUQt6UWR4DXiRoRbLwNcXFph+k4JoahmY3n26AaGvMKTS1NnmxwHWMeBKYzahaeonZg NFvODRWJVvLyq+DtVOo2g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:g+WsBRr9xmI=;GCcVLOdBruFcldWfjxxDKK/uVXG oW6h7fgKj5Qmxguiw/Ou6W4Yhpoc4QyrTCldDj36EkRuJsNuNS5h1Wa9S+qU1blL6EWb88kUZ P3iiggT3nbQapjmmNdnPNxf/C/HV7RwtkoEB11QWoH7+SHmPrR8OiA8kZr1AtPHPXoo3WVXvi i494ogwjbfbOT4xu+VBLu46U1LrBlA7jxnOeM3WFgE/Q/cK/qDpCZr2C+q8QPvA5x78wTHLHg +G+9Lm9QTrZeoRd3nS4K1GygwhVbAgo7lxuNsxx/s/dTd8P27ouB2JiVI4gJLVc0/2xw0cftp ueQdyNKhG8GdIjqLlvDYTmN8OnXB4KuLQBuvwYRcX5GdRA+PXwwf3O+fgXq0hxoYJLZYk4i3b TpFtTYRrDfgj4Z46P4qgEh9z5BsuAKtg0GIn4Fwxq2xnCEPEgSR7/58jIFMXIm2PNARv1bjMU XgPRwEyPEXdkTrIzOJi9gsjPXCKNlBxaJgL/TFt28CmmXg3kUJU2eWVNwcNBIEhKWutDk3Hyz 9l8p64VZDk5FUqxk+0z7H0E3k+Q5MwkmFbi+orwoIElCJwn3lRY/z1xUoMMSnfBiE21KyVf7f eZRVgSOcwxd8ZUXrH5rvm2JL/2QmOClVWGsKoC2EAJeAFqHRk6mTu9wdSGhtxZt3xF+pW4Mdk wFc19Uj3pyn9KhzmT/StwRyhvfDCmFEi8CZ38N1NAFrX7JOgH/Imao1dcQxPyj/7bc2gIR+kr eNGQBAv9TFYae59KjQZJGRtxYwN1ZREVJB9LAQNUEHJhkmjdbzYZwYFnkokAiCq/uSxgYDZ36 m3WnOrGcBXx2vtcHPFHMZFLe7fntluYNudNHmBzP+WqsNWfoH+mMnIqsgZBYT3dneiihW08yk rNDBdDoLxh3CW/A== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 16 Oct 2024 17:06:24 +0300 Onni Hakala wrote: > Hey, Hi, > I have a large dataset of > 100TB which would be very expensive to > store solely into SSD drives. > > I have access to a server which has 2x 3.84TB NVME SSD disks and > large array of HDD drives 8 x 22TB. > > Most of the data that I have in my dataset is very rarely accessed > and is stored only for archival purposes. I can't answer to the rest but with the configuration you describe, you might meet some slow down because HDD speed is not what you think it is when you reach a barrier in disks filling. A test on a 2TB/7200RPM returns that, at the beginning of the disk it is quite fast : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D hdparm --offset 1g --direct -t /dev/sdb1 /dev/sdb1: geometry =3D 243201/255/63, sectors =3D 3907027087, start =3D 2048 Timing O_DIRECT disk reads (offset 1 GB): 504 MB in 3.00 seconds =3D 167.97 MB/sec @ 50%, there's even a small gain (NB : this is a PITA, hdparm displays GB where it uses in fact GiB:( : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D hdparm --offset 931g --direct -t /dev/sdb1 /dev/sdb1: geometry =3D 243201/255/63, sectors =3D 3907027087, start =3D 2048 Timing O_DIRECT disk reads (offset 931 GB): 520 MB in 3.01 seconds =3D 172.73 MB/sec @ 70% of the disk, the loss is only 11% : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D hdparm --offset 1304g --direct -t /dev/sdb1 /dev/sdb1: geometry =3D 243201/255/63, sectors =3D 3907027087, start =3D 2048 Timing O_DIRECT disk reads (offset 1304 GB): 440 MB in 3.01 seconds =3D 146.38 MB/sec @ 80% of the disk the read speed has already lost 21% : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D hdparm --offset 1490g --direct -t /dev/sdb1 /dev/sdb1: geometry =3D 243201/255/63, sectors =3D 3907027087, start =3D 2048 Timing O_DIRECT disk reads (offset 1490 GB): 390 MB in 3.01 seconds =3D 129.68 MB/sec but @ 90% of the disk, the loss climbs @ 30.5% : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D hdparm --offset 1676g --direct -t /dev/sdb1 /dev/sdb1: geometry =3D 243201/255/63, sectors =3D 3907027087, start =3D 2048 Timing O_DIRECT disk reads (offset 1676 GB): 344 MB in 3.01 seconds =3D 114.45 MB/sec So, for a good response time, it is best to never fill your disks further than 75% and it is also always a good practice to avoid some inconvenience, especially when using a COW FS, such as ZFS. Jean-Yves =2D-