Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1489489lqd; Thu, 25 Apr 2024 18:26:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDTMZcctpho3mIanOSZgTSQJ81xtt5vOzkozH9H3f8XdOfVtB3i7SANAnCBHg8ca4W7yp2x+D9eRPFyhEkHGRAOxGpZLDnDM4iri4EGw== X-Google-Smtp-Source: AGHT+IFqzqbSTXNISakrq3XLkXXhJX7zitjfvumWwKE8SGrH8yE4Bj/gWEyLJdoM17+tvgX7zcOr X-Received: by 2002:a05:6358:2294:b0:18a:6d15:e758 with SMTP id t20-20020a056358229400b0018a6d15e758mr1545241rwb.3.1714094808840; Thu, 25 Apr 2024 18:26:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714094808; cv=pass; d=google.com; s=arc-20160816; b=isbk+dHXqVFkeAuqg81kyvF8dx46M1bryMsjmeWW1NI6L78nx7IzSsd/sUpvJKN7Y/ f3VnB7ZEsn/4ehBm+LNVL652n5DR86RhSrp7z7PhVIRiPfMUyVqRxJVdEOccxkukohAY y22INyh9Zzla+42Bba1zALAj8dl0Tc46R7Op+ZuFF+yYlMSGsfZNrzvbd+H2KQkW3y14 pAK4SHsSgZ3iQPKSDrqMJbDlCauKeLH1imgiwijiOlXycrsVsvW5XfUrEAden2K/Q4F2 xNFaYMfy3bpw7rQyBLXvGtXXdOsdYRJG4wP09foKlEe9vaPRc+kPT3bPrSzEfSDQ6Hx1 /yZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=1fwPu1RHlGODEbmz6/VjwqeLrSAa2ff3KQXIz1FY/L0=; fh=zeyzGcNvRWRWuWhYxZZ3HDOrxiUFPiiCza52LU4e2I0=; b=ULWiHuoqRedskYHhllf0Xxzs4HMYPWkn0bDbhnWs9c/YPk0rZvkViFrHY/vaXwc6HV tRWCz5R0zhbiPqXUDOPGErdQ+IzkbjpzGjqrW+WTf4HAloVGyiz0jFqREnnGVXicr4ZC 5PmzijAibI2jJmIH9WvfBsGWQQOuU0Y9Tx+Y4D1S5j4mk1W03GmZxjrLrGQ/szkHAMvq O97ASVy4hoBbMxw+ggUGOemwux/FqzCZ0jnwNA51UWXq4o5nnOTkNpY9/90ZuUhRq64w Vqe4EjHHYH98lNAZCPvhbp/gH+5JuZl3hEp6DJHkUofVoyty/qzFdQDxMhuzf0xZQP+r /Xtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=easystack.cn dmarc=pass fromdomain=easystack.cn); spf=pass (google.com: domain of linux-kernel+bounces-159414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=easystack.cn Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a7-20020a637047000000b005f0be9549easi14580721pgn.304.2024.04.25.18.26.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 18:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=easystack.cn dmarc=pass fromdomain=easystack.cn); spf=pass (google.com: domain of linux-kernel+bounces-159414-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=easystack.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6E772283F4F for ; Fri, 26 Apr 2024 01:26:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36FCE1849; Fri, 26 Apr 2024 01:26:40 +0000 (UTC) Received: from mail-m3296.qiye.163.com (mail-m3296.qiye.163.com [220.197.32.96]) (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 7CD897F8; Fri, 26 Apr 2024 01:26:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.96 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094799; cv=none; b=gCHkub3ucTTIesU3JFQs4gwPrrfU/8uWh6lgJGC16/ekT5cjfwDyorbyNh2KxOIy1zJPbgTReSENtM/rMm+yAllKvhbXmKNdnadL0VmjQRUDwkpQq4WpxWXthnx38L8vtva5CJ69kGyVAXy7pM6AkXBfdTSdcU/3VAAdDeU+ejM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714094799; c=relaxed/simple; bh=3xE+7K7ojONhLEDdZlIdx4TbxDGU7UCPcCuHDWCcDH4=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=WyEkKf9kM3Sa+9Bip1uDPbLcZJTjKNKe2Cdbei2HNuusNk2rm3vBpug638GWgHbB1rwNNv3nQTUOodzatXwx085W01/HIQfbWUkw6ORQPRDHKfAflGYHrMyQHDfciTe4+PAVhI6n1OMsZJmR8s5Y3GuI7plpaIIh++FRXM3Cmlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=easystack.cn; spf=pass smtp.mailfrom=easystack.cn; arc=none smtp.client-ip=220.197.32.96 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=easystack.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=easystack.cn Received: from [192.168.122.189] (unknown [218.94.118.90]) by smtp.qiye.163.com (Hmail) with ESMTPA id 426828601B7; Fri, 26 Apr 2024 09:25:55 +0800 (CST) Subject: Re: [PATCH RFC 0/7] block: Introduce CBD (CXL Block Device) To: Gregory Price Cc: Dan Williams , axboe@kernel.dk, John Groves , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, Dongsheng Yang References: <20240422071606.52637-1-dongsheng.yang@easystack.cn> <66288ac38b770_a96f294c6@dwillia2-mobl3.amr.corp.intel.com.notmuch> From: Dongsheng Yang Message-ID: Date: Fri, 26 Apr 2024 09:25:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJQjdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSB8dVk1CTkMYSUgeQktDGFUZERMWGhIXJBQOD1 lXWRgSC1lBWUlKQ1VCT1VKSkNVQktZV1kWGg8SFR0UWUFZT0tIVUpNT0lMTlVKS0tVSkJLS1kG X-HM-Tid: 0a8f18024efa023ckunm426828601b7 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NDI6TDo*HzcwIxY3GFEcNAlL CEhPFEhVSlVKTEpPS0JPTE5NS09NVTMWGhIXVR8UFRwIEx4VHFUCGhUcOx4aCAIIDxoYEFUYFUVZ V1kSC1lBWUlKQ1VCT1VKSkNVQktZV1kIAVlBT0JISTcG 在 2024/4/24 星期三 下午 11:14, Gregory Price 写道: > On Wed, Apr 24, 2024 at 02:33:28PM +0800, Dongsheng Yang wrote: >> >> >> 在 2024/4/24 星期三 下午 12:29, Dan Williams 写道: >>> Dongsheng Yang wrote: >>>> From: Dongsheng Yang >>>> >>>> Hi all, >>>> This patchset introduce cbd (CXL block device). It's based on linux 6.8, and available at: >>>> https://github.com/DataTravelGuide/linux >>>> >>> [..] >>>> (4) dax is not supported yet: >>>> same with famfs, dax device is not supported here, because dax device does not support >>>> dev_dax_iomap so far. Once dev_dax_iomap is supported, CBD can easily support DAX mode. >>> >>> I am glad that famfs is mentioned here, it demonstrates you know about >>> it. However, unfortunately this cover letter does not offer any analysis >>> of *why* the Linux project should consider this additional approach to >>> the inter-host shared-memory enabling problem. >>> >>> To be clear I am neutral at best on some of the initiatives around CXL >>> memory sharing vs pooling, but famfs at least jettisons block-devices >>> and gets closer to a purpose-built memory semantic. >>> >>> So my primary question is why would Linux need both famfs and cbd? I am >>> sure famfs would love feedback and help vs developing competing efforts. >> >> Hi, >> Thanks for your reply, IIUC about FAMfs, the data in famfs is stored in >> shared memory, and related nodes can share the data inside this file system; >> whereas cbd does not store data in shared memory, it uses shared memory as a >> channel for data transmission, and the actual data is stored in the backend >> block device of remote nodes. In cbd, shared memory works more like network >> to connect different hosts. >> > > Couldn't you basically just allocate a file for use as a uni-directional > buffer on top of FAMFS and achieve the same thing without the need for > additional kernel support? Similar in a sense to allocating a file on > network storage and pinging the remote host when it's ready (except now > it's fast!) I'm not entirely sure I follow your suggestion. I guess it means that cbd would no longer directly manage the pmem device, but allocate files on famfs to transfer data. I didn't do it this way because I considered at least a few points: one of them is, cbd_transport actually requires a DAX device to access shared memory, and cbd has very simple requirements for space management, so there's no need to rely on a file system layer, which would increase architectural complexity. However, we still need cbd_blkdev to provide a block device, so it doesn't achieve "achieve the same without the need for additional kernel support". Could you please provide more specific details about your suggestion? > > (The point here is not "FAMFS is better" or "CBD is better", simply > trying to identify the function that will ultimately dictate the form). Thank you for your clarification. totally aggree with it, discussions always make the issues clearer. Thanx > > ~Gregory >