Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1161103 > unrolled thread
| Started by | Christoph Hellwig <hch@infradead.org> |
|---|---|
| First post | 2015-06-09 09:50 +0200 |
| Last post | 2015-06-13 18:20 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v4 0/8] Support for Open-Channel SSDs Christoph Hellwig <hch@infradead.org> - 2015-06-09 09:50 +0200
Re: [PATCH v4 0/8] Support for Open-Channel SSDs Christoph Hellwig <hch@infradead.org> - 2015-06-11 12:30 +0200
Re: [PATCH v4 0/8] Support for Open-Channel SSDs Matias Bjorling <m@bjorling.me> - 2015-06-13 18:20 +0200
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Date | 2015-06-09 09:50 +0200 |
| Subject | Re: [PATCH v4 0/8] Support for Open-Channel SSDs |
| Message-ID | <pzmsh-8qc-7@gated-at.bofh.it> |
Hi Matias, I've been looking over this and I really think it needs a fundamental rearchitecture still. The design of using a separate stacking block device and all kinds of private hooks does not look very maintainable. Here is my counter suggestion: - the stacking block device goes away - the nvm_target_type make_rq and prep_rq callbacks are combined into one and called from the nvme/null_blk ->queue_rq method early on to prepare the FTL state. The drivers that are LightNVM enabled reserve a pointer to it in their per request data, which the unprep_rq callback is called on durign I/O completion. -- 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/
[toc] | [next] | [standalone]
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Date | 2015-06-11 12:30 +0200 |
| Message-ID | <pA7Ue-2Pi-11@gated-at.bofh.it> |
| In reply to | #1161103 |
On Wed, Jun 10, 2015 at 08:11:42PM +0200, Matias Bjorling wrote: > 1. A get/put flash block API, that user-space applications can use. > That will enable application-driven FTLs. E.g. RocksDB can be integrated > tightly with the SSD. Allowing data placement and garbage collection to > be strictly controlled. Data placement will reduce the need for > over-provisioning, as data that age at the same time are placed in the > same flash block, and garbage collection can be scheduled to not > interfere with user requests. Together, it will remove I/O outliers > significantly. > > 2. Large drive arrays with global FTL. The stacking block device model > enables this. It allows an FTL to span multiple devices, and thus > perform data placement and garbage collection over tens to hundred of > devices. That'll greatly improve wear-leveling, as there is a much > higher probability of a fully inactive block with more flash. > Additionally, as the parallelism grows within the storage array, we can > slice and dice the devices using the get/put flash block API and enable > applications to get predictable performance, while using large arrays > that have a single address space. > > If it too much for now to get upstream, I can live with (2) removed and > then I make the changes you proposed. In this case your driver API really isn't the Linux block API anymore. I think the right API is a simple asynchronous submit with callback into the driver, with the block device only provided by the lightnvm layer. Note that for NVMe it might still make sense to implement this using blk-mq and a struct request, but those should be internal similar to how NVMe implements admin commands. -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Matias Bjorling <m@bjorling.me> |
|---|---|
| Date | 2015-06-13 18:20 +0200 |
| Message-ID | <pAWk3-1fM-35@gated-at.bofh.it> |
| In reply to | #1163121 |
On 06/11/2015 12:29 PM, Christoph Hellwig wrote: > On Wed, Jun 10, 2015 at 08:11:42PM +0200, Matias Bjorling wrote: >> 1. A get/put flash block API, that user-space applications can use. >> That will enable application-driven FTLs. E.g. RocksDB can be integrated >> tightly with the SSD. Allowing data placement and garbage collection to >> be strictly controlled. Data placement will reduce the need for >> over-provisioning, as data that age at the same time are placed in the >> same flash block, and garbage collection can be scheduled to not >> interfere with user requests. Together, it will remove I/O outliers >> significantly. >> >> 2. Large drive arrays with global FTL. The stacking block device model >> enables this. It allows an FTL to span multiple devices, and thus >> perform data placement and garbage collection over tens to hundred of >> devices. That'll greatly improve wear-leveling, as there is a much >> higher probability of a fully inactive block with more flash. >> Additionally, as the parallelism grows within the storage array, we can >> slice and dice the devices using the get/put flash block API and enable >> applications to get predictable performance, while using large arrays >> that have a single address space. >> >> If it too much for now to get upstream, I can live with (2) removed and >> then I make the changes you proposed. > > In this case your driver API really isn't the Linux block API > anymore. I think the right API is a simple asynchronous submit with > callback into the driver, with the block device only provided by > the lightnvm layer. Agree. A group is working on a RocksDB prototype at the moment. When that is done, such an interface would be polished and submitted for review. The first patches here are to lay the groundwork for block I/O FTLs and generic flash block interface. > > Note that for NVMe it might still make sense to implement this using > blk-mq and a struct request, but those should be internal similar to > how NVMe implements admin commands. How about handling I/O merges? In the case where a block API is exposed with a global FTL, filesystems relies on I/O merges for improving performance. If using internal commands, merging has to implemented in the lightnvm stack itself, I rather want to use blk-mq and not duplicate the effort. I've kept the stacking model, so that I/Os go through the queue I/O path and then picked up in the device driver. -- 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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web