From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.thelounge.net (mail.thelounge.net [91.118.73.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E54F2CCB4 for ; Wed, 12 Jun 2024 22:35:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.118.73.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718231754; cv=none; b=OBXviSk2E6m6+0+rATjpoTVSy/0a/Fq6CT3sEOj2nITIianf37mw30/oUZgM9zS9AbINAaSPqV/ixDJO2Rj+SGw7La8RZK1GnMRQcLmDWR1vIZVsK9R3SDsiFlCsBpXkS1d+pqG2eTCwvY5zCClzQ//J5BAQglPFANj+bmxL3qY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718231754; c=relaxed/simple; bh=JVAAo8urXvm5G6kEG+WyLYxXzLftoDssF5rOkHl4Cmc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IndCjlfrs+IqGDW/izEg3ZEqnqrSrir6PJb/T1+0nuw32QsxI+XkIX4W0WMqZLqk/0bWstfsPJE5irY29BBcRuvakS/uEd1jAUTMCHr+s1Swj0qIzPvkA0afEVafahcQA0wots/K2m5QsPnvOhBajyTFZGF2PcNVurwI6BoqFh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thelounge.net; spf=pass smtp.mailfrom=thelounge.net; arc=none smtp.client-ip=91.118.73.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thelounge.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thelounge.net Received: from [10.10.10.2] (rh.vpn.thelounge.net [10.10.10.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 4W00kB3tDyzXKn; Thu, 13 Jun 2024 00:35:46 +0200 (CEST) Message-ID: <8eea69b5-4abb-46b6-8c7b-05c7ea0bf591@thelounge.net> Date: Thu, 13 Jun 2024 00:35:46 +0200 Precedence: bulk X-Mailing-List: linux-raid@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: RAID-10 near vs. RAID-1 Content-Language: en-US To: Piergiorgio Sartor Cc: linux-raid@vger.kernel.org References: From: Reindl Harald Autocrypt: addr=h.reindl@thelounge.net; keydata= xsDNBFq9ahEBDADEQKxJxY4WUy7Ukg6JbzwAUI+VQYpnRuFKLIvcU+2x8zzf8cLaPUiNhJKN 3fD8fhCc2+nEcSVwLDMoVZfsg3BKM/uE/d2XNb3K4s13g3ggSYW9PCeOrbcRwuIvK5gsUqbj vXSAOcrR7gz/zD6wTYSNnaj+VO4gsoeCzBkjy9RQlHBfW+bkW3coDCK7DocqmSRTNRYrkZNR P1HJBUvK3YOSawbeEa8+l7EbHiW+sdlc79qi8dkHavn/OqiNJQErQQaS9FGR7pA5SvMvG5Wq 22I8Ny00RPhUOMbcNTOIGUY/ZP8KPm5mPfa9TxrJXavpGL2S1DE/q5t4iJb4GfsEMVCNCw9E 6TaW7x6t1885YF/IZITaOzrROfxapsi/as+aXrJDuUq09yBCimg19mXurnjiYlJmI6B0x7S9 wjCGP+aZqhqW9ghirM82U/CVeBQx7afi29y6bogjl6eBP7Z3ZNmwRBC3H23FcoloJMXokUm3 p2DiTcs2XViKlks6Co/TqFEAEQEAAc0mUmVpbmRsIEhhcmFsZCA8aC5yZWluZGxAdGhlbG91 bmdlLm5ldD7CwREEEwEIADsCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQSdK0bNvBQK NnU65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Jp3J7XxaXigJJY 7HoOBA8NwQARAQABwsD2BBgBCAAgFiEEnStGzbwUCjZ1OuTXMxdNWliSt7gFAlq9ahECGwwA CgkQMxdNWliSt7hVMwwAmzm7mHYGuChRV3hbI3fjzH+S6+QtiAH0uPrApvTozu8u72pcuvJW J4qyK5V/0gsFS8pwdC9dfF8FGMDbHprs6wK0rMqaDawAL8xWKvmyi6ZLsjVScA6aM307CEVr v5FJiibO+te+FkzaO9+axEjloSQ9DbJHbE3Sh7tLhpBmDQVBCzfSV7zQtsy9L3mDKJf7rW+z hqO9JA885DHHsVPPhA9mNgfRvzQJn/3fFFzqmRVf7mgBV8Wn8aepEUGAd2HzVAb3f1+TS04P +RI8qKoqeVdZlbwJD59XUDJrnetQrBEfhEd8naW8mHyEWHVJZnSTUIfPz2sneW1Zu2XkfqwV eW+IyDAcYyTXqnEGdFSEgwgzliPJDWm5CHbsU++7Kzar5d5flRgGbtcxqkpl8j0N0BUlN4fA cTqn2HJNlhMSV0ZocQ0888Zaq2S5totXr7yuiDzwrp70m9bJY+VPDjaUtWruf2Yiez3EAhtU K4rYsjPimkSIVdrNM//wVKdCTbO+ Organization: the lounge interactive design In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 12.06.24 um 19:22 schrieb Piergiorgio Sartor: > On Wed, Jun 12, 2024 at 01:04:18AM +0200, Reindl Harald wrote: >> >> >> Am 11.06.24 um 20:31 schrieb Piergiorgio Sartor: >>> I'm setting up a system with 2 SSD M.2 (NVME). >>> >>> I was wondering if would it be better, performace >>> wise, to have a RAID-10 near layout or a RAID-1. >>> >>> Looking around I found only one benchmark: >>> >>> https://strugglers.net/~andy/blog/2019/06/02/exploring-different-linux-raid-10-layouts-with-unbalanced-devices/ >>> >>> Which uses mixed SSD, NVME and SATA. >>> >>> Does anybody have any suggestions, links, or >>> ideas on the topic? >>> >>> BTW, practically speaking, what's the difference, >>> between the two RAIDs? >> >> i wouldn't even consider a RAID10 with two disks, especially with SSD and >> practically you end with a unsupported RAID1 because there are no stripes >> with 2 disks >> > I'm a bit confused here. What do you mean > with "unsupported RAID1"? well, the normal operation mode of a RAID10 isn't only 2 drives > As far as I know, but please correct me if > I'm wrong, a Linux md RAID-10 *near* layout, > with 2 devices, has identical data distribution > as a RAID-1 with 2 devices. > Meaning the 2 devices are a mirror. > > The difference, if I understood it correctly, > is that the RAID-10 has chunks, and hence stripes, > while the RAID-1 does not have stripes. how do you imagine stripes with only two drives? stripes are "half of the file on disk 1, the other half on disk 2" that's not possible with only 2 drives > Furthermore, the read operation on RAID-10 are > interleaved, delivering (for SSDs) double > sequential read speed (for 2 devices), while > the RAID-1 can handle two independent (one per > device) read stream, each with single device > reading speed. but how should this work with only 2 drives?