Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1461983yba; Thu, 16 May 2019 22:46:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4hiTROIiKb1wXqieMT3WbanlVNM1yAgZ4FtGILopGuK7nZYeEZ9G+MvoTtP+IDj+iVDMV X-Received: by 2002:aa7:95bb:: with SMTP id a27mr47642063pfk.30.1558071990702; Thu, 16 May 2019 22:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558071990; cv=none; d=google.com; s=arc-20160816; b=hc05dpej4ISQn262oHFUfwD1rsC60pDt9ciqY/SYOFbQPSvz+Y44WH0WDz4uWg1JK5 FaED207O2I8mFqSlzLaOg9/YT5mIREeV86qYVpY3sxAuuyb6RAiQkkcJWp3Ulb4NgSj7 b0Cf72IgFZ4K/VyCV7NjDO33Xf7FLY8eD5zkpSkP4aw5rGh4Y7+kV8sQ2cODUPWie6Pc m+2uvRGqpg829LAdr+Q6+YDE71a7hahQj+aaao+yUt3yCdroZUUd+0B3jGHF1AfHNbWH AnjcSJQOL0xSuvksZZ9dZTb5rJwiKTbLPiM9BNCx1O7VsD5plX9mJfUU/pFrB8pyZ7Y+ nW1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=QoTb4J0MrDDwjXI5H0Us5qd6vRZEw/A2DnYVdFwNDKs=; b=wu5VKpMdUTBseph7A3XuLeExVj56EzFL4Z3l4UDNZdZkKgUuPdifyGfYxGtz13aNWR NQw6WS6YAMKISHCh+SzqZ9zDFf1G0xa3lI5UeqZF3162uv2CNRFiiLqi5scRy08GKVau GsQAHq65wJx6kK5QchN2u9QPC/5deBElQdLXZIga0QpJxS4IpFXmLa6YTplrg2LFvzmp 4ygaO5jeW+0V78fzvXR4MJR/y2lCtqqM4DpuePe4E7PnJaao0X58dtvdgqRNvSK/g7kw N9qgqfua/vUJyEh5lwVw9y+mcYhzisdr+1bMCnhgv4lIdxrH7PzMpg4VzKzvLCTQrZx4 MG9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AdUEU8ky; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si6838159plp.257.2019.05.16.22.46.07; Thu, 16 May 2019 22:46:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AdUEU8ky; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727839AbfEQFcL (ORCPT + 99 others); Fri, 17 May 2019 01:32:11 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:22443 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbfEQFcL (ORCPT ); Fri, 17 May 2019 01:32:11 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190517053207epoutp01a68a14b9b96eeb8e93e8716d7aa90941~fYW9jn-EY2670026700epoutp01K for ; Fri, 17 May 2019 05:32:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190517053207epoutp01a68a14b9b96eeb8e93e8716d7aa90941~fYW9jn-EY2670026700epoutp01K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1558071127; bh=QoTb4J0MrDDwjXI5H0Us5qd6vRZEw/A2DnYVdFwNDKs=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=AdUEU8kyiPppfK8EiOpBmjPqi8cBeSx0mXpu7jy6Bn3kD3wRG2LdivADeGg5yp3cp 0J09ysVXCuc9RQYhIauxTmu29imNiWpL7SNKRzP+Fq9JCqDAmZojkBjtlGIx0Tg15c c9IS3WPk2Wp7VBU0OisVxeQ14iOu5qsaQcbMPsow= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20190517053206epcas5p4b2e9229062957ac7436e187f43b9036d~fYW9AI5Bn2456024560epcas5p4s; Fri, 17 May 2019 05:32:06 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 7B.D8.04066.6574EDC5; Fri, 17 May 2019 14:32:06 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20190517053206epcas5p275a94194a8e60c0ec38c9f8ad7424570~fYW8tLZYv2772627726epcas5p2-; Fri, 17 May 2019 05:32:06 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190517053206epsmtrp268ab76a813e98e2764488c436d7cc3f0~fYW8sdtQd1717817178epsmtrp2v; Fri, 17 May 2019 05:32:06 +0000 (GMT) X-AuditID: b6c32a4a-973ff70000000fe2-77-5cde47560a17 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 81.63.03662.6574EDC5; Fri, 17 May 2019 14:32:06 +0900 (KST) Received: from JOSHIK01 (unknown [107.111.93.135]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190517053204epsmtip298269f87eb140783bb081bc4f965491c~fYW7U4EYQ2086620866epsmtip2j; Fri, 17 May 2019 05:32:04 +0000 (GMT) From: "kanchan" To: "'Christoph Hellwig'" Cc: , , , , , , In-Reply-To: <20190510170249.GA26907@infradead.org> Subject: RE: [PATCH v5 0/7] Extend write-hint framework, and add write-hint for Ext4 journal Date: Fri, 17 May 2019 11:01:55 +0530 Message-ID: <00fb01d50c71$dd358e50$97a0aaf0$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQJoSeMIlXjPMuci1lQDnd0IsY+e8wLu+qiYAUGsmF+lJrwgsA== Content-Language: en-us X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOKsWRmVeSWpSXmKPExsWy7bCmlm6Y+70Yg8nHZS1+T5/CanF6wiIm i723tC1mzrvDZrFn70kWi8u75rBZzF/2lN3iypRFzA4cHptXaHlsXlLv0bdlFaPH501yASxR XDYpqTmZZalF+nYJXBmXD25kLZgtWHH8xQbmBsa5fF2MnBwSAiYSV349ZAaxhQR2M0pcW6sM YX9ilNj/172LkQvI/sYo8X/tJrYuRg6whj1rYyDiexklFt37yALhPGeUODnlGTtIN5uAqsS9 H71sILaIgK7E2YUvGEFsZoGrjBIXNoeC2JwCxhJvlj4D2ywsECfRcHcCWC8LUO/TjnZWEJtX wFLiz81JTBC2oMTJmU9YIObIS2x/O4cZ4gMFid2fjrKCHCci4CSxckUuRIm4xMujR9hBbpMQ eM0m8WfTGhaIeheJyUuusEPYwhKvjm+BsqUkPr/bywZhF0v8unOUGaK5g1HiesNMqGZ7iYt7 /jKBLGMW0JRYv0sfYhmfRO/vJ0yQAOKV6GgTgqhWlLg36SkrhC0u8XDGEijbQ+Lh282MExgV ZyH5bBaSz2YheWEWwrIFjCyrGCVTC4pz01OLTQuM8lLL9YoTc4tL89L1kvNzNzGCk4+W1w7G Z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MvyL6sefy7I+NjMZ7/i8Yk614sftLn5ckW57t0RDNm/Jmbi87jv 05VYijMSDbWYi4oTAciFmlieAgAA X-CMS-MailID: 20190517053206epcas5p275a94194a8e60c0ec38c9f8ad7424570 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20190425112347epcas2p1f7be48b8f0d2203252b8c9dd510c1b61 References: <1556191202-3245-1-git-send-email-joshi.k@samsung.com> <20190510170249.GA26907@infradead.org> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Christoph, > Including the one this model causes on at least some SSDs where you now statically allocate resources to a stream that is now not globally available. Sorry but can you please elaborate the issue? I do not get what is being statically allocated which was globally available earlier. If you are referring to nvme driver, available streams at subsystem level are being reflected for all namespaces. This is same as earlier. There is no attempt to explicitly allocate (using dir-receive) or reserve streams for any namespace. Streams will continue to get allocated/released implicitly as and when writes (with stream id) arrive. > All for the little log with very short date lifetime that any half decent hot/cold partitioning algorithm in the SSD should be able to detect. With streams, hot/cold segregation is happening at the time of placement itself, without algorithm; that is a clear win over algorithms which take time/computation to be able to do the same. And infrastructure update (write-hint-to-stream-id conversion in block-layer, in-kernel hints etc.) seems to be required anyway for streams to extend its reach beyond nvme and user-space hints. Thanks, -----Original Message----- From: Christoph Hellwig [mailto:hch@infradead.org] Sent: Friday, May 10, 2019 10:33 PM To: Kanchan Joshi Cc: linux-kernel@vger.kernel.org; linux-block@vger.kernel.org; linux-nvme@lists.infradead.org; linux-fsdevel@vger.kernel.org; linux-ext4@vger.kernel.org; prakash.v@samsung.com; anshul@samsung.com Subject: Re: [PATCH v5 0/7] Extend write-hint framework, and add write-hint for Ext4 journal I think this fundamentally goes in the wrong direction. We explicitly designed the block layer infrastructure around life time hints and not the not fish not flesh streams interface, which causes all kinds of problems. Including the one this model causes on at least some SSDs where you now statically allocate resources to a stream that is now not globally available. All for the little log with very short date lifetime that any half decent hot/cold partitioning algorithm in the SSD should be able to detect.