Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbbL3OLC (ORCPT ); Wed, 30 Dec 2015 09:11:02 -0500 Received: from mout.gmx.net ([212.227.15.18]:63540 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbbL3OK6 (ORCPT ); Wed, 30 Dec 2015 09:10:58 -0500 Subject: Re: [PATCH] BTRFS: Adds an option to select RAID Stripe size To: Sanidhya Solanki References: <1451305451-31222-1-git-send-email-jpage.lkml@gmail.com> <20151229133907.GA4227@suse.cz> <20151229061512.79a41f31@gmail.com> <20151229170611.GB4227@suse.cz> <20151230013946.7c1f0e12@gmail.com> <5683C714.4040705@gmx.com> <20151230045449.7a6c14db@gmail.com> Cc: David Sterba , calestyo@scientia.net, clm@fb.com, jbacik@fb.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org From: Qu Wenruo Message-ID: <5683E5E4.5010006@gmx.com> Date: Wed, 30 Dec 2015 22:10:44 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151230045449.7a6c14db@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:awRCXjmeIFjlwmkoqboBUu6CcaYHkLUxtNuHkYdoqcvAxOfcTTr DDXm7awkptb/PuCmEl5sLoiQ/P+kHC2IrjwxbMvSs2ilBC4IHWYcT1zY6CBLqyS36Gvu2iP T97EycVT2RHqEHArkJ6fTpD8Zbdyrh2yBtfgQx6i+pTiHLiK8xoH0tlz9oXVLu5csLSA9/6 9fetpsipdFiXSsbfZHEBA== X-UI-Out-Filterresults: notjunk:1;V01:K0:dksdrmyxGFg=:X0dRcxg3/LDfYhxKTmF3ef 07cVJAY4lf9rEd0cO3vRQwGOFBJpAV7/PSeodoMDU4JGjYSWUqX8rjs7kK/oDnTdjJa2gj0cp LF1vMx2cgPtfEG6gtLSqtV/19EE+iuLmF9BH+BqcaB+1z18V3Z7UeAvW47R83NGMBzLc9fiGW iwib8FXwLGM6Pv8S0Ty2sZpNKDZhL4oKOlNDObTzDFVZ35PGxV2t7JKfP7VJONB6Tm8Dpmy/W 8+edmsQH1QHM1ZxWkFHz6JnN64mJ0IwlGGsYpvHfK2gIL3Mxhq5re4URzpaYUCTuE2FQncofa WpyTNK+jxfeAvfs+xxdwehJGqGpU5XSpyciOFKucp+Y7AyJTOlL4is39ftsLvYRKEfLPvMbRs Q6wDXJkT2VkAvuxWuXpn5y8YrDqsJF4kNTCsR1ifR4xjcJN/yAuocx1RBY0tps7R9911lObhN SupniTy3Q40mV1U4X/suKf8bS2cT9Fg1MxMZPU1r7SZlxQSy6hSvNH8aMjtI+x5G1uCHTftkQ DjxnSu9ZfGgwR1MQ+sJAiZ8WTe5tWjNNfkUXVR0l9S7/M92vpEFOcOQrN2C0/TDc1iu2Ysgye bUrTqCdW9cApcW3W+pXsaz0cvRAJdfOxTRGs3aBS/dbBDowDt8JLKZuIHwRTbf3XRG10PL4Xs WyoOUhIhhfFX1Igsrt6/B+ZKm6qnXKFAZb6nT6qFpA+knmFo6pl4YDMjnqRXbTvwRo2RaR3qR tyUu4pzUSOXZKvd5zY4SmlxEeefC+JDulADvtHBR0TsK5Wo8Rdd5UB8Nx8zNecLiLo+X1CXpR UsIL/lE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2952 Lines: 81 On 12/30/2015 05:54 PM, Sanidhya Solanki wrote: > On Wed, 30 Dec 2015 19:59:16 +0800 > Qu Wenruo wrote: >> Not really sure about the difference between 2 and 3. > > I should have made it clear before, I was asking the exact use case in > mind when listing the choices. Option 2 would be for SysAdmins running > production software and configuring it as they desire. > Option 3 is what we have in the Kernel now, before my patch, where the > option exists, but it is fixed by the code. You can change it, but you > need to be someone fairly involved in the upstream work (like a > distribution Maintainer). This is what my patch implements (well, this > and option 3). > Option 1 leaves it as a compile time option. > >> When you mention runtime option, did you mean ioctl/mount/balance >> convert option? > > Yes, that is correct. > >> And what's the third one? Default mkfs time option? >> If you can make it mkfs time option, it won't be really hard to make >> it configurable. > > This would be ideal for all use-cases, but make the implementation > much larger than it would be for the other options. Hence, I asked > what the exact use case was for the end-user being targeted. > >> I didn't consider David means something that. >> As far as I read, he means balance convert option along with mkfs >> option. > > Hence, why I asked. > >> At least from what I have learned in recent btrfs development, > He> He> either >> we provide a good enough interfaces (normally, balance convert ioctl >> with mkfs time option) to configure some on-disk fields. > > Just confirming before starting the implementation. >> So fixed kernel value is not a really good idea, and should at least >> be replace by mkfs time option. > > Will do after confirmation. Understood now. Now I am on the same side of David. Which means a runtime interface to change them. (along with mkfs option) If provide some configurable features, then it should be able to be tuned at both right time and mkfs time. Or, just don't touch it until there is really enough user demand. (In stripe_len case, it's also a possible choice, as configurable stripe length doesn't really affect much except RAID5/6) I totally understand that implement will cost you a lot of more time, not only kernel part but also user-tool part. But this also means more patches. No matter what the motivation for you to contribute to btrfs, more patches (except the more time spent) are always good. More patches, more reputation built in community, and more patches also means better split code structures for easier review. And also you will need to do more debugging/tests, to polish your skill. Thanks, Qu > > Thanks > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/