Received: by 2002:a05:7208:1509:b0:82:bbfa:f723 with SMTP id o9csp225384rbf; Wed, 24 Apr 2024 00:13:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeorgLfOkaAm/HNWtd2LpdbuIP1O2WszfrMJfefArOdv7jDMcylEa569g9bJEGv3pe2xeaam5eH+M6exonbOIrT8mU3nIb+RE9H847ig== X-Google-Smtp-Source: AGHT+IHlQRM5dnf0lD+vTeVhT5xw3EXqaI60SNoMUOp5qOkbsHDHvS+BSZ/BNS//mBQvtC+1yAbT X-Received: by 2002:a2e:2c17:0:b0:2d8:60b9:1d74 with SMTP id s23-20020a2e2c17000000b002d860b91d74mr1303940ljs.18.1713942783604; Wed, 24 Apr 2024 00:13:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713942783; cv=pass; d=google.com; s=arc-20160816; b=i+g2l41vymleTtKJ+q2h962v/xlNDE+zUTVvwqY1b/fhW+5fJg3HQnm2p6/JMAqwML 3y9YHFdoCtKEujQXRAIuaVLDLT/SGQJ900YckELFVWgHKqttyrAFqXihagVd7oBtMUGv HUeL3Vhf/JMN9vd0DPF1MCyENktBbvHlbGyqgqSBzKCHI2wV6oyE+FAJOGF1HUikj+cK vRBzDGTCnWFhlbfCSWgODJ2aE/VbbDjsTlE61CqFJalqEIJw0MAq2W6UDGv1j1Edehw/ z/J87bukWyGGvQG/7M5Wb8H1T5mf6QNG8ZkcWoAjJBRimIO6qSrKtyeMM4/QT39KpotQ Gafw== 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=NMBVUhv9Du22mv/2awLnve42eU10Kvk7kuoW8pxl/1g=; fh=5or+Z/K0oSarz6wkEKrpCK/pkfzYQIl0KwTjpe//NWw=; b=sceflah/mwklvIt57oe82406PLpTN4cjxf7h0B6RrMlJnPzCtWe5Ky17BCbrK5xUDF 0Vg55Mc9iGvTVcw3y964+XWMvef06FL8sBONba9dh4lwNKnKagG0PTNxDHU74CyJbNJn h1WIoAzvBjv5WJ45Kw5MsUQzV6y+qvyBMws3/RPPqi28A0k86pQ/D2IkdTwpWgpq23uj fNBoqFiGXSU+GleGisbuoCiEdoMH67L0kIpxMzMnBci8AsER1neq7F2q7M6dNIgfs96t AR5TnxgRRS79fhpkLu18q/iFPdtdTPDsevsWdte0tIzeKwIqXwv5wkvaWp552ieplSWX wIPw==; 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-156448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=easystack.cn Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dh5-20020a0564021d2500b0056e06aac7c9si8027630edb.516.2024.04.24.00.13.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 00:13:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-156448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156448-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5AD471F22F4B for ; Wed, 24 Apr 2024 07:13:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FF29157A7D; Wed, 24 Apr 2024 07:12:53 +0000 (UTC) Received: from mail-m92250.xmail.ntesmail.com (mail-m92250.xmail.ntesmail.com [103.126.92.250]) (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 21FA11426F; Wed, 24 Apr 2024 07:12:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.126.92.250 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713942772; cv=none; b=cOfG5r+/UK1C0kSDVg+p9V7aqVjSUiGGLmCy0DC2HBNOfdP85C+gsdP/StaBX/wQzs++Pwm4pM4kfQdEcLu5S+8LP6/pXzeJxSsO/Ev6UYFY4gSQu145wOzaenyHGyXdPtWFQkCEv0hY1+Iur8HFdqbjsXK0ZqFtebZP9RvyQQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713942772; c=relaxed/simple; bh=1qq2VCoGtIPzTz8r0fxP/6/Cncs/mnnfnOfT+3WWaB0=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=dUMwrRQ0BPmrE2xDypGptiPZFH2qwASeG9C2QIIkZEuHssgJBaioiWgB6+LJZgKX5fKc0ZuZsllZsYflokycRlL9VxhYbM/Xzgu8sJTNqcXPJGHJ1CmrPC9h93g1YgXtJla/hzVBHFaTeG+dYIcp0IZtagDVpTPliZllWnCQPyI= 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=103.126.92.250 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 0DA0E86023D; Wed, 24 Apr 2024 14:33:30 +0800 (CST) Subject: Re: [PATCH RFC 0/7] block: Introduce CBD (CXL Block Device) To: Dan Williams , axboe@kernel.dk, John Groves Cc: 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: Wed, 24 Apr 2024 14:33:28 +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: <66288ac38b770_a96f294c6@dwillia2-mobl3.amr.corp.intel.com.notmuch> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJQjdXWS1ZQUlXWQ8JGhUIEh9ZQVlCSx0aVk0aTU1KGkkeGEkfTlUZERMWGhIXJBQOD1 lXWRgSC1lBWUlKQ1VCT1VKSkNVQktZV1kWGg8SFR0UWUFZT0tIVUpNT0lMTlVKS0tVSkJLS1kG X-HM-Tid: 0a8f0ecf2fe2023ckunm0da0e86023d X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NRA6MDo*Sjc1DREPQhVRARgZ NTNPCj5VSlVKTEpIQk9LT0pLTENMVTMWGhIXVR8UFRwIEx4VHFUCGhUcOx4aCAIIDxoYEFUYFUVZ V1kSC1lBWUlKQ1VCT1VKSkNVQktZV1kIAVlBSE5IQzcG ?? 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. That is to say, in my view, FAMfs and cbd do not conflict at all; they meet different scenario requirements. cbd simply uses shared memory to transmit data, shared memory plays the role of a data transmission channel, while in FAMfs, shared memory serves as a data store role. Please correct me if I am wrong. Thanx > . >