From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH 1/6] block: add support for carrying a stream ID in a bio Date: Tue, 24 Mar 2015 19:42:21 -0600 Message-ID: <5512127D.2040508@kernel.dk> References: <1427210823-5283-1-git-send-email-axboe@fb.com> <1427210823-5283-2-git-send-email-axboe@fb.com> <55119AAE.9030202@bjorling.me> <55119E5E.6020405@kernel.dk> <3A47B4705F6BE24CBB43C61AA73286215067DA@SSIEXCH-MB3.ssi.samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE To: Ming Lin-SSI , =?windows-1252?Q?Matias_Bj=F8?= =?windows-1252?Q?rling?= , Jens Axboe , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" Return-path: Received: from mail-pd0-f175.google.com ([209.85.192.175]:32773 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbbCYBmY (ORCPT ); Tue, 24 Mar 2015 21:42:24 -0400 Received: by pdnc3 with SMTP id c3so11692288pdn.0 for ; Tue, 24 Mar 2015 18:42:23 -0700 (PDT) In-Reply-To: <3A47B4705F6BE24CBB43C61AA73286215067DA@SSIEXCH-MB3.ssi.samsung.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 03/24/2015 04:07 PM, Ming Lin-SSI wrote: >> -----Original Message----- >> From: Jens Axboe [mailto:axboe@kernel.dk] >> Sent: Tuesday, March 24, 2015 10:27 AM >> To: Matias Bj=F8rling; Jens Axboe; linux-kernel@vger.kernel.org; lin= ux- >> fsdevel@vger.kernel.org >> Cc: Ming Lin-SSI >> Subject: Re: [PATCH 1/6] block: add support for carrying a stream ID= in a bio >> >> On 03/24/2015 11:11 AM, Matias Bj=F8rling wrote: >>> On 03/24/2015 04:26 PM, Jens Axboe wrote: >>>> The top bits of bio->bi_flags are reserved for keeping the allocat= ion >>>> pool, set aside the next four bits for carrying a stream ID. That >>>> leaves us with support for 15 streams, >>>> 0 is reserved as a "stream not set" value. >>> >>> 15 streams seem very limited. Can this be extended? e.g. 16 bits. >>> >>> 15 streams is enough for 1-4 applications. More, and applications >>> starts to fight over the same stream id's, leading them to place >>> different age data in same flash blocks and push us back to square = one. >>> >>> I understand that Samsung multi-stream SSD supports a limited amoun= t >>> of streams, more advance implementations should provide higher limi= ts. >> >> Pushing it higher is not a big deal as far as the implementation goe= s, though >> 16 bits might be stealing a bit too much space for this. On 32-bit a= rchs, we >> have 18 bits currently free that we can abuse. The Samsung device su= pports >> 16 streams. That's honestly a lot more than I would expect most devi= ces to >> support in hardware, 16 is a lot of open erase blocks and write appe= nd points. >> Obviously the open channel effort would make that more feasible, tho= ugh. > > Can we use 8 bits at least? I'll test performance with 16 streams. We could, but I still question whether that's really useful. I'd rather= =20 start smaller and go bigger if there's a real use case for it. It wont=20 change the user space ABI if we later make it larger. --=20 Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html