JP7102482B2 - Memory system and control method - Google Patents

Memory system and control method Download PDF

Info

Publication number
JP7102482B2
JP7102482B2 JP2020177990A JP2020177990A JP7102482B2 JP 7102482 B2 JP7102482 B2 JP 7102482B2 JP 2020177990 A JP2020177990 A JP 2020177990A JP 2020177990 A JP2020177990 A JP 2020177990A JP 7102482 B2 JP7102482 B2 JP 7102482B2
Authority
JP
Japan
Prior art keywords
block
data
host
offset
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020177990A
Other languages
Japanese (ja)
Other versions
JP2021007058A (en
Inventor
伸一 菅野
英樹 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kioxia Corp
Original Assignee
Kioxia Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kioxia Corp filed Critical Kioxia Corp
Priority to JP2020177990A priority Critical patent/JP7102482B2/en
Publication of JP2021007058A publication Critical patent/JP2021007058A/en
Priority to JP2022106944A priority patent/JP7490714B2/en
Application granted granted Critical
Publication of JP7102482B2 publication Critical patent/JP7102482B2/en
Priority to JP2023180929A priority patent/JP2023174933A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明の実施形態は、不揮発性メモリを制御する技術に関する。 An embodiment of the present invention relates to a technique for controlling a non-volatile memory.

近年、不揮発性メモリを備えるメモリシステムが広く普及している。 In recent years, memory systems including non-volatile memory have become widespread.

このようなメモリシステムの一つとして、NANDフラッシュ技術ベースのソリッドステートドライブ(SSD)が知られている。 As one of such memory systems, a solid state drive (SSD) based on NAND flash technology is known.

データセンターのサーバにおいても、ストレージとしてSSDが使用されている。サーバのようなホスト計算機において利用されるストレージにおいては、高いI/O性能が求められている。このため、最近では、ホストとストレージとの間の新たなインタフェースが提案され始めている。 SSDs are also used as storage in data center servers. High I / O performance is required for storage used in a host computer such as a server. For this reason, new interfaces between hosts and storage have recently begun to be proposed.

Yiying Zhang, 外, "De-indirection for flash-based SSDs with nameless writes." FAST. 2012, [online], [平成29年9月13日検索], インターネット<URL: https://www.usenix.org/system/files/conference/fast12/zhang.pdf >Yiying Zhang, Outside, "De-indirection for flash-based SSDs with nameless writes." FAST. 2012, [online], [Search September 13, 2017], Internet <URL: https://www.usenix. org / system / files / conference / fast12 / zhang.pdf>

しかし、一般に、NAND型フラッシュメモリの制御は複雑であるため、I/O性能を改善するための新たなインタフェースの実現に際しては、ホストとストレージ(メモリシステム)との間の適切な役割分担を考慮することが必要とされる。 However, in general, the control of NAND flash memory is complicated, so when realizing a new interface for improving I / O performance, consider the appropriate division of roles between the host and storage (memory system). Is required to do.

本発明が解決しようとする課題は、I/O性能の改善を図ることができるメモリシステムおよび制御方法を提供することである。 An object to be solved by the present invention is to provide a memory system and a control method capable of improving I / O performance.

実施形態によれば、ホストに接続可能なメモリシステムは、各々が消去動作の単位である複数のブロックを含む不揮発性メモリと、前記不揮発性メモリに電気的に接続されたコントローラとを具備する。前記コントローラは、第1のデータの書き込みを要求し且つ前記第1のデータが書き込まれるべきドメインの識別子と前記第1のデータに対応する論理アドレスとを指定し、前記第1のデータが書き込まれるべきブロックの識別子を指定しないライトコマンドを前記ホストから受信した場合、前記複数のドメインから、前記指定された識別子に関連付けられたドメインを選択し、前記選択されたドメインに属するブロックの集合から、前記第1のデータが書き込まれるべき第1のブロックを割り当て、前記第1のデータを前記第1のブロック内の第1の記憶位置に書き込む。前記コントローラは、前記第1のブロックの前記識別子と前記第1のブロック内のオフセットアドレスとを使用して前記第1の記憶位置を前記ホストに通知する。 According to the embodiment, the memory system connectable to the host includes a non-volatile memory including a plurality of blocks, each of which is a unit of erasing operation, and a controller electrically connected to the non-volatile memory. The controller requests the writing of the first data, specifies the identifier of the domain to which the first data is to be written, and the logical address corresponding to the first data, and the first data is written. When a write command that does not specify the identifier of the block to be specified is received from the host, the domain associated with the specified identifier is selected from the plurality of domains, and the block belonging to the selected domain is selected. A first block in which the first data is to be written is assigned, and the first data is written in the first storage position in the first block. The controller notifies the host of the first storage position by using the identifier of the first block and the offset address in the first block.

ホストと実施形態のメモリシステム(フラッシュストレージデバイス)との関係を示すブロック図。The block diagram which shows the relationship between the host and the memory system (flash storage device) of embodiment. 従来型SSDとホストとの間の役割分担と、同実施形態のフラッシュストレージデバイスとホストとの間の役割分担とを説明するための図。The figure for demonstrating the division of roles between a conventional SSD and a host, and the division of roles between a flash storage device and a host of the same embodiment. 複数のホストと複数のフラッシュストレージデバイスとの間のデータ転送がネットワーク機器を介して実行される計算機システムの構成例を示すブロック図。A block diagram showing a configuration example of a computer system in which data transfer between a plurality of hosts and a plurality of flash storage devices is executed via network devices. 同実施形態のメモリシステムの構成例を示すブロック図。The block diagram which shows the configuration example of the memory system of the same embodiment. 同実施形態のメモリシステムに設けられたNANDインタフェースと複数のNAND型フラッシュメモリダイとの関係を示すブロック図。The block diagram which shows the relationship between the NAND interface provided in the memory system of the same embodiment, and a plurality of NAND type flash memory dies. 複数のブロックの集合によって構築されるスーパーブロックの構成例を示す図。The figure which shows the composition example of the super block constructed by the set of a plurality of blocks. 同実施形態のメモリシステムに適用されるライトコマンドを説明するための図。The figure for demonstrating the write command applied to the memory system of the same embodiment. 図7のライトコマンドに対するレスポンスを説明するための図。The figure for demonstrating the response to the write command of FIG. 同実施形態のメモリシステムに適用されるTrimコマンドを説明するための図。The figure for demonstrating the Trim command applied to the memory system of the same embodiment. 図8のレスポンスに含まれる物理アドレスを規定するブロック番号およびオフセットを説明するための図。The figure for demonstrating the block number and offset which define the physical address included in the response of FIG. ライトコマンドに応じて実行される書き込み動作とこのライトコマンドに対するレスポンスに含まれる返値との関係を説明するための図。The figure for demonstrating the relationship between the write operation executed in response to a write command and the return value contained in the response to this write command. 不良ページをスキップする書き込み動作を説明するための図。The figure for demonstrating the writing operation which skips a bad page. 不良ページをスキップする書き込み動作の別の例を説明するための図。Diagram to illustrate another example of a write operation that skips bad pages. 論理アドレスとデータのペアをブロック内のページに書き込む動作を説明するための図。Diagram to illustrate the operation of writing a logical address / data pair to a page in a block. データをブロック内のページのユーザデータ領域に書き込み、このデータの論理アドレスをこのページの冗長領域に書き込む動作を説明するための図。The figure for demonstrating the operation of writing data to the user data area of a page in a block, and writing the logical address of this data to the redundant area of this page. スーバーブロックが使用される場合におけるブロック番号とオフセットとの関係を説明するための図。The figure for demonstrating the relationship between a block number and an offset when a super block is used. ホストと同実施形態のメモリシステムとによって実行される書き込み動作処理のシーケンスを示すシーケンスチャート。A sequence chart showing a sequence of write operation processes executed by the host and the memory system of the same embodiment. すでに書き込まれているデータに対する更新データを書き込むデータ更新動作を示す図。The figure which shows the data update operation which writes the update data for the data which has already been written. 同実施形態のメモリシステムによって管理されるブロック管理テーブルを更新する動作を説明するための図。The figure for demonstrating the operation of updating the block management table managed by the memory system of the same embodiment. ホストによって管理されるルックアップテーブル(論理物理アドレス変換テーブル)を更新する動作を説明するための図。The figure for demonstrating the operation of updating the look-up table (logical-physical address translation table) managed by a host. 無効化すべきデータに対応する物理アドレスを示すホストからの通知に応じてブロック管理テーブルを更新する動作を説明するための図。The figure for demonstrating the operation of updating the block management table in response to the notification from the host which shows the physical address corresponding to the data to be invalidated. 同実施形態のメモリシステムに適用されるリードコマンドを説明するための図。The figure for demonstrating the read command applied to the memory system of the same embodiment. 同実施形態のメモリシステムによって実行されるリード動作を説明するための図。The figure for demonstrating the read operation performed by the memory system of the same embodiment. ホストからのリードコマンドに応じて、異なる物理記憶位置にそれぞれ格納されているデータ部をリードする動作を説明するための図。The figure for demonstrating the operation of reading the data part stored in each of the different physical storage positions according to the read command from a host. ホストと同実施形態のメモリシステムとによって実行されるリード処理のシーケンスを示すシーケンスチャート。A sequence chart showing the sequence of read processing performed by the host and the memory system of the same embodiment. 同実施形態のメモリシステムに適用されるガベージコレクション(GC)制御コマンドを説明するための図。The figure for demonstrating the garbage collection (GC) control command applied to the memory system of the same embodiment. 同実施形態のメモリシステムに適用されるGC用コールバックコマンドを説明するための図。The figure for demonstrating the callback command for GC applied to the memory system of the same embodiment. 同実施形態のメモリシステムによって実行されるガベージコレクション(GC)動作の手順を示すシーケンスチャート。A sequence chart showing the procedure of garbage collection (GC) operation performed by the memory system of the same embodiment. ガベージコレクション(GC)のために実行されるデータコピー動作の例を説明するための図。The figure for demonstrating the example of the data copy operation performed for garbage collection (GC). 図29のデータコピー動作の結果に基づいて更新されるホストのルックアップテーブルの内容を説明するための図。FIG. 29 is a diagram for explaining the contents of the host lookup table updated based on the result of the data copy operation of FIG. 29. ライトコマンドに対するレスポンスとGC用コールバック処理との関係を説明するための図。The figure for demonstrating the relationship between the response to a write command and the callback processing for GC. 同実施形態のメモリシステムに適用されるガベージコレクション(GC)制御コマンドの別の例を説明するための図。The figure for demonstrating another example of the garbage collection (GC) control command applied to the memory system of the same embodiment. 同実施形態のメモリシステムに適用されるGC用コールバックコマンドの別の例を説明するための図。The figure for demonstrating another example of the callback command for GC applied to the memory system of the same embodiment. 同実施形態のメモリシステムによって実行される書き込み/リード/GC動作を説明するための図。The figure for demonstrating the write / read / GC operation performed by the memory system of the same embodiment. 参照カウントを管理するためのブロック管理テーブルの構成例を示す図。The figure which shows the configuration example of the block management table for managing the reference count. 同実施形態のメモリシステムに適用されるデュプリケートコマンドを説明するための図。The figure for demonstrating the duplicate command applied to the memory system of the same embodiment. 参照カウントを1減らすためのTrimコマンドを説明するための図。The figure for demonstrating the Trim command for decrementing a reference count by one. ホストと同実施形態のメモリシステムとによって実行される参照カウントインクリメント/デクリメント処理を示すシーケンスチャート。A sequence chart showing reference count increment / decrement processing performed by the host and the memory system of the same embodiment.

以下、図面を参照して、実施形態を説明する。 Hereinafter, embodiments will be described with reference to the drawings.

まず、図1を参照して、一実施形態に係るメモリシステムを含む計算機システムの構成を説明する。 First, the configuration of the computer system including the memory system according to the embodiment will be described with reference to FIG.

このメモリシステムは、不揮発性メモリにデータを書き込み、不揮発性メモリからデータを読み出すように構成された半導体ストレージデバイスである。このメモリシステムは、NANDフラッシュ技術ベースのフラッシュストレージデバイス3として実現されている。 This memory system is a semiconductor storage device configured to write data to a non-volatile memory and read data from the non-volatile memory. This memory system is realized as a flash storage device 3 based on the NAND flash technology.

この計算機システムは、ホスト(ホストデバイス)2と、複数のフラッシュストレージデバイス3とを含んでいてもよい。ホスト2は、複数のフラッシュストレージデバイス3によって構成されるフラッシュアレイをストレージとして使用するように構成されたサーバであってもよい。ホスト(サーバ)2と複数のフラッシュストレージデバイス3は、インタフェース50を介して相互接続される(内部相互接続)。この内部相互接続のためのインタフェース50としては、これに限定されないが、PCI Express(PCIe)(登録商標)、NVM Express(NVMe)(登録商標)、Ethernet(登録商標)、NVMe over Fabrics(NVMeOF)等を使用し得る。 This computer system may include a host (host device) 2 and a plurality of flash storage devices 3. The host 2 may be a server configured to use a flash array composed of a plurality of flash storage devices 3 as storage. The host (server) 2 and the plurality of flash storage devices 3 are interconnected via the interface 50 (internal interconnection). The interface 50 for this internal interconnection is not limited to, but is limited to PCI Express (PCIe) (registered trademark), NVM Express (NVMe) (registered trademark), Ethernet (registered trademark), NVMe over Fabrics (NVMeOF). Etc. can be used.

ホスト2として機能するサーバの典型例としては、データセンター内のサーバが挙げられる。 A typical example of a server that functions as host 2 is a server in a data center.

ホスト2がデータセンター内のサーバによって実現されるケースにおいては、このホスト(サーバ)2は、ネットワーク51を介して複数のエンドユーザ端末(クライアント)61に接続されてもよい。ホスト2は、これらエンドユーザ端末61に対して様々なサービスを提供することができる。 In the case where the host 2 is realized by a server in the data center, the host (server) 2 may be connected to a plurality of end user terminals (clients) 61 via the network 51. The host 2 can provide various services to these end-user terminals 61.

ホスト(サーバ)2によって提供可能なサービスの例には、(1)システム開発プラットフォームを各クライアント(各エンドユーザ端末61)に提供するプラットホーム・アズ・ア・サービス(PaaS)、(2)仮想サーバのようなインフラストラクチャを各クライアント(各エンドユーザ端末61)に提供するインフラストラクチャ・アズ・ア・サービス(IaaS)、等がある。 Examples of services that can be provided by the host (server) 2 include (1) a platform as a service (PaaS) that provides a system development platform to each client (each end user terminal 61), and (2) a virtual server. There is an infrastructure as a service (IAaS), etc. that provides such an infrastructure to each client (each end user terminal 61).

複数の仮想マシンが、このホスト(サーバ)2として機能する物理サーバ上で実行されてもよい。ホスト(サーバ)2上で走るこれら仮想マシンの各々は、対応する幾つかのクライアント(エンドユーザ端末61)に各種サービスを提供するように構成された仮想サーバとして機能することができる。 A plurality of virtual machines may be executed on a physical server that functions as the host (server) 2. Each of these virtual machines running on the host (server) 2 can function as a virtual server configured to provide various services to a number of corresponding clients (end-user terminals 61).

ホスト(サーバ)2は、フラッシュアレイを構成する複数のフラッシュストレージデバイス3を管理するストレージ管理機能と、エンドユーザ端末61それぞれに対してストレージアクセスを含む様々なサービスを提供するフロントエンド機能とを含む。 The host (server) 2 includes a storage management function for managing a plurality of flash storage devices 3 constituting a flash array, and a front-end function for providing various services including storage access to each of the end user terminals 61. ..

従来型SSDにおいては、NAND型フラッシュメモリのブロック/ページの階層構造はSSD内のフラッシュトランスレーション層(FTL)によって隠蔽されている。つまり、従来型SSDのFTLは、(1)論理物理アドレス変換テーブルとして機能するルックアップテーブルを使用して、論理アドレスそれぞれとNAND型フラッシュメモリの物理アドレスそれぞれとの間のマッピングを管理する機能、(2)ページ単位のリード/ライトとブロック単位の消去動作とを隠蔽するための機能と、(3)NAND型フラッシュメモリのガベージコレクション(GC)を実行する機能、等を有している。論理アドレスそれぞれとNAND型フラッシュメモリの物理アドレスの間のマッピングは、ホストからは見えない。NAND型フラッシュメモリのブロック/ページ構造もホストからは見えない。 In a conventional SSD, the block / page hierarchy of the NAND flash memory is hidden by the flash translation layer (FTL) in the SSD. That is, the FTL of the conventional SSD is (1) a function of managing the mapping between each logical address and each physical address of the NAND flash memory by using a lookup table that functions as a logical physical address conversion table. It has (2) a function for concealing read / write in page units and erasing operation in block units, and (3) a function for executing garbage collection (GC) of NAND flash memory. The mapping between each logical address and the physical address of the NAND flash memory is invisible to the host. The block / page structure of NAND flash memory is also invisible to the host.

一方、ホストにおいても、一種のアドレス変換(アプリケーションレベルアドレス変換)が実行されることがある。このアドレス変換は、アプリケーションレベルアドレス変換テーブルを使用して、アプリケーション用の論理アドレスそれぞれとSSD用の論理アドレスそれぞれとの間のマッピングを管理する。また、ホストにおいても、SSD用の論理アドレス空間上に生じるフラグメントの解消のために、この論理アドレス空間上のデータ配置を変更するための一種のGC(アプリケーションレベルGC)が実行される。 On the other hand, a kind of address translation (application level address translation) may be performed on the host as well. This address translation uses an application-level address translation table to manage the mapping between each logical address for an application and each logical address for an SSD. Also, on the host, a kind of GC (application level GC) for changing the data arrangement on the logical address space is executed in order to eliminate the fragments generated on the logical address space for SSD.

しかし、ホストおよびSSDがそれぞれアドレス変換テーブルを有するという冗長な構成(SSDは論理物理アドレス変換テーブルとして機能するルックアップテーブルを有し、ホストはアプリケーションレベルアドレス変換テーブルを有する)においては、これらアドレス変換テーブルを保持するために膨大なメモリリソースが消費される。さらに、ホスト側のアドレス変換とSSD側のアドレス変換とを含む2重のアドレス変換は、I/O性能を低下させる要因にもなる。 However, in a redundant configuration in which the host and the SSD each have an address translation table (the SSD has a lookup table that functions as a logical physical address translation table, and the host has an application level address translation table), these address translations. A huge amount of memory resources are consumed to hold the table. Further, the double address translation including the address translation on the host side and the address translation on the SSD side also becomes a factor of lowering the I / O performance.

さらに、ホスト側のアプリケーションレベルGCは、SSDへのデータ書き込み量を実際のユーザデータ量の数倍(例えば2倍)程度に増やす要因となる。このようなデータ書き込み量の増加は、SSDのライトアンプリフィケーションを増加させてはいないが、システム全体のストレージ性能を低下させ、またSSDの寿命も短くする。 Further, the application level GC on the host side is a factor that increases the amount of data written to the SSD to several times (for example, twice) the amount of actual user data. Such an increase in the amount of data written does not increase the write amplification of the SSD, but it reduces the storage performance of the entire system and shortens the life of the SSD.

このような問題点を解消するために、従来型SSDのFTLの機能の全てをホストに移すという対策も提案されている。 In order to solve such a problem, a measure has been proposed in which all the FTL functions of the conventional SSD are transferred to the host.

しかし、この対策を実装するためには、NAND型フラッシュメモリのブロックおよびページをホストが直接的にハンドリングすることが必要となる。NAND型フラッシュメモリの容量はNAND型フラッシュメモリの世代毎に増加しており、これに伴ってNAND型フラッシュメモリのブロックサイズ/ページサイズも世代毎に異なる。このためホスト2では異なるブロックサイズ・ページサイズのNAND型フラッシュメモリを混在して使用することが想到される。異なるブロックサイズ/ページサイズを扱うことはホストにとっては困難である。また、様々な製造上の理由などにより発生する予測不可能な数の不良ページ(バッドページ)が存在することがありうるので、ブロック内の実質的に利用可能なページ数がブロック毎に異なることが想定され、そのNAND型フラッシュメモリ内のブロックサイズがブロック毎に異なる場合もあり得る。バッドページおよび不均一なブロックサイズをハンドリングすることは、ホストにとってはなおさら困難である。 However, in order to implement this countermeasure, it is necessary for the host to directly handle the blocks and pages of the NAND flash memory. The capacity of the NAND flash memory is increasing for each generation of the NAND flash memory, and the block size / page size of the NAND flash memory is also different for each generation. Therefore, it is conceivable that the host 2 uses NAND flash memories having different block sizes and page sizes in a mixed manner. Dealing with different block / page sizes is difficult for the host. In addition, there may be an unpredictable number of bad pages (bad pages) that occur due to various manufacturing reasons, so the number of pages that can be practically used in a block differs from block to block. Is assumed, and the block size in the NAND flash memory may differ from block to block. Handling bad pages and non-uniform block sizes is even more difficult for hosts.

そこで、本実施形態では、FTLの役割はホスト2とフラッシュストレージデバイス3との間で分担される。ホスト2は論理物理アドレス変換テーブルとして機能するルックアップテーブルを管理するが、書き込みに使用すべきブロックの選択は、ホスト2ではなく、フラッシュストレージデバイス3によって実行される。また、GCも、ホスト2ではなく、フラッシュストレージデバイス3によって実行される。以下では、ホスト2に移されたFTL機能をグローバルFTLと称する。 Therefore, in the present embodiment, the role of FTL is shared between the host 2 and the flash storage device 3. The host 2 manages a look-up table that functions as a logical-physical address translation table, but the selection of blocks to be used for writing is performed by the flash storage device 3 instead of the host 2. Also, GC is executed by the flash storage device 3 instead of the host 2. Hereinafter, the FTL function transferred to the host 2 will be referred to as a global FTL.

ホスト2のグローバルFTLは、ストレージサービスを実行する機能、ルックアップテーブル(LUT)を管理する機能、ウェアー制御機能、高可用性を実現するための機能、同じ内容を有する複数の重複データ部がストレージに格納されることを防止する重複排除(De-duplication)機能、等を有していてもよい。 The global FTL of host 2 has a function to execute a storage service, a function to manage a look-up table (LUT), a wear control function, a function to realize high availability, and multiple duplicate data parts having the same contents in the storage. It may have a deduplication function, etc. that prevents it from being stored.

一方、フラッシュストレージデバイス3は、ローレベルアブストラクション(LLA)を実行することができる。LLAはNAND型フラッシュメモリのアブストラクションのための機能である。LLAは、ブロックサイズの不均一性の吸収、ブロック/ページ構造の吸収、データ配置を補助する機能等を含む。データ配置を補助する機能には、ガベージコレクションのためのコピー元ブロックとコピー先ブロックとを決定する機能、有効データのコピー先位置を上位階層(ホスト2)に通知する機能、ユーザデータの書き込み先位置(ブロック番号、このブロック内の位置)を決定する機能、ユーザデータが書き込まれたこの書き込み先位置(ブロック番号、このブロック内の位置)を上位階層(ホスト2)に通知する機能、等を含む。また、LLAは、GCを実行する機能を有する。さらに、LLAは、フラッシュストレージデバイス3のリソース管理をドメイン(QoSドメイン)毎に実行するQoS制御機能も有している。 On the other hand, the flash storage device 3 can perform low level abstraction (LLA). LLA is a function for abstraction of NAND flash memory. LLA includes absorption of block size non-uniformity, absorption of block / page structure, functions to assist data placement, and the like. Functions that assist data placement include a function that determines the copy source block and copy destination block for garbage collection, a function that notifies the copy destination position of valid data to the upper layer (host 2), and a user data write destination. A function to determine the position (block number, position in this block), a function to notify the higher layer (host 2) of this writing destination position (block number, position in this block) in which user data is written, etc. include. In addition, LLA has a function of executing GC. Further, the LLA also has a QoS control function that executes resource management of the flash storage device 3 for each domain (QoS domain).

QoS制御機能には、QoSドメイン毎(またはブロック毎)にアクセス単位を決める機能が含まれる。アクセス単位は、ホスト2がライト/リードすることが可能な最小データサイズ(Grain)を示す。フラッシュストレージデバイス3は単一、あるいは複数のアクセス単位(Grain)をサポートしており、ホスト2は、フラッシュストレージデバイス3が複数のアクセス単位をサポートしている場合にはQoSドメイン毎(またはブロック毎)に、使用すべきアクセス単位をフラッシュストレージデバイス3に指示することができる。 The QoS control function includes a function of determining an access unit for each QoS domain (or each block). The access unit indicates the minimum data size (Grain) that the host 2 can write / read. The flash storage device 3 supports a single or multiple access units (Grain), and the host 2 hosts each QoS domain (or block) if the flash storage device 3 supports multiple access units. ), The access unit to be used can be instructed to the flash storage device 3.

また、QoS制御機能には、QoSドメイン間の性能干渉をできるだけ防ぐための機能が含まれている。この機能は、基本的には、安定したレイテンシを保つための機能である。 In addition, the QoS control function includes a function for preventing performance interference between QoS domains as much as possible. This function is basically a function for maintaining a stable latency.

これを実現するために、フラッシュストレージデバイス3は、NAND型フラッシュメモリ内の多数のブロックの各々が一つのグループのみに属するようにNAND型フラッシュメモリ内の多数のブロックを複数のグループに分類してもよい。この場合、各グループは複数のブロックを含むが、同じブロックが異なるグループによって共有されることはない。これら複数のグループは上述の複数のQoSドメインとして機能する。 In order to realize this, the flash storage device 3 classifies a large number of blocks in the NAND flash memory into a plurality of groups so that each of the large number of blocks in the NAND flash memory belongs to only one group. May be good. In this case, each group contains a plurality of blocks, but the same block is not shared by different groups. These plurality of groups function as the plurality of QoS domains described above.

あるいは、フラッシュストレージデバイス3は、フラッシュストレージデバイス3内の複数のNAND型フラッシュメモリダイの各々が一つのグループ(一つのQoSドメイン)のみに属するようにフラッシュストレージデバイス3内の複数のNAND型フラッシュメモリダイを複数のグループ(複数のQoSドメイン)に分類してもよい。この場合、各グループ(QoSドメイン)は複数のダイを含むが、同じダイが異なるQoSドメインによって共有されることはない。 Alternatively, the flash storage device 3 has a plurality of NAND flash memories in the flash storage device 3 so that each of the plurality of NAND flash memory dies in the flash storage device 3 belongs to only one group (one QoS domain). The dies may be classified into a plurality of groups (plurality of QoS domains). In this case, each group (QoS domain) contains a plurality of dies, but the same die is not shared by different QoS domains.

図2は、従来型SSDとホストとの間の役割分担と、本実施形態のフラッシュストレージデバイス3とホスト2との間の役割分担とを示す。 FIG. 2 shows the division of roles between the conventional SSD and the host and the division of roles between the flash storage device 3 and the host 2 of the present embodiment.

図2の左部は、従来型SSDと仮想ディスクサービスを実行するホストとを含む計算機システム全体の階層構造を表している。 The left part of FIG. 2 shows the hierarchical structure of the entire computer system including the conventional SSD and the host that executes the virtual disk service.

ホスト(サーバ)においては、複数のエンドユーザに複数の仮想マシンを提供するための仮想マシンサービス101が実行される。仮想マシンサービス101上の各仮想マシンにおいては、対応するエンドユーザによって使用されるオペレーティングシステムおよびユーザアプリケーション102が実行される。 On the host (server), the virtual machine service 101 for providing a plurality of virtual machines to a plurality of end users is executed. In each virtual machine on the virtual machine service 101, the operating system and user application 102 used by the corresponding end user is executed.

また、ホスト(サーバ)においては、複数のユーザアプリケーション102に対応する複数の仮想ディスクサービス103が実行される。各仮想ディスクサービス103は、従来型SSD内のストレージリソースの容量の一部を、対応するユーザアプリケーション102用のストレージリソース(仮想ディスク)として割り当てる。各仮想ディスクサービス103においては、アプリケーションレベルアドレス変換テーブルを使用して、アプリケーションレベルの論理アドレスをSSD用の論理アドレスに変換するアプリケーションレベルアドレス変換も実行される。さらに、ホストにおいては、アプリケーションレベルGC104も実行される。 Further, on the host (server), a plurality of virtual disk services 103 corresponding to the plurality of user applications 102 are executed. Each virtual disk service 103 allocates a part of the capacity of the storage resource in the conventional SSD as a storage resource (virtual disk) for the corresponding user application 102. In each virtual disk service 103, application-level address conversion that converts an application-level logical address into an SSD logical address is also executed by using the application-level address conversion table. In addition, application level GC104 is also executed on the host.

ホスト(サーバ)から従来型SSDへのコマンドの送信および従来型SSDからホスト(サーバ)へのコマンド完了のレスポンスの返送は、ホスト(サーバ)および従来型SSDの各々に存在するI/Oキュー200を介して実行される。 The transmission of commands from the host (server) to the conventional SSD and the return of the command completion response from the conventional SSD to the host (server) are performed by the I / O queue 200 existing in each of the host (server) and the conventional SSD. Is executed through.

従来型SSDは、ライトバッファ(WB)301、ルックアップテーブル(LUT)302、ガベージコレクション機能303、NAND型フラッシュメモリ(NANDフラッシュアレイ)304を含む。従来型SSDは、一つのルックアップテーブル(LUT)302のみを管理しており、NAND型フラッシュメモリ(NANDフラッシュアレイ)304のリソースは複数の仮想ディスクサービス103によって共有される。 The conventional SSD includes a write buffer (WB) 301, a look-up table (LUT) 302, a garbage collection function 303, and a NAND flash memory (NAND flash array) 304. The conventional SSD manages only one look-up table (LUT) 302, and the resources of the NAND flash memory (NAND flash array) 304 are shared by a plurality of virtual disk services 103.

この構成においては、仮想ディスクサービス103下のアプリケーションレベルGC104と従来型SSD内のガベージコレクション機能303(LUTレベルGC)とを含む重複したGCにより、ライトアンプリフィケーションが大きくなる。また、従来型SSDにおいては、あるエンドユーザまたはある仮想ディスクサービス103からのデータ書き込み量の増加によってGCの頻度が増加し、これによって他のエンドユーザまたは他の仮想ディスクサービス103に対するI/O性能が劣化するというノイジーネイバー問題が生じうる。 In this configuration, the write amplification is increased by the overlapping GC including the application level GC 104 under the virtual disk service 103 and the garbage collection function 303 (LUT level GC) in the conventional SSD. Further, in the conventional SSD, the frequency of GC increases due to an increase in the amount of data written from a certain end user or a certain virtual disk service 103, which causes I / O performance for another end user or another virtual disk service 103. Can cause a noisy neighbor problem of deterioration.

また、各仮想ディスクサービス内のアプリケーションレベルアドレス変換テーブルと従来型SSD内のLUT302とを含む重複したリソースの存在により、多くのメモリリソースが消費される。 Also, the presence of duplicate resources, including the application level address translation table in each virtual disk service and the LUT 302 in the conventional SSD, consumes a lot of memory resources.

図2の右部は、本実施形態のフラッシュストレージデバイス3とホスト2とを含む計算機システム全体の階層構造を表している。 The right part of FIG. 2 shows the hierarchical structure of the entire computer system including the flash storage device 3 and the host 2 of the present embodiment.

ホスト(サーバ)2においては、複数のエンドユーザに複数の仮想マシンを提供するための仮想マシンサービス401が実行される。仮想マシンサービス401上の各仮想マシンにおいては、対応するエンドユーザによって使用されるオペレーティングシステムおよびユーザアプリケーション402が実行される。 On the host (server) 2, the virtual machine service 401 for providing a plurality of virtual machines to a plurality of end users is executed. Each virtual machine on the virtual machine service 401 runs the operating system and user application 402 used by the corresponding end user.

また、ホスト(サーバ)2においては、複数のユーザアプリケーション402に対応する複数のI/Oサービス403が実行される。これらI/Oサービス403には、LBAベースのブロックI/Oサービス、キー・バリュー・ストアサービスなどが含まれてもよい。各I/Oサービス403は、論理アドレスそれぞれとフラッシュストレージデバイス3の物理アドレスそれぞれとの間のマッピングを管理するルックアップテーブル(LUT)を含む。ここで、論理アドレスとは、アクセス対象のデータを識別可能な識別子を意味する。この論理アドレスは、論理アドレス空間上の位置を指定する論理ブロックアドレス(LBA)であってもよいし、あるいは、キー・バリュー・ストアのキー(タグ)であってもよい。 Further, on the host (server) 2, a plurality of I / O services 403 corresponding to the plurality of user applications 402 are executed. These I / O services 403 may include LBA-based block I / O services, key-value store services, and the like. Each I / O service 403 includes a look-up table (LUT) that manages the mapping between each logical address and each physical address of the flash storage device 3. Here, the logical address means an identifier that can identify the data to be accessed. This logical address may be a logical block address (LBA) that specifies a position in the logical address space, or it may be a key (tag) of a key value store.

LBAベースのブロックI/Oサービスにおいては、論理アドレス(LBA)それぞれとフラッシュストレージデバイス3の物理アドレスそれぞれとの間のマッピングを管理するLUTが使用されてもよい。 In the LBA-based block I / O service, a LUT that manages the mapping between each logical address (LBA) and each physical address of the flash storage device 3 may be used.

キー・バリュー・ストアサービスにおいては、論理アドレス(つまり、キーのようなタグ)それぞれとこれら論理アドレス(つまり、キーのようなタグ)に対応するデータが格納されているフラッシュストレージデバイス3の物理アドレスそれぞれとの間のマッピングを管理するLUTが使用されてもよい。このLUTにおいては、タグと、このタグによって識別されるデータが格納されている物理アドレスと、このデータのデータ長との対応関係が管理されてもよい。 In a key-value store service, the physical address of the flash storage device 3 in which each logical address (that is, a key-like tag) and the data corresponding to these logical addresses (that is, a key-like tag) are stored. A LUT that manages the mapping between each may be used. In this LUT, the correspondence between the tag, the physical address in which the data identified by the tag is stored, and the data length of this data may be managed.

各エンドユーザは、使用すべきアドレッシング方法(LBA、キー・バリュー・ストアのキー、等)を選択することができる。 Each end user can choose which addressing method to use (LBA, key-value store key, etc.).

これら各LUTは、ユーザアプリケーション402からの論理アドレスそれぞれをフラッシュストレージデバイス3用の論理アドレスそれぞれに変換するのではなく、ユーザアプリケーション402からの論理アドレスそれぞれをフラッシュストレージデバイス3の物理アドレスそれぞれに変換する。つまり、これら各LUTは、フラッシュストレージデバイス3用の論理アドレスを物理アドレスに変換するテーブルとアプリケーションレベルアドレス変換テーブルとが統合(マージ)されたテーブルである。 Each of these LUTs does not translate each of the logical addresses from the user application 402 into each of the logical addresses for the flash storage device 3, but translates each of the logical addresses from the user application 402 into each of the physical addresses of the flash storage device 3. .. That is, each of these LUTs is a table in which a table for converting the logical address for the flash storage device 3 into a physical address and an application level address translation table are integrated (merged).

ホスト(サーバ)2においては、上述のQoSドメイン毎にI/Oサービス403が存在する。あるQoSドメインに属するI/Oサービス403は、対応するQoSドメイン内のユーザアプリケーション402によって使用される論理アドレスそれぞれと対応するQoSドメインに割り当てられたリソースグループに属するブロック群の物理アドレスそれぞれとの間のマッピングを管理する。 In the host (server) 2, the I / O service 403 exists for each of the above-mentioned QoS domains. The I / O service 403 belonging to a certain QoS domain is between each of the logical addresses used by the user application 402 in the corresponding QoS domain and each of the physical addresses of the blocks belonging to the resource group assigned to the corresponding QoS domain. Manage the mapping of.

ホスト(サーバ)2からフラッシュストレージデバイス3へのコマンドの送信およびフラッシュストレージデバイス3からホスト(サーバ)2へのコマンド完了のレスポンス等の返送は、ホスト(サーバ)2およびフラッシュストレージデバイス3の各々に存在するI/Oキュー500を介して実行される。これらI/Oキュー500も、複数のQoSドメインに対応する複数のキューグループに分類されていてもよい。 The transmission of the command from the host (server) 2 to the flash storage device 3 and the return of the command completion response from the flash storage device 3 to the host (server) 2 are sent to each of the host (server) 2 and the flash storage device 3. It is executed via the existing I / O queue 500. These I / O queues 500 may also be classified into a plurality of queue groups corresponding to a plurality of QoS domains.

フラッシュストレージデバイス3は、複数のQoSドメインに対応する複数のライトバッファ(WB)601、複数のQoSドメインに対応する複数のガベージコレクション(GC)機能602、NAND型フラッシュメモリ(NANDフラッシュアレイ)603を含む。 The flash storage device 3 includes a plurality of write buffers (WB) 601 corresponding to a plurality of QoS domains, a plurality of garbage collection (GC) functions 602 corresponding to a plurality of QoS domains, and a NAND flash memory (NAND flash array) 603. include.

この図2の右部に示す構成においては、従来型SSD内のLUT302とアプリケーションレベルアドレス変換テーブルとがI/Oサービス403内の一つのLUTとしてマージされているので、アドレス変換情報の格納のために消費されるメモリリソースの量を低減できる。また、アドレス変換ステージの数が減少するので、I/O性能を向上することが可能となる。 In the configuration shown on the right side of FIG. 2, the LUT 302 in the conventional SSD and the application level address conversion table are merged as one LUT in the I / O service 403, so that the address conversion information can be stored. The amount of memory resources consumed by the service can be reduced. Further, since the number of address translation stages is reduced, the I / O performance can be improved.

さらに、アプリケーションレベルGCとLUTレベルGCを含む重複したGCではなく、フラッシュストレージデバイス3のみがGC(ユニファイドGC)のためのデータコピーを実行する。したがって、重複したGCが実行される構成に比し、システム全体のライトアンプリフィケーションを大幅に低減することが可能となる。この結果、I/O性能を改善することができ、且つフラッシュストレージデバイス3の寿命を最大化することが可能となる。 Further, only the flash storage device 3 performs the data copy for the GC (Unified GC), not the duplicate GC including the application level GC and the LUT level GC. Therefore, it is possible to significantly reduce the write amplification of the entire system as compared with the configuration in which duplicate GCs are executed. As a result, the I / O performance can be improved and the life of the flash storage device 3 can be maximized.

図3は、図1のシステム構成の変形例を示す。 FIG. 3 shows a modified example of the system configuration of FIG.

図3においては、複数のホスト2Aと複数のフラッシュストレージデバイス3との間のデータ転送がネットワーク機器(ここでは、ネットワークスイッチ1)を介して実行される。 In FIG. 3, data transfer between the plurality of hosts 2A and the plurality of flash storage devices 3 is executed via the network device (here, the network switch 1).

すなわち、図3の計算機システムにおいては、図1のサーバ2のストレージ管理機能がマネージャ2Bに移され、且つサーバ2のフロントエンド機能が複数のホスト(エンドユーザサービス用ホスト)2Aに移されている。 That is, in the computer system of FIG. 3, the storage management function of the server 2 of FIG. 1 is transferred to the manager 2B, and the front-end function of the server 2 is transferred to a plurality of hosts (hosts for end user services) 2A. ..

マネージャ2Bは、複数のフラッシュストレージデバイス3を管理し、各ホスト(エンドユーザサービス用ホスト)2Aからの要求に応じて、これらフラッシュストレージデバイス3のストレージリソースを各ホスト(エンドユーザサービス用ホスト)2Aに割り当てる。 The manager 2B manages a plurality of flash storage devices 3 and, in response to a request from each host (end user service host) 2A, supplies the storage resources of these flash storage devices 3 to each host (end user service host) 2A. Assign to.

各ホスト(エンドユーザサービス用ホスト)2Aは、ネットワークを介して一つ以上のエンドユーザ端末61に接続される。各ホスト(エンドユーザサービス用ホスト)2Aは、上述の統合(マージ)された論理物理アドレス変換テーブルであるルックアップテーブル(LUT)を管理する。各ホスト(エンドユーザサービス用ホスト)2Aは、自身のLUTを使用して、対応するエンドユーザによって使用される論理アドレスそれぞれと自身に割り当てられたリソースの物理アドレスそれぞれとの間のマッピングのみを管理する。したがって、この構成は、システムを容易にスケールアウトすることを可能にする。 Each host (end user service host) 2A is connected to one or more end user terminals 61 via a network. Each host (host for end user service) 2A manages a look-up table (LUT), which is the above-mentioned integrated (merged) logical and physical address translation table. Each host (host for end-user service) 2A uses its own LUT to manage only the mapping between each logical address used by the corresponding end user and each physical address of the resource assigned to it. do. Therefore, this configuration allows the system to be easily scaled out.

各ホスト2AのグローバルFTLは、ルックアップテーブル(LUT)を管理する機能、高可用性を実現するための機能、重複排除(De-duplication)機能、QoSポリシー制御機能等を有する。 The global FTL of each host 2A has a function of managing a look-up table (LUT), a function of realizing high availability, a deduplication function, a QoS policy control function, and the like.

マネージャ2Bは、複数のフラッシュストレージデバイス3を管理するための専用のデバイス(計算機)である。マネージャ2Bは、各ホスト2Aから要求された容量分のストレージリソースを予約するグローバルリソース予約機能を有する。さらに、マネージャ2Bは、各フラッシュストレージデバイス3の消耗度を監視するためのウェアー監視機能、予約されたストレージリソース(NANDリソース)を各ホスト2Aに割り当てるNANDリソース割り当て機能、QoSポリシー制御機能、グローバルクロック管理機能、等を有する。 The manager 2B is a dedicated device (computer) for managing a plurality of flash storage devices 3. The manager 2B has a global resource reservation function for reserving storage resources for the capacity requested by each host 2A. Further, the manager 2B has a wear monitoring function for monitoring the degree of consumption of each flash storage device 3, a NAND resource allocation function for allocating reserved storage resources (NAND resources) to each host 2A, a QoS policy control function, and a global clock. It has a management function, etc.

各フラッシュストレージデバイス3は、ローカルFTLを有する。このローカルFTLは、各ホスト2AのグローバルFTLと連携するための機能である。このローカルFTLは、QoS制御機能、各QoSドメインのライトバッファを管理する機能、QoSドメイン内でまたはQoSドメイン間でGCデータコピーを実行する機能、リカバリのためのLUTコピー機能、重複排除(De-duplication)のために使用される参照カウントを管理する機能、ワークロード解析機能、ハウスキーピング機能、等を含んでいてもよい。 Each flash storage device 3 has a local FTL. This local FTL is a function for coordinating with the global FTL of each host 2A. This local FTL has a QoS control function, a function to manage the write buffer of each QoS domain, a function to execute GC data copy within or between QoS domains, a LUT copy function for recovery, and deduplication (De-). It may include a function for managing the reference count used for deduplication), a workload analysis function, a housekeeping function, and the like.

図3のシステム構成によれば、各フラッシュストレージデバイス3の管理はマネージャ2Bによって実行されるので、各ホスト2Aは、自身に割り当てられた一つ以上のフラッシュストレージデバイス3にI/O要求を送信する動作と、フラッシュストレージデバイス3からのレスポンスを受信するという動作とのみを実行すればよい。つまり、複数のホスト2Aと複数のフラッシュストレージデバイス3との間のデータ転送はスイッチ1のみを介して実行され、マネージャ2Bはこのデータ転送には関与しない。また、上述したように、ホスト2Aそれぞれによって管理されるLUTの内容は互いに独立している。よって、容易にホスト2Aの数を増やすことができるので、スケールアウト型のシステム構成を実現することができる。 According to the system configuration of FIG. 3, since the management of each flash storage device 3 is executed by the manager 2B, each host 2A sends an I / O request to one or more flash storage devices 3 assigned to itself. It is only necessary to execute the operation of performing the operation and the operation of receiving the response from the flash storage device 3. That is, the data transfer between the plurality of hosts 2A and the plurality of flash storage devices 3 is executed only through the switch 1, and the manager 2B is not involved in this data transfer. Further, as described above, the contents of the LUT managed by each of the hosts 2A are independent of each other. Therefore, since the number of hosts 2A can be easily increased, a scale-out type system configuration can be realized.

図4は、フラッシュストレージデバイス3の構成例を示す。 FIG. 4 shows a configuration example of the flash storage device 3.

フラッシュストレージデバイス3は、コントローラ4および不揮発性メモリ(NAND型フラッシュメモリ)5を備える。フラッシュストレージデバイス3は、ランダムアクセスメモリ、例えば、DRAM6も備えていてもよい。 The flash storage device 3 includes a controller 4 and a non-volatile memory (NAND flash memory) 5. The flash storage device 3 may also include a random access memory, for example, a DRAM 6.

NAND型フラッシュメモリ5は、マトリクス状に配置された複数のメモリセルを含むメモリセルアレイを含む。NAND型フラッシュメモリ5は、2次元構造のNAND型フラッシュメモリであってもよいし、3次元構造のNAND型フラッシュメモリであってもよい。 The NAND flash memory 5 includes a memory cell array including a plurality of memory cells arranged in a matrix. The NAND flash memory 5 may be a NAND flash memory having a two-dimensional structure or a NAND flash memory having a three-dimensional structure.

NAND型フラッシュメモリ5のメモリセルアレイは、複数のブロックBLK0~BLKm-1を含む。ブロックBLK0~BLKm-1の各々は多数のページ(ここではページP0~Pn-1)によって編成される。ブロックBLK0~BLKm-1は、消去単位として機能する。ブロックは、「消去ブロック」、「物理ブロック」、または「物理消去ブロック」と称されることもある。ページP0~Pn-1の各々は、同一ワード線に接続された複数のメモリセルを含む。ページP0~Pn-1は、データ書き込み動作およびデータ読み込み動作の単位である。 The memory cell array of the NAND flash memory 5 includes a plurality of blocks BLK0 to BLKm-1. Each of the blocks BLK0 to BLKm-1 is organized by a large number of pages (here, pages P0 to Pn-1). The blocks BLK0 to BLKm-1 function as erasing units. Blocks are sometimes referred to as "erased blocks," "physical blocks," or "physical erase blocks." Each of pages P0 to Pn-1 contains a plurality of memory cells connected to the same word line. Pages P0 to Pn-1 are units of data writing operation and data reading operation.

コントローラ4は、Toggle、オープンNANDフラッシュインタフェース(ONFI)のようなNANDインタフェース13を介して、不揮発性メモリであるNAND型フラッシュメモリ5に電気的に接続されている。コントローラ4は、NAND型フラッシュメモリ5を制御するように構成されたメモリコントローラ(制御回路)である。 The controller 4 is electrically connected to the NAND flash memory 5, which is a non-volatile memory, via a NAND interface 13 such as a Toggle or an open NAND flash interface (ONFI). The controller 4 is a memory controller (control circuit) configured to control the NAND flash memory 5.

NAND型フラッシュメモリ5は、図5に示すように、複数のNAND型フラッシュメモリダイを含む。各NAND型フラッシュメモリダイは、複数のブロックBLKを含むメモリセルアレイとこのメモリセルアレイを制御する周辺回路とを含む不揮発性メモリダイである。個々のNAND型フラッシュメモリダイは独立して動作可能である。このため、NAND型フラッシュメモリダイは、並列動作単位として機能する。NAND型フラッシュメモリダイは、「NAND型フラッシュメモリチップ」または「不揮発性メモリチップ」とも称される。図5においては、NANDインタフェース13に16個のチャンネルCh1、Ch2、…Ch16が接続されており、これらチャンネルCh1、Ch2、…Ch16の各々に、同数(例えばチャンネル当たり2個のダイ)のNAND型フラッシュメモリダイそれぞれが接続されている場合が例示されている。各チャンネルは、対応するNAND型フラッシュメモリダイと通信するための通信線(メモリバス)を含む。 As shown in FIG. 5, the NAND flash memory 5 includes a plurality of NAND flash memory dies. Each NAND flash memory die is a non-volatile memory die including a memory cell array including a plurality of blocks BLK and peripheral circuits for controlling the memory cell array. The individual NAND flash memory dies can operate independently. Therefore, the NAND flash memory die functions as a parallel operation unit. The NAND flash memory die is also referred to as a "NAND flash memory chip" or a "nonvolatile memory chip". In FIG. 5, 16 channels Ch1, Ch2, ... Ch16 are connected to the NAND interface 13, and the same number (for example, 2 dies per channel) of NAND type is connected to each of these channels Ch1, Ch2, ... Ch16. The case where each flash memory die is connected is illustrated. Each channel includes a communication line (memory bus) for communicating with the corresponding NAND flash memory die.

コントローラ4は、チャンネルCh1、Ch2、…Ch16を介してNAND型フラッシュメモリダイ#1~#32を制御する。コントローラ4は、チャンネルCh1、Ch2、…Ch16を同時に駆動することができる。 The controller 4 controls the NAND flash memory dies # 1 to # 32 via channels Ch1, Ch2, ... Ch16. The controller 4 can drive channels Ch1, Ch2, ... Ch16 at the same time.

チャンネルCh1~Ch16に接続された16個のNAND型フラッシュメモリダイ#1~#16は第1のバンクとして編成されてもよく、またチャンネルCh1~Ch16に接続された残りの16個のNAND型フラッシュメモリダイ#17~#32は第2のバンクとして編成されてもよい。バンクは、複数のメモリモジュールをバンクインタリーブによって並列動作させるための単位として機能する。図5の構成例においては、16チャンネルと、2つのバンクを使用したバンクインタリーブとによって、最大32個のNAND型フラッシュメモリダイを並列動作させることができる。 The 16 NAND flash memory dies # 1 to # 16 connected to channels Ch1 to Ch16 may be organized as a first bank, and the remaining 16 NAND flashes connected to channels Ch1 to Ch16. Memory dies # 17 to # 32 may be organized as a second bank. A bank functions as a unit for operating a plurality of memory modules in parallel by bank interleave. In the configuration example of FIG. 5, a maximum of 32 NAND flash memory dies can be operated in parallel by 16 channels and bank interleave using two banks.

本実施形態では、コントローラ4は、各々が複数のブロックBLKから構成される複数のブロック(以下、スーパーブロックと称する)を管理してもよく、スーパーブロックの単位で消去動作を実行してもよい。 In the present embodiment, the controller 4 may manage a plurality of blocks (hereinafter, referred to as super blocks) each of which is composed of a plurality of blocks BLK, or may execute an erasing operation in units of super blocks. ..

スーパーブロックは、これに限定されないが、NAND型フラッシュメモリダイ#1~#32から一つずつ選択される計32個のブロックBLKを含んでいてもよい。なお、NAND型フラッシュメモリダイ#1~#32の各々はマルチプレーン構成を有していてもよい。例えば、NAND型フラッシュメモリダイ#1~#32の各々が、2つのプレーンを含むマルチプレーン構成を有する場合には、一つのスーパーブロックは、NAND型フラッシュメモリダイ#1~#32に対応する64個のプレーンから一つずつ選択される計64個のブロックBLKを含んでいてもよい。図6には、一つのスーパーブロックSBが、NAND型フラッシュメモリダイ#1~#32から一つずつ選択される計32個のブロックBLK(図5においては太枠で囲まれているブロックBLK)から構成される場合が例示されている。 The super block may include, but is not limited to, a total of 32 blocks BLK selected one by one from the NAND flash memory dies # 1 to # 32. Each of the NAND flash memory dies # 1 to # 32 may have a multiplane configuration. For example, when each of the NAND flash memory dies # 1 to # 32 has a multi-plane configuration including two planes, one super block corresponds to the NAND flash memory dies # 1 to # 32 64. It may contain a total of 64 block BLKs selected one by one from the planes. In FIG. 6, one super block SB is selected one by one from NAND flash memory dies # 1 to # 32, for a total of 32 blocks BLK (block BLK surrounded by a thick frame in FIG. 5). The case where it is composed of is illustrated.

図4に示されているように、コントローラ4は、ホストインタフェース11、CPU12、NANDインタフェース13、およびDRAMインタフェース14等を含む。これらCPU12、NANDインタフェース13、DRAMインタフェース14は、バス10を介して相互接続される。 As shown in FIG. 4, the controller 4 includes a host interface 11, a CPU 12, a NAND interface 13, a DRAM interface 14, and the like. The CPU 12, the NAND interface 13, and the DRAM interface 14 are interconnected via the bus 10.

このホストインタフェース11は、ホスト2との通信を実行するように構成されたホストインタフェース回路である。このホストインタフェース11は、例えば、PCIeコントローラ(NVMeコントローラ)であってよい。ホストインタフェース11は、ホスト2から様々な要求(コマンド)を受信する。これら要求(コマンド)には、ライト要求(ライトコマンド)、リード要求(リードコマンド)、他の様々な要求(コマンド)が含まれる。 The host interface 11 is a host interface circuit configured to execute communication with the host 2. The host interface 11 may be, for example, a PCIe controller (NVMe controller). The host interface 11 receives various requests (commands) from the host 2. These requests (commands) include write requests (write commands), read requests (read commands), and various other requests (commands).

CPU12は、ホストインタフェース11、NANDインタフェース13、DRAMインタフェース14を制御するように構成されたプロセッサである。CPU12は、フラッシュストレージデバイス3の電源オンに応答してNAND型フラッシュメモリ5または図示しないROMから制御プログラム(ファームウェア)をDRAM6にロードし、そしてこのファームウェアを実行することによって様々な処理を行う。なお、ファームウェアはコントローラ4内の図示しないSRAM上にロードされてもよい。このCPU12は、ホスト2からの様々なコマンドを処理するためのコマンド処理等を実行することができる。CPU12の動作は、CPU12によって実行される上述のファームウェアによって制御される。なお、コマンド処理の一部または全部は、コントローラ4内の専用ハードウェアによって実行してもよい。 The CPU 12 is a processor configured to control the host interface 11, the NAND interface 13, and the DRAM interface 14. The CPU 12 loads the control program (firmware) from the NAND flash memory 5 or a ROM (not shown) into the DRAM 6 in response to the power-on of the flash storage device 3, and executes the firmware to perform various processes. The firmware may be loaded on an SRAM (not shown) in the controller 4. The CPU 12 can execute command processing and the like for processing various commands from the host 2. The operation of the CPU 12 is controlled by the above-mentioned firmware executed by the CPU 12. Note that part or all of the command processing may be executed by the dedicated hardware in the controller 4.

CPU12は、ライト動作制御部21、リード動作制御部22、およびGC動作制御部23として機能することができる。これらライト動作制御部21、リード動作制御部22、およびGC動作制御部23においては、図2の右部に示すシステム構成を実現するためのアプリケーションプログラムインタフェース(API)が実装されている。 The CPU 12 can function as a write operation control unit 21, a read operation control unit 22, and a GC operation control unit 23. The write operation control unit 21, the read operation control unit 22, and the GC operation control unit 23 are equipped with an application program interface (API) for realizing the system configuration shown on the right side of FIG.

ライト動作制御部21は、論理アドレスを指定するライト要求(ライトコマンド)をホスト2から受信する。論理アドレスは、書き込むべきデータ(ユーザデータ)を識別可能な識別子であり、例えば、LBAであってもよいし、あるいはキー・バリュー・ストアのキーのようなタグであってもよい。ライトコマンドを受信した場合、ライト動作制御部21は、まず、ホスト2からのデータを書き込むべきブロック(書き込み先ブロック)およびこのブロック内の位置(書き込み先位置)を決定する。次いで、ライト動作制御部21は、ホスト2からのデータ(ライトデータ)を、この書き込み先ブロックの書き込み先位置に書き込む。この場合、ライト動作制御部21は、ホスト2からのデータのみならず、このデータとこのデータの論理アドレスの双方を書き込み先ブロックに書き込むことができる。 The write operation control unit 21 receives a write request (write command) for specifying a logical address from the host 2. The logical address is an identifier that can identify the data to be written (user data), and may be, for example, an LBA or a tag such as a key of a key-value store. When the write command is received, the write operation control unit 21 first determines a block to write data from the host 2 (write destination block) and a position in this block (write destination position). Next, the write operation control unit 21 writes the data (write data) from the host 2 to the write destination position of the write destination block. In this case, the write operation control unit 21 can write not only the data from the host 2 but also both this data and the logical address of this data to the write destination block.

そして、ライト動作制御部21は、指定された論理アドレスと、データ(ライトデータ)が書き込まれたNAND型フラッシュメモリ5内の位置(物理記憶位置)を示す物理アドレスとをホスト2に返す。 Then, the write operation control unit 21 returns the designated logical address and the physical address indicating the position (physical storage position) in the NAND flash memory 5 in which the data (write data) is written to the host 2.

この場合、この物理アドレスは、(1)この書き込み先ブロックのブロック番号と、(2)この書き込み先ブロック内の書き込み先位置を示すブロック内オフセットとによって表される。ブロック番号は、データが書き込まれたブロックを指定する識別子である。ブロック番号としては、複数のブロック内の任意の一つを一意に識別可能な様々な値を使用し得る。 In this case, the physical address is represented by (1) the block number of the write-destination block and (2) an offset within the block indicating the write-destination position in the write-destination block. The block number is an identifier that specifies the block in which the data is written. As the block number, various values that can uniquely identify any one in a plurality of blocks can be used.

ブロック内オフセットは、書き込み先ブロックの先頭から書き込み先位置までのオフセット、つまり書き込み先ブロックの先頭に対する書き込み先位置のオフセットを示す。書き込み先ブロックの先頭から書き込み先位置までのオフセットのサイズは、ページサイズとは異なるサイズを有する粒度(Grain)の倍数で示される。粒度(Grain)は、上述のアクセス単位である。粒度(Grain)のサイズの最大値は、ブロックサイズまでに制限される。換言すれば、ブロック内オフセットは、書き込み先ブロックの先頭から書き込み先位置までのオフセットをページサイズとは異なるサイズを有する粒度の倍数で示す。 The in-block offset indicates the offset from the beginning of the write-destination block to the write-destination position, that is, the offset of the write-destination position with respect to the beginning of the write-destination block. The size of the offset from the beginning of the write-to block to the write-to position is indicated by a multiple of the grain size having a size different from the page size. Particle size is the above-mentioned access unit. The maximum size of the grain size is limited to the block size. In other words, the intra-block offset indicates the offset from the beginning of the write-to block to the write-to position as a multiple of the particle size having a size different from the page size.

粒度(Grain)は、ページサイズよりも小さいサイズを有していてもよい。例えば、ページサイズが16Kバイトである場合、粒度(Grain)は、そのサイズが4Kバイトであってもよい。この場合、ある一つのブロックにおいては、各々サイズが4Kバイトである複数のオフセット位置が規定される。ブロック内の最初のオフセット位置に対応するブロック内オフセットは、例えば0であり、ブロック内の次のオフセット位置に対応するブロック内オフセットは、例えば1である、ブロック内のさらに次のオフセット位置に対応するブロック内オフセットは、例えば2である。 The grain size may have a size smaller than the page size. For example, if the page size is 16 Kbytes, the grain size may be 4 Kbytes. In this case, in one block, a plurality of offset positions each having a size of 4 Kbytes are defined. The in-block offset corresponding to the first offset position in the block is, for example, 0, and the in-block offset corresponding to the next offset position in the block is, for example, 1, which corresponds to the next offset position in the block. The offset within the block to be used is, for example, 2.

あるいは、粒度(Grain)は、ページサイズよりも大きなサイズを有していてもよい。例えば、粒度(Grain)は、ページサイズの数倍のサイズであってもよい。ページサイズが16Kバイトである場合、粒度は、32Kバイトのサイズであってもよい。 Alternatively, the grain size may have a size larger than the page size. For example, the grain size may be several times the page size. If the page size is 16 Kbytes, the particle size may be 32 Kbytes in size.

このように、ライト動作制御部21は、データを書き込むべきブロックおよびこのブロック内の位置の双方を自身で決定し、そしてホスト2からのデータ(ユーザデータ)が書き込まれた位置を示す物理アドレスとして、ブロック番号およびページ番号ではなく、ブロック番号およびブロック内オフセットをホスト2に通知する。これにより、ホスト2は、ブロックサイズ、ページ書き込み順序制約、バッドページ、ページサイズ等を意識することなく、ユーザデータをNAND型フラッシュメモリ5に書き込むことができ、さらに、ブロック番号およびブロック内オフセットによって表された物理アドレスを、このユーザデータの論理アドレスにマッピングすることができる。 In this way, the write operation control unit 21 determines both the block to which the data should be written and the position in the block by itself, and as a physical address indicating the position where the data (user data) from the host 2 is written. , Notify host 2 of block number and intra-block offset, not block number and page number. As a result, the host 2 can write the user data to the NAND flash memory 5 without being aware of the block size, the page write order constraint, the bad page, the page size, etc., and further, by the block number and the offset in the block. The represented physical address can be mapped to the logical address of this user data.

リード動作制御部22は、物理アドレス(すなわち、ブロック番号およびブロック内オフセット)を指定するリード要求(リードコマンド)をホスト2から受信した場合、これらブロック番号およびブロック内オフセットに基づいてNAND型フラッシュメモリ5からデータをリードする。リード対象のブロックは、ブロック番号によって特定される。このブロック内のリード対象の物理記憶位置は、ブロック内オフセットによって特定される。このブロック内オフセットを使用することにより、ホスト2は、NAND型フラッシュメモリの世代毎の異なるページサイズをハンドリングする必要がない。 When the read operation control unit 22 receives a read request (read command) for specifying a physical address (that is, a block number and an intra-block offset) from the host 2, the NAND flash memory is based on the block number and the intra-block offset. Read the data from 5. The block to be read is specified by the block number. The physical storage position of the read target in this block is specified by the offset in the block. By using this intra-block offset, the host 2 does not need to handle different page sizes for each generation of NAND flash memory.

リード対象の物理記憶位置を得るために、リード動作制御部22は、まず、このブロック内オフセットを、ページサイズを表す粒度の数(ここでは、4)で除算し、そしてこの除算によって得られる商および余りを、リード対象のページ番号およびリード対象のページ内オフセットとしてそれぞれ決定してもよい。 In order to obtain the physical storage position of the read target, the read motion control unit 22 first divides this offset in the block by the number of grain sizes representing the page size (here, 4), and then the quotient obtained by this division. And the remainder may be determined as the page number of the read target and the in-page offset of the read target, respectively.

GC動作制御部23は、NAND型フラッシュメモリ5のガベージコレクションを実行する場合、このガベージコレクションのためのコピー元ブロック(GCソースブロック)およびコピー先ブロック(GCデスティネーションブロック)をNAND型フラッシュメモリ5内の多数のブロックから選択する。この場合、GC動作制御部23は、通常、複数のコピー元ブロック(GCソースブロック)と、一つ以上のコピー先ブロック(GCデスティネーションブロック)とを選択する。コピー元ブロック(GCソースブロック)を選択するための条件(GCポリシー)は、ホスト2によって指定されてもよい。例えば、有効データ量が最も少ないブロックをコピー元ブロック(GCソースブロック)として優先的に選択するというGCポリシーが使用されてもよいし、別のGCポリシーが使用されてもよい。このように、コピー元ブロック(GCソースブロック)およびコピー先ブロック(GCデスティネーションブロック)の選択は、ホスト2ではなく、フラッシュストレージデバイス3のコントローラ4(GC動作制御部23)によって実行される。コントローラ4は、各ブロック管理テーブルを使用して、各ブロックの有効データ量を管理してもよい。 When the GC operation control unit 23 executes garbage collection of the NAND flash memory 5, the copy source block (GC source block) and copy destination block (GC destination block) for the garbage collection are converted into the NAND flash memory 5 by the NAND flash memory 5. Choose from a large number of blocks in. In this case, the GC operation control unit 23 usually selects a plurality of copy source blocks (GC source blocks) and one or more copy destination blocks (GC destination blocks). The condition (GC policy) for selecting the copy source block (GC source block) may be specified by the host 2. For example, a GC policy may be used in which the block having the smallest amount of valid data is preferentially selected as a copy source block (GC source block), or another GC policy may be used. As described above, the selection of the copy source block (GC source block) and the copy destination block (GC destination block) is executed not by the host 2 but by the controller 4 (GC operation control unit 23) of the flash storage device 3. The controller 4 may manage the amount of effective data of each block by using each block management table.

ガベージコレクションのコピー元グループ(ソースQosドメイン)およびコピー先グループ(デスティネーションQosドメイン)を指定するコマンド(GC制御コマンド)をホスト2から受信した場合、GC動作制御部23は、コピー元グループに属するブロック群からガベージコレクションのコピー元ブロックを選択し、コピー先グループに属するブロック群からガベージコレクションのコピー先ブロックを選択する。 When a command (GC control command) for specifying a copy source group (source QoS domain) and a copy destination group (destination QoS domain) of garbage collection is received from the host 2, the GC operation control unit 23 belongs to the copy source group. Select the copy source block of the garbage collection from the block group, and select the copy destination block of the garbage collection from the block group belonging to the copy destination group.

有効データ/無効データの管理は、ブロック管理テーブル32を使用して実行されてもよい。このブロック管理テーブル32は、例えば、ブロック毎に存在してもよい。あるブロックに対応するブロック管理テーブル32においては、このブロック内のデータそれぞれの有効/無効を示すビットマップフラグが格納されている。ここで、有効データとは、LUTから参照されているデータ(すなわち論理アドレスから最新のデータとして紐付けられているデータ)であって、後にホスト2からリードされる可能性があるデータを意味する。無効データとは、もはやホスト2からリードされる可能性が無いデータを意味する。例えば、ある論理アドレスに関連付けられているデータは有効データであり、どの論理アドレスにも関連付けられていないデータは無効データである。 Management of valid / invalid data may be performed using the block management table 32. The block management table 32 may exist for each block, for example. In the block management table 32 corresponding to a certain block, a bitmap flag indicating valid / invalidity of each data in the block is stored. Here, the valid data means the data referred to by the LUT (that is, the data associated with the latest data from the logical address), which may be read from the host 2 later. .. Invalid data means data that can no longer be read from host 2. For example, data associated with a logical address is valid data, and data not associated with any logical address is invalid data.

GC動作制御部23は、コピー元ブロック(GCソースブロック)内に格納されている有効データを書き込むべきコピー先ブロック(GCデスティネーションブロック)内の位置(コピー先位置)を決定し、有効データをコピー先ブロック(GCデスティネーションブロック)のこの決定された位置(コピー先位置)にコピーする。この場合、GC動作制御部23は、有効データとこの有効データの論理アドレスの双方を、コピー先ブロック(GCデスティネーションブロック)にコピーしてもよい。GC動作制御部23は、コピー元ブロック(GCソースブロック)に対応するブロック管理テーブル32を参照することによってGCソースブロック内の有効データを特定してもよい。あるいは、別の実施形態では、有効データ/無効データの管理がホスト2によって実行されてもよい。この場合には、GC動作制御部23は、GCソースブロック内の各データの有効/無効を示す情報をホスト2から受信し、この受信した情報に基づいて、GCソースブロック内の有効データを特定してもよい。 The GC operation control unit 23 determines the position (copy destination position) in the copy destination block (GC destination block) to which the valid data stored in the copy source block (GC source block) should be written, and determines the position (copy destination position) of the valid data. Copy to this determined position (copy destination position) of the copy destination block (GC destination block). In this case, the GC operation control unit 23 may copy both the valid data and the logical address of the valid data to the copy destination block (GC destination block). The GC operation control unit 23 may specify valid data in the GC source block by referring to the block management table 32 corresponding to the copy source block (GC source block). Alternatively, in another embodiment, management of valid / invalid data may be performed by host 2. In this case, the GC operation control unit 23 receives information indicating the validity / invalidity of each data in the GC source block from the host 2, and identifies the valid data in the GC source block based on the received information. You may.

そして、GC動作制御部23は、コピーされた有効データの論理アドレスと、コピー先ブロック(GCデスティネーションブロック)のブロック番号と、コピー先ブロック(GCデスティネーションブロック)の先頭からコピー先位置までのオフセットを上述の粒度の倍数で示すブロック内オフセットとをホスト2に通知する。 Then, the GC operation control unit 23 includes the logical address of the copied valid data, the block number of the copy destination block (GC destination block), and the copy destination block (GC destination block) from the beginning to the copy destination position. The host 2 is notified of the in-block offset, which indicates the offset as a multiple of the above-mentioned grain size.

本実施形態では、上述したように、ライト動作制御部21は、ホスト2からのデータ(ライトデータ)とホスト2からの論理アドレスの双方を書き込み先ブロックに書き込むことができる。このため、GC動作制御部23は、コピー元ブロック(GCソースブロック)内の各データの論理アドレスをこのコピー元ブロック(GCソースブロック)から容易に取得することができるので、コピーされた有効データの論理アドレスをホスト2に容易に通知することができる。 In the present embodiment, as described above, the write operation control unit 21 can write both the data (write data) from the host 2 and the logical address from the host 2 to the write destination block. Therefore, the GC operation control unit 23 can easily obtain the logical address of each data in the copy source block (GC source block) from the copy source block (GC source block), so that the copied valid data can be obtained. The logical address of is easily notified to the host 2.

NANDインタフェース13は、CPU12の制御の下、NAND型フラッシュメモリ5を制御するように構成されたメモリ制御回路である。DRAMインタフェース14は、CPU12の制御の下、DRAM6を制御するように構成されたDRAM制御回路である。DRAM6の記憶領域の一部は、ライトバッファ(WB)31の格納のために使用される。また、DRAM6の記憶領域の他の一部は、ブロック管理テーブル32の格納のために使用される。なお、これらライトバッファ(WB)31およびブロック管理テーブル32は、コントローラ4内の図示しないSRAMに格納されてもよい。 The NAND interface 13 is a memory control circuit configured to control the NAND flash memory 5 under the control of the CPU 12. The DRAM interface 14 is a DRAM control circuit configured to control the DRAM 6 under the control of the CPU 12. A part of the storage area of the DRAM 6 is used for storing the write buffer (WB) 31. In addition, the other part of the storage area of the DRAM 6 is used for storing the block management table 32. The write buffer (WB) 31 and the block management table 32 may be stored in an SRAM (not shown) in the controller 4.

図7は、フラッシュストレージデバイス3に適用されるライトコマンドを示す。 FIG. 7 shows a write command applied to the flash storage device 3.

ライトコマンドは、フラッシュストレージデバイス3にデータの書き込みを要求するコマンドである。このライトコマンドは、コマンドID、QoSドメインID、論理アドレス、長さ、等を含んでもよい。 The write command is a command that requests the flash storage device 3 to write data. This write command may include a command ID, a QoS domain ID, a logical address, a length, and the like.

コマンドIDはこのコマンドがライトコマンドであることを示すID(コマンドコード)であり、ライトコマンドにはライトコマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a write command, and the write command includes a command ID for the write command.

QoSドメインIDは、データが書き込まれるべきQoSドメインを一意に識別可能な識別子である。あるエンドユーザからのライト要求に応じてホスト2から送信されるライトコマンドは、このエンドユーザに対応するQoSドメインを指定するQoSドメインIDを含んでもよい。ネームスペースIDがQoSドメインIDとして扱われてもよい。 The QoS domain ID is an identifier that can uniquely identify the QoS domain to which the data should be written. The write command sent from the host 2 in response to a write request from an end user may include a QoS domain ID that specifies the QoS domain corresponding to this end user. The namespace ID may be treated as a QoS domain ID.

論理アドレスは、書き込まれるべきライトデータを識別するための識別子である。この論理アドレスは、上述したように、LBAであってもよいし、キー・バリュー・ストアのキーであってもよい。論理アドレスがLBAである場合には、このライトコマンドに含まれる論理アドレス(開始LBA)は、ライトデータが書き込まれるべき論理位置(最初の論理位置)を示す。 The logical address is an identifier for identifying the write data to be written. This logical address may be an LBA or a key-value store key, as described above. When the logical address is LBA, the logical address (start LBA) included in this write command indicates the logical position (first logical position) in which the write data should be written.

長さは、書き込まれるべきライトデータの長さを示す。この長さ(データ長)は、粒度(Grain)の数によって指定されてもよいし、LBAの数によって指定されてもよいし、あるいはそのサイズがバイトによって指定されてもよい。 The length indicates the length of the write data to be written. This length (data length) may be specified by the number of grains, the number of LBAs, or its size may be specified by bytes.

上述したように、コントローラ4は、NAND型フラッシュメモリ5内の多数のブロックの各々が一つのグループのみに属するようにNAND型フラッシュメモリ5内の多数のブロックを複数のグループ(複数のQoSドメイン)に分類することができる。そして、コントローラ4は、グループ(QoSドメイン)毎に、フリーブロックリスト(フリーブロックプール)とアクティブブロックリスト(アクティブブロックプール)とを管理することができる。 As described above, the controller 4 groups a large number of blocks in the NAND flash memory 5 into a plurality of groups (a plurality of QoS domains) so that each of the large number of blocks in the NAND flash memory 5 belongs to only one group. Can be classified into. Then, the controller 4 can manage the free block list (free block pool) and the active block list (active block pool) for each group (QoS domain).

各ブロックの状態は、有効データを格納しているアクティブブロックと、有効データを格納していないフリーブロックとに大別される。アクティブブロックである各ブロックは、アクティブブロックリストによって管理される。一方、フリーブロックである各ブロックは、フリーブロックリストによって管理される。 The state of each block is roughly divided into an active block that stores valid data and a free block that does not store valid data. Each block that is an active block is managed by the active block list. On the other hand, each block that is a free block is managed by a free block list.

ホスト2からライトコマンドを受信した時、コントローラ4は、ホスト2からのデータが書き込まれるべきブロック(書き込み先ブロック)およびこの書き込み先ブロック内の位置(書き込み先位置)を決定する。コントローラ4は、QoSドメインIDに対応するQoSドメインに属するフリーブロック群の一つを書き込み先ブロックとして決定してもよい。書き込み先位置は、ページ書き込み順序の制約およびバッドページ等を考慮して決定される。そして、コントローラ4は、ホスト2からのデータを、書き込み先ブロック内の書き込み先位置に書き込む。 When a write command is received from the host 2, the controller 4 determines a block in which data from the host 2 should be written (write destination block) and a position in the write destination block (write destination position). The controller 4 may determine one of the free block groups belonging to the QoS domain corresponding to the QoS domain ID as the write destination block. The writing destination position is determined in consideration of the restrictions on the page writing order, bad pages, and the like. Then, the controller 4 writes the data from the host 2 to the write destination position in the write destination block.

なお、この書き込み先ブロック全体がユーザデータで満たされたならば、コントローラ4は、この書き込み先ブロックをアクティブブロックリスト(アクティブブロックプール)に移動する。そして、コントローラ4は、このQoSドメインに対応するフリーブロックリストからフリーブロックを再び選択し、この選択したフリーブロックを新たな書き込み先ブロックとして割り当てる。 If the entire write-destination block is filled with user data, the controller 4 moves the write-destination block to the active block list (active block pool). Then, the controller 4 selects the free block again from the free block list corresponding to the QoS domain, and assigns the selected free block as a new write destination block.

もしフリーブロックリストによって管理されている残りフリーブロックの数が所定のポリシーによって定められる閾値以下に低下した場合あるいはホスト2からガベージコレクションを実施する指示があった場合、コントローラ4は、このQoSドメインのガベージコレクションを開始してもよい。 If the number of remaining free blocks managed by the free block list drops below the threshold set by a predetermined policy, or if host 2 instructs to perform garbage collection, the controller 4 will be in this QoS domain. Garbage collection may be started.

このQoSドメインのガベージコレクションでは、コントローラ4は、このQoSドメインに対応するアクティブブロック群からコピー元ブロック(GCソースブロック)とコピー先ブロック(GCデスティネーションブロック)を選択する。どのブロックをGC候補(コピー元ブロック)として選択するかは、ホスト2によって指定される上述のポリシーに従って決定されてもよいし、ホスト2から指定されても良い。ポリシーも基づく場合には例えば、有効データ量が最も少ないブロックがGC候補(コピー元ブロック)として選択されてもよい。 In this QoS domain garbage collection, the controller 4 selects a copy source block (GC source block) and a copy destination block (GC destination block) from the active block group corresponding to this QoS domain. Which block is selected as the GC candidate (copy source block) may be determined according to the above-mentioned policy specified by the host 2, or may be specified by the host 2. When the policy is also based, for example, the block with the smallest amount of valid data may be selected as the GC candidate (copy source block).

図8は、図7のライトコマンドに対するレスポンスを示す。 FIG. 8 shows the response to the write command of FIG.

このレスポンスは、論理アドレス、物理アドレス、長さを含む。 This response includes a logical address, a physical address, and a length.

論理アドレスは、図7のライトコマンドに含まれていた論理アドレスである。 The logical address is the logical address included in the write command of FIG.

物理アドレスは、図7のライトコマンドに応じてデータが書き込まれたNAND型フラッシュメモリ5内の物理記憶位置を示す。本実施形態では、この物理アドレスは、ブロック番号とページ番号との組み合わせではなく、上述したように、ブロック番号とオフセット(ブロック内オフセット)との組み合わせによって指定される。ブロック番号は、フラッシュストレージデバイス3内の全てのブロックの任意の一つを一意に識別可能な識別子である。全てのブロックに異なるブロック番号が付与されている場合には、これらブロック番号を直接使用してもよい。あるいは、ブロック番号は、ダイ番号と、ダイ内ブロック番号との組み合わせによって表現されてもよい。長さは、書き込まれるべきライトデータの長さを示す。この長さ(データ長)は、粒度(Grain)の数によって指定されてもよいし、LBAの数によって指定されてもよいし、あるいはそのサイズがバイトによって指定されてもよい。 The physical address indicates the physical storage position in the NAND flash memory 5 in which the data is written in response to the write command of FIG. 7. In the present embodiment, this physical address is specified not by the combination of the block number and the page number but by the combination of the block number and the offset (intra-block offset) as described above. The block number is an identifier that can uniquely identify any one of all the blocks in the flash storage device 3. If different block numbers are assigned to all blocks, these block numbers may be used directly. Alternatively, the block number may be represented by a combination of the die number and the block number in the die. The length indicates the length of the write data to be written. This length (data length) may be specified by the number of grains, the number of LBAs, or its size may be specified by bytes.

図9は、フラッシュストレージデバイス3に適用されるTrimコマンドを示す。 FIG. 9 shows a Trim command applied to the flash storage device 3.

このTrimコマンドは、無効にすべきデータが格納されている物理記憶位置を示すブロック番号およびブロック内オフセットを含むコマンドである。つまり、このTrimコマンドは、LBAのような論理アドレスではなく、物理アドレスを指定可能である。このTrimコマンドは、コマンドID、物理アドレス、長さを含む。 This Trim command is a command that includes a block number indicating a physical storage position in which data to be invalidated is stored and an offset within the block. That is, this Trim command can specify a physical address instead of a logical address like LBA. This Trim command includes a command ID, a physical address, and a length.

コマンドIDはこのコマンドがTrimコマンドであることを示すID(コマンドコード)であり、TrimコマンドにはTrimコマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a Trim command, and the Trim command includes a command ID for the Trim command.

物理アドレスは、無効化すべきデータが格納されている最初の物理記憶位置を示す。本実施形態では、この物理アドレスは、ブロック番号とオフセット(ブロック内オフセット)との組み合わせによって指定される。 The physical address indicates the first physical storage location where the data to be invalidated is stored. In the present embodiment, this physical address is specified by a combination of a block number and an offset (intra-block offset).

長さは、無効化すべきデータの長さを示す。この長さ(データ長)は、粒度(Grain)の数によって指定されてもよいし、バイトによって指定されてもよい。 The length indicates the length of data to be invalidated. This length (data length) may be specified by the number of grain sizes or by bytes.

コントローラ4は、複数のブロックの各々に含まれるデータそれぞれの有効/無効を示すフラグ(ビットマップフラグ)をブロック管理テーブル32を使用して管理する。無効にすべきデータが格納されている物理記憶位置を示すブロック番号およびオフセット(ブロック内オフセット)を含むTrimコマンドをホスト2から受信した場合、コントローラ4は、ブロック管理テーブル32を更新して、Trimコマンドに含まれるブロック番号およびブロック内オフセットに対応する物理記憶位置のデータに対応するフラグ(ビットマップフラグ)を無効を示す値に変更する。 The controller 4 manages a flag (bitmap flag) indicating validity / invalidity of each data included in each of the plurality of blocks by using the block management table 32. When a Trim command including a block number indicating a physical storage position in which data to be invalidated is stored and an offset (intra-block offset) is received from the host 2, the controller 4 updates the block management table 32 and Trim. Change the flag (bitmap flag) corresponding to the data of the physical storage position corresponding to the block number and the offset in the block included in the command to a value indicating invalidity.

図10は、物理アドレスを規定するブロック番号およびオフセットを示す。 FIG. 10 shows the block numbers and offsets that define the physical address.

ブロック番号はある一つのブロックBLKを指定する。各ブロックBLKは、図10に示されているように、複数のページ(ここでは、ページ0~ページn)を含む。 The block number specifies one block BLK. Each block BLK includes a plurality of pages (here, pages 0 to n) as shown in FIG.

ページサイズ(各ページのユーザデータ格納領域)が16Kバイトであり、粒度(Grain)が4KBのサイズであるケースにおいては、このブロックBLKは、4×(n+1)個の領域に論理的に分割される。 In the case where the page size (user data storage area of each page) is 16 Kbytes and the particle size (Grain) is 4 KB, this block BLK is logically divided into 4 × (n + 1) areas. To.

オフセット+0はページ0の最初の4KB領域を示し、オフセット+1はページ0の2番目の4KB領域を示し、オフセット+2はページ0の3番目の4KB領域を示し、オフセット+3はページ0の4番目の4KB領域を示す。 Offset +0 indicates the first 4KB area of page 0, offset +1 indicates the second 4KB area of page 0, offset +2 indicates the third 4KB area of page 0, and offset +3 indicates the fourth 4KB area of page 0. The 4KB region is shown.

オフセット+4はページ1の最初の4KB領域を示し、オフセット+5はページ1の2番目の4KB領域を示し、オフセット+6はページ1の3番目の4KB領域を示し、オフセット+7はページ1の4番目の4KB領域を示す。 Offset +4 indicates the first 4KB area of page 1, offset +5 indicates the second 4KB area of page 1, offset +6 indicates the third 4KB area of page 1, and offset +7 indicates the fourth 4KB area of page 1. The 4KB region is shown.

図11は、ライトコマンドに応じて実行される書き込み動作とこのライトコマンドに対するレスポンスに含まれる返値との関係を示す。 FIG. 11 shows the relationship between the write operation executed in response to the write command and the return value included in the response to the write command.

フラッシュストレージデバイス3のコントローラ4は、有効データを含まないフリーブロック群をフリーブロックリストによって管理しており、これらフリーブロック群から一つのブロック(フリーブロック)を選択し、選択したブロックを書き込み先ブロックとして割り当てる。いま、ブロックBLK#1が書き込み先ブロックとして割り当てられた場合を想定する。コントローラ4は、ページ0、ページ1、ページ2、…ページnという順序で、データをページ単位でブロックBLK#1に書き込む。 The controller 4 of the flash storage device 3 manages a free block group that does not contain valid data by a free block list, selects one block (free block) from these free block groups, and writes the selected block to the write destination block. Assign as. Now, assume that block BLK # 1 is assigned as a write-destination block. The controller 4 writes data to the block BLK # 1 in the order of page 0, page 1, page 2, ... Page n.

図11においては、ブロックBLK#1のページ0に16Kバイト分のデータがすでに書き込まれている状態で、論理アドレス(LBAx)および長さ(=4)を指定するライトコマンドがホスト2から受信された場合が想定されている。コントローラ4は、ブロックBLK#1のページ1を書き込み先位置として決定し、ホスト2から受信される16Kバイト分のライトデータをブロックBLK#1のページ1に書き込む。そして、コントローラ4は、このライトコマンドに対するレスポンス(論理アドレス、ブロック番号、オフセット(ブロック内オフセット)、長さ)をホスト2に返す。このケースにおいては、論理アドレスはLBAxであり、ブロック番号はBLK#1であり、オフセット(ブロック内オフセット)は+5であり、長さは4である。 In FIG. 11, a write command for specifying the logical address (LBAx) and the length (= 4) is received from the host 2 in a state where 16 Kbytes of data has already been written on page 0 of the block BLK # 1. Is expected. The controller 4 determines the page 1 of the block BLK # 1 as the write destination position, and writes the write data for 16 Kbytes received from the host 2 to the page 1 of the block BLK # 1. Then, the controller 4 returns a response (logical address, block number, offset (intra-block offset), length) to this write command to the host 2. In this case, the logical address is LBAx, the block number is BLK # 1, the offset (intra-block offset) is +5, and the length is 4.

図12は、不良ページ(バッドページ)をスキップする書き込み動作を示す。 FIG. 12 shows a writing operation for skipping a defective page (bad page).

図12においては、ブロックBLK#1のページ0、ページ1にデータがすでに書き込まれている状態で、論理アドレス(LBAx+1)および長さ(=4)を指定するライトコマンドがホスト2から受信された場合が想定されている。もしブロックBLK#1のページ2が不良ページであるならば、コントローラ4は、ブロックBLK#1のページ3を書き込み先位置として決定し、ホスト2から受信される16Kバイト分のライトデータをブロックBLK#1のページ3に書き込む。そして、コントローラ4は、このライトコマンドに対するレスポンス(論理アドレス、ブロック番号、オフセット(ブロック内オフセット)、長さ)をホスト2に返す。このケースにおいては、論理アドレスはLBAx+1であり、ブロック番号はBLK#1であり、オフセット(ブロック内オフセット)は+12であり、長さは4である。 In FIG. 12, a write command for specifying the logical address (LBAx + 1) and the length (= 4) is received from the host 2 while the data has already been written on the pages 0 and 1 of the block BLK # 1. The case is assumed. If the page 2 of the block BLK # 1 is a bad page, the controller 4 determines the page 3 of the block BLK # 1 as the write destination position, and blocks 16 Kbytes of write data received from the host 2 BLK. Write on page 3 of # 1. Then, the controller 4 returns a response (logical address, block number, offset (intra-block offset), length) to this write command to the host 2. In this case, the logical address is LBAx + 1, the block number is BLK # 1, the offset (intra-block offset) is +12, and the length is 4.

図13は、不良ページをスキップする書き込み動作の別の例を示す。 FIG. 13 shows another example of a write operation that skips bad pages.

図13においては、不良ページを挟む2つのページに跨がってデータが書き込まれる場合が想定されている。いま、ブロックBLK#2のページ0、ページ1にデータがすでに書き込まれており、且つライトバッファ31に未書き込みの8Kバイト分のライトデータが残っている場合を想定する。この状態で、論理アドレス(LBAy)および長さ(=6)を指定するライトコマンドが受信されたならば、コントローラ4は、未書き込みの8Kバイトライトデータと、ホスト2から新たに受信される24Kバイトライトデータ内の最初の8Kバイトライトデータとを使用して、ページサイズに対応する16Kバイトライトデータを準備する。そして、コントローラ4は、この準備した16KバイトライトデータをブロックBLK#2のページ2に書き込む。 In FIG. 13, it is assumed that data is written over two pages sandwiching a defective page. Now, it is assumed that the data has already been written to the pages 0 and 1 of the block BLK # 2, and the unwritten 8 Kbytes of write data remains in the write buffer 31. In this state, if a write command for specifying the logical address (LBAy) and length (= 6) is received, the controller 4 receives unwritten 8 Kbyte write data and 24K newly received from the host 2. 16K byte write data corresponding to the page size is prepared by using the first 8K byte write data in the byte write data. Then, the controller 4 writes the prepared 16 Kbyte write data on page 2 of the block BLK # 2.

もしブロックBLK#2の次のページ3が不良ページであるならば、コントローラ4は、ブロックBLK#2のページ4を次の書き込み先位置として決定し、ホスト2から受信された24Kバイトライトデータ内の残りの16Kバイトライトデータを、ブロックBLK#2のページ4に書き込む。 If the next page 3 of the block BLK # 2 is a bad page, the controller 4 determines the page 4 of the block BLK # 2 as the next write destination position in the 24 Kbyte write data received from the host 2. The remaining 16 Kbyte write data of is written to page 4 of block BLK # 2.

そして、コントローラ4は、このライトコマンドに対するレスポンス(論理アドレス、ブロック番号、オフセット(ブロック内オフセット)、長さ)をホスト2に返す。このケースにおいては、このレスポンスは、LBAy、ブロック番号(=BLK#2)、オフセット(=+10)、長さ(=2)、ブロック番号(=BLK#2)、オフセット(=+16)、長さ(=4)を含んでもよい。 Then, the controller 4 returns a response (logical address, block number, offset (intra-block offset), length) to this write command to the host 2. In this case, the response is LBAy, block number (= BLK # 2), offset (= +10), length (= 2), block number (= BLK # 2), offset (= +16), length. (= 4) may be included.

図14、図15は、論理アドレスとデータのペアをブロック内のページに書き込む動作を示す。 14 and 15 show an operation of writing a logical address / data pair to a page in a block.

各ブロックにおいて、各ページは、ユーザデータを格納するためのユーザデータ領域と管理データを格納するための冗長領域とを含んでもよい。ページサイズは16KB+アルファである。 In each block, each page may include a user data area for storing user data and a redundant area for storing management data. The page size is 16KB + alpha.

コントローラ4は、4KBユーザデータとこの4KBユーザデータに対応する論理アドレス(例えばLBA)との双方を書き込み先ブロックBLKに書き込む。この場合、図14に示すように、各々がLBAと4KBユーザデータとを含む4つのデータセットが同じページに書き込まれてもよい。ブロック内オフセットは、セット境界を示してもよい。 The controller 4 writes both the 4KB user data and the logical address (for example, LBA) corresponding to the 4KB user data in the writing destination block BLK. In this case, as shown in FIG. 14, four datasets, each containing LBA and 4KB user data, may be written to the same page. The offset within the block may indicate a set boundary.

あるいは、図15に示されているように、4つの4KBユーザデータがページ内のユーザデータ領域に書き込まれ、これら4つの4KBユーザデータに対応する4つのLBAがこのページ内の冗長領域に書き込まれてもよい。 Alternatively, as shown in FIG. 15, four 4KB user data are written to the user data area within the page, and four LBAs corresponding to these four 4KB user data are written to the redundant area within this page. You may.

図16は、スーバーブロックが使用されるケースにおけるブロック番号とオフセット(ブロック内オフセット)との関係を示す。以下では、ブロック内オフセットは単にオフセットとしても参照される。 FIG. 16 shows the relationship between the block number and the offset (intra-block offset) in the case where the super block is used. In the following, the offset within the block is also referred to simply as the offset.

ここでは、図示を簡単化するために、ある一つのスーパーブロックSB#1が4つのブロックBLK#11、BLK#21、BLK#31、BLK#41から構成されている場合が想定されている。コントローラ4は、ブロックBLK#11のページ0、ブロックBLK#21のページ0、ブロックBLK#31のページ0、ブロックBLK#41のページ0、ブロックBLK#11のページ1、ブロックBLK#21のページ1、ブロックBLK#31のページ1、ブロックBLK#41のページ1、…という順序でデータを書き込む。 Here, in order to simplify the illustration, it is assumed that one super block SB # 1 is composed of four blocks BLK # 11, BLK # 21, BLK # 31, and BLK # 41. The controller 4 includes block BLK # 11, page 0, block BLK # 21, page 0, block BLK # 31, page 0, block BLK # 41 page 0, block BLK # 11, page 1, and block BLK # 21 page. 1. Write data in the order of block BLK # 31 page 1, block BLK # 41 page 1, and so on.

オフセット+0はブロックBLK#11のページ0の最初の4KB領域を示し、オフセット+1はブロックBLK#11のページ0の2番目の4KB領域を示し、オフセット+2はブロックBLK#11のページ0の3番目の4KB領域を示し、オフセット+3はブロックBLK#11のページ0の4番目の4KB領域を示す。 Offset +0 indicates the first 4KB area of page 0 of block BLK # 11, offset +1 indicates the second 4KB area of page 0 of block BLK # 11, and offset +2 indicates the third of page 0 of block BLK # 11. 4KB region of, offset +3 indicates the fourth 4KB region of page 0 of block BLK # 11.

オフセット+4はブロックBLK#21のページ0の最初の4KB領域を示し、オフセット+5はブロックBLK#21のページ0の2番目の4KB領域を示し、オフセット+6はブロックBLK#21のページ0の3番目の4KB領域を示し、オフセット+7はブロックBLK#21のページ0の4番目の4KB領域を示す。 Offset +4 indicates the first 4KB area of page 0 of block BLK # 21, offset +5 indicates the second 4KB area of page 0 of block BLK # 21, and offset +6 indicates the third of page 0 of block BLK # 21. 4KB region of, offset +7 indicates the fourth 4KB region of page 0 of block BLK # 21.

同様に、オフセット+12はブロックBLK#41のページ0の最初の4KB領域を示し、オフセット+13はブロックBLK#41のページ0の2番目の4KB領域を示し、オフセット+14はブロックBLK#41のページ0の3番目の4KB領域を示し、オフセット+15はブロックBLK#41のページ0の4番目の4KB領域を示す。 Similarly, offset +12 indicates the first 4KB area of page 0 of block BLK # 41, offset +13 indicates the second 4KB area of page 0 of block BLK # 41, and offset +14 indicates page 0 of block BLK # 41. Indicates the third 4KB region of, and offset +15 indicates the fourth 4KB region of page 0 of block BLK # 41.

オフセット+16はブロックBLK#11のページ1の最初の4KB領域を示し、オフセット+17はブロックBLK#11のページ1の2番目の4KB領域を示し、オフセット+18はブロックBLK#11のページ1の3番目の4KB領域を示し、オフセット+19はブロックBLK#11のページ1の4番目の4KB領域を示す。 Offset +16 indicates the first 4KB area of page 1 of block BLK # 11, offset +17 indicates the second 4KB area of page 1 of block BLK # 11, and offset +18 indicates the third of page 1 of block BLK # 11. Indicates the 4KB region of, and offset +19 indicates the fourth 4KB region of page 1 of block BLK # 11.

オフセット+20はブロックBLK#21のページ1の最初の4KB領域を示し、オフセット+21はブロックBLK#21のページ1の2番目の4KB領域を示し、オフセット+22はブロックBLK#21のページ1の3番目の4KB領域を示し、オフセット+23はブロックBLK#21のページ1の4番目の4KB領域を示す。 Offset +20 indicates the first 4KB area of page 1 of block BLK # 21, offset +21 indicates the second 4KB area of page 1 of block BLK # 21, and offset +22 indicates the third of page 1 of block BLK # 21. 4KB region of, offset +23 indicates the fourth 4KB region of page 1 of block BLK # 21.

同様に、オフセット+28はブロックBLK#41のページ1の最初の4KB領域を示し、オフセット+29はブロックBLK#41のページ1の2番目の4KB領域を示し、オフセット+30はブロックBLK#41のページ1の3番目の4KB領域を示し、オフセット+31はブロックBLK#41のページ1の4番目の4KB領域を示す。 Similarly, offset +28 indicates the first 4KB area of page 1 of block BLK # 41, offset +29 indicates the second 4KB area of page 1 of block BLK # 41, and offset +30 indicates page 1 of block BLK # 41. Indicates the third 4KB region of, and offset +31 indicates the fourth 4KB region of page 1 of block BLK # 41.

例えば、あるLBA(LBAx)を指定するライトコマンドに対応する4Kバイトデータをオフセット+8に対応する位置に書き込んだ場合には、コントローラ4は、論理アドレス(=LBAx)、ブロック番号(=SB#1)、オフセット(=+8)、長さ(=1)をこのライトコマンドに対するレスポンスとしてホスト2に返してもよい。 For example, when 4 Kbyte data corresponding to a write command specifying a certain LBA (LBAx) is written at a position corresponding to offset +8, the controller 4 has a logical address (= LBAx) and a block number (= SB # 1). ), Offset (= +8), and length (= 1) may be returned to host 2 as a response to this write command.

図17は、ホスト2とフラッシュストレージデバイス3とによって実行される書き込み動作処理のシーケンスを示す。 FIG. 17 shows a sequence of write operation processes executed by the host 2 and the flash storage device 3.

ホスト2は、QoSドメインID、LBA、長さを含むライトコマンドをフラッシュストレージデバイス3に送信する。フラッシュストレージデバイス3のコントローラ4がこのライトコマンドを受信した時、コントローラ4は、ホスト2からのライトデータを書き込むべき書き込み先ブロックおよびこの書き込み先ブロック内の位置を決定する。より詳しくは、コントローラ4は、フリーブロックリストから一つのフリーブロックを選択し、選択したフリーブロックを書き込み先ブロックとして割り当てる(ステップS12)。つまり、この選択されたフリーブロックおよびこの選択されたフリーブロック内の利用可能な最初のページが、ホスト2からのライトデータを書き込むべき書き込み先ブロックおよびこの書き込み先ブロック内の位置として決定される。もし書き込み先ブロックがすでに割り当てられている場合には、このステップ12における書き込み先ブロック割り当て処理を実行する必要は無い。すでに割り当てられている書き込み先ブロック内の利用可能な次のページが、ホスト2からのライトデータを書き込むべき書き込み先ブロック内の位置として決定される。 The host 2 sends a write command including the QoS domain ID, LBA, and length to the flash storage device 3. When the controller 4 of the flash storage device 3 receives this write command, the controller 4 determines the write destination block to which the write data from the host 2 should be written and the position in the write destination block. More specifically, the controller 4 selects one free block from the free block list and assigns the selected free block as a write destination block (step S12). That is, the selected free block and the first available page within this selected free block are determined as the write destination block to which the write data from the host 2 should be written and the position within the write destination block. If the write-destination block has already been assigned, it is not necessary to execute the write-destination block allocation process in step 12. The next available next page within the already allocated write-to block is determined as the position within the write-to block to which the write data from host 2 should be written.

コントローラ4は、複数のQoSドメインに対応する複数のフリーブロックリストを管理してもよい。あるQoSドメインに対応するフリーブロックリストにおいては、このQoSドメインに対して予約されたブロック群のみが登録されてもよい。この場合、ステップS12では、コントローラ4は、ライトコマンドのQoSドメインIDによって指定されるQoSドメインに対応するフリーブロックリストを選択し、この選択したフリーブロックリストから一つのフリーブロックを選択し、この選択したフリーブロックを書き込み先ブロックとして割り当ててもよい。これにより、異なるQoSドメインに対応するデータが同じブロックに混在されてしまうことを防止することができる。 The controller 4 may manage a plurality of free block lists corresponding to a plurality of QoS domains. In the free block list corresponding to a certain QoS domain, only the block group reserved for this QoS domain may be registered. In this case, in step S12, the controller 4 selects a free block list corresponding to the QoS domain specified by the QoS domain ID of the write command, selects one free block from the selected free block list, and selects this. The free block may be assigned as the write destination block. This makes it possible to prevent data corresponding to different QoS domains from being mixed in the same block.

コントローラ4は、ホスト2から受信されるライトデータを書き込み先ブロックに書き込む(ステップS12)。ステップS12では、コントローラ4は、論理アドレス(ここではLBA)とライトデータの双方を書き込み先ブロックに書き込む。 The controller 4 writes the write data received from the host 2 to the write destination block (step S12). In step S12, the controller 4 writes both the logical address (here, LBA) and the write data to the write destination block.

コントローラ4は、ブロック管理テーブル32を更新して、書き込まれたデータに対応するビットマップフラグ(つまり、このデータが書き込まれた物理記憶位置の物理アドレスに対応するビットマップフラグ)を0から1に変更する(ステップS13)。例えば、図18に示されているように、開始LBAがLBAxである16Kバイト更新データがブロックBLK#1のオフセット+4~+7に対応する物理記憶位置に書き込まれた場合を想定する。この場合、図19に示されているように、ブロックBLK#1用のブロック管理テーブルにおいては、オフセット+4~+7に対応するビットマップフラグそれぞれが0から1に変更される。 The controller 4 updates the block management table 32 to change the bitmap flag corresponding to the written data (that is, the bitmap flag corresponding to the physical address of the physical storage position where this data is written) from 0 to 1. Change (step S13). For example, as shown in FIG. 18, it is assumed that 16 Kbyte update data having a start LBA of LBAx is written to a physical storage position corresponding to offsets +4 to +7 of block BLK # 1. In this case, as shown in FIG. 19, in the block management table for block BLK # 1, each of the bitmap flags corresponding to the offsets +4 to +7 is changed from 0 to 1.

コントローラ4は、このライトコマンドに対するレスポンスをホスト2に返す(ステップS14)。例えば、図18に示されているように、開始LBAがLBAxである16Kバイト更新データがブロックBLK#1のオフセット+4~+7に対応する物理記憶位置に書き込まれたならば、LBAx、ブロック番号(=BLK1)、オフセット(=+4)、長さ(=4)を含むレスポンスがコントローラ4からホスト2に送信される。 The controller 4 returns a response to this write command to the host 2 (step S14). For example, as shown in FIG. 18, if 16 Kbyte update data having a start LBA of LBAx is written to a physical storage position corresponding to offsets +4 to +7 of block BLK # 1, the LBAx, block number ( A response including = BLK1), offset (= +4), and length (= 4) is transmitted from the controller 4 to the host 2.

ホスト2がこのレスポンスを受信した時、ホスト2は、ホスト2によって管理されているLUTを更新して、書き込まれたライトデータに対応する論理アドレスそれぞれに物理アドレスをマッピングする。図20に示されているように、LUTは、複数の論理アドレス(例えばLBA)それぞれに対応する複数のエントリを含む。ある論理アドレス(例えばあるLBA)に対応するエントリには、このLBAに対応するデータが格納されているNAND型フラッシュメモリ5内の位置(物理記憶位置)を示す物理アドレスPBA、つまりブロック番号、オフセット(ブロック内オフセット)が格納される。図18に示されているように、開始LBAがLBAxである16Kバイト更新データがブロックBLK#1のオフセット+4~+7に対応する物理記憶位置に書き込まれたならば、図20に示されているように、LUTが更新されて、LBAxに対応するエントリにBLK#1、オフセット+4が格納され、LBAx+1に対応するエントリにBLK#1、オフセット+5が格納され、LBAx+2に対応するエントリにBLK#1、オフセット+6が格納され、LBAx+3に対応するエントリにBLK#1、オフセット+7が格納される。 When the host 2 receives this response, the host 2 updates the LUT managed by the host 2 and maps the physical address to each of the logical addresses corresponding to the written write data. As shown in FIG. 20, the LUT contains a plurality of entries corresponding to each of the plurality of logical addresses (eg, LBA). In the entry corresponding to a certain logical address (for example, a certain LBA), the physical address PBA indicating the position (physical storage position) in the NAND flash memory 5 in which the data corresponding to this LBA is stored, that is, the block number and the offset. (Offset in block) is stored. As shown in FIG. 18, if 16 Kbyte update data with a starting LBA of LBAx is written to the physical storage location corresponding to offsets +4 to +7 of block BLK # 1, it is shown in FIG. As described above, the LUT is updated, BLK # 1 and offset +4 are stored in the entry corresponding to LBAx, BLK # 1 and offset +5 are stored in the entry corresponding to LBAx + 1, and BLK # 1 is stored in the entry corresponding to LBAx + 2. , Offset +6 is stored, and BLK # 1 and offset +7 are stored in the entry corresponding to LBAx + 3.

この後、ホスト2は、上述の更新データの書き込みによって不要になった以前のデータを無効化するためのTrimコマンドをフラッシュストレージデバイス3に送信する(ステップS21)。図18に示されているように、以前のデータがブロックBLK#0のオフセット+0、オフセット+1、オフセット+2、オフセット+3に対応する位置に格納されている場合には、図21に示すように、ブロック番号(=BLK#0)、オフセット(=+0)、長さ(=4)を指定するTrimコマンドがホスト2からフラッシュストレージデバイス3に送信される。フラッシュストレージデバイス3のコントローラ4は、このTrimコマンドに応じて、ブロック管理テーブル32を更新する(ステップS15)。ステップS15においては、図21に示すように、ブロックBLK#0用のブロック管理テーブルにおいて、オフセット+0~+3に対応するビットマップフラグそれぞれが1から0に変更される。 After that, the host 2 transmits a Trim command to the flash storage device 3 for invalidating the previous data that is no longer needed by writing the update data described above (step S21). As shown in FIG. 18, when the previous data is stored at the positions corresponding to the offset +0, offset +1, offset +2, and offset +3 of the block BLK # 0, as shown in FIG. A Trim command for specifying the block number (= BLK # 0), offset (= +0), and length (= 4) is transmitted from the host 2 to the flash storage device 3. The controller 4 of the flash storage device 3 updates the block management table 32 in response to this Trim command (step S15). In step S15, as shown in FIG. 21, in the block management table for block BLK # 0, the bitmap flags corresponding to the offsets +0 to +3 are changed from 1 to 0, respectively.

図22は、フラッシュストレージデバイス3に適用されるリードコマンドを示す。 FIG. 22 shows a read command applied to the flash storage device 3.

リードコマンドは、フラッシュストレージデバイス3にデータの読み出しを要求するコマンドである。このリードコマンドは、コマンドID、物理アドレスPBA、長さ、転送先ポインタを含む。 The read command is a command that requests the flash storage device 3 to read data. This read command includes a command ID, a physical address PBA, a length, and a transfer destination pointer.

コマンドIDはこのコマンドがリードコマンドであることを示すID(コマンドコード)であり、リードコマンドにはリードコマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a read command, and the read command includes a command ID for the read command.

物理アドレスPBAは、データが読み出されるべき最初の物理記憶位置を示す。物理アドレスPBAは、ブロック番号、オフセット(ブロック内オフセット)によって指定される。 The physical address PBA indicates the first physical storage location where the data should be read. The physical address PBA is specified by a block number and an offset (intra-block offset).

長さは、リードすべきデータの長さを示す。このデータ長は、Grainの数によって指定可能である。 The length indicates the length of data to be read. This data length can be specified by the number of grains.

転送先ポインタは、読み出されたデータが転送されるべきホスト2内のメモリ上の位置を示す。 The transfer destination pointer indicates a position on the memory in the host 2 to which the read data should be transferred.

一つのリードコマンドは、物理アドレスPBA(ブロック番号、オフセット)と長さの組を複数指定することができる。 One read command can specify a plurality of pairs of physical address PBA (block number, offset) and length.

図23は、リード動作を示す。 FIG. 23 shows the read operation.

ここでは、ブロック番号(=BLK#2)、オフセット(=+5)、長さ(=3)を指定するリードコマンドがホスト2から受信された場合が想定されている。フラッシュストレージデバイス4のコントローラ5は、ブロック番号(=BLK#2)、オフセット(=+5)、長さ(=3)に基づいて、BLK#2からデータd1~d3をリードする。この場合、コントローラ4は、BLK#2のページ1から1ページサイズ分のデータをリードし、このリードデータからデータd1~データd3を抽出する。次いで、コントローラ4は、データd1~データd3を、転送先ポインタによって指定されるホストメモリ上に転送する。 Here, it is assumed that a read command for specifying the block number (= BLK # 2), offset (= +5), and length (= 3) is received from the host 2. The controller 5 of the flash storage device 4 reads data d1 to d3 from BLK # 2 based on the block number (= BLK # 2), offset (= +5), and length (= 3). In this case, the controller 4 reads data for one page size from page 1 of BLK # 2, and extracts data d1 to data d3 from the read data. Next, the controller 4 transfers the data d1 to the data d3 onto the host memory designated by the transfer destination pointer.

図24は、ホスト2からのリードコマンドに応じて、異なる物理記憶位置にそれぞれ格納されているデータ部をリードする動作を示す。 FIG. 24 shows an operation of reading a data unit stored in different physical storage positions in response to a read command from the host 2.

ここでは、ブロック番号(=BLK#2)、オフセット(=+10)、長さ(=2)、ブロック番号(=BLK#2)、オフセット(=+16)、長さ(=4)を指定するリードコマンドがホスト2から受信された場合が想定されている。フラッシュストレージデバイス4のコントローラ5は、ブロック番号(=BLK#2)、オフセット(=+10)、長さ(=2)に基づいて、BLK#2のページ2から1ページサイズ分のデータをリードし、このリードデータからデータd1~データd2を抽出する。次いで、コントローラ5は、ブロック番号(=BLK#2)、オフセット(=+16)、長さ(=4)に基づいて、BLK#2のページ4から1ページサイズ分のデータ(データd3~データd4)をリードする。そして、コントローラ5は、データd1~データd2とデータd3~データd4とを結合することによって得られる長さ(=6)のリードデータを、リードコマンド内の転送先ポインタによって指定されるホストメモリ上に転送する。 Here, a read that specifies the block number (= BLK # 2), offset (= +10), length (= 2), block number (= BLK # 2), offset (= +16), and length (= 4). It is assumed that the command is received from host 2. The controller 5 of the flash storage device 4 reads data for one page size from page 2 of BLK # 2 based on the block number (= BLK # 2), offset (= +10), and length (= 2). , Data d1 to data d2 are extracted from this read data. Next, the controller 5 receives data (data d3 to data d4) for one page size from page 4 of BLK # 2 based on the block number (= BLK # 2), offset (= +16), and length (= 4). ) Lead. Then, the controller 5 transfers the read data of the length (= 6) obtained by combining the data d1 to the data d2 and the data d3 to the data d4 on the host memory specified by the transfer destination pointer in the read command. Transfer to.

これにより、たとえブロック内に不良ページが存在する場合であっても、リードエラーを引き起こすことなく、別個の物理記憶位置からデータ部をリードすることができる。また、たとえデータが2つのブロックに跨がって書き込まれている場合であっても、このデータを一つのリードコマンドの発行によってリードすることができる。 This makes it possible to read the data unit from a separate physical storage location without causing a read error, even if there are bad pages in the block. Further, even if the data is written over two blocks, this data can be read by issuing one read command.

図25は、ホスト2とフラッシュストレージデバイス3とによって実行されるリード処理のシーケンスを示す。 FIG. 25 shows a sequence of read processing performed by the host 2 and the flash storage device 3.

ホスト2は、ホスト2によって管理されているLUTを参照して、ユーザアプリケーションからのリード要求に含まれる論理アドレスをブロック番号、オフセットに変換する。そして、ホスト2は、このブロック番号、オフセット、長さを指定するリードコマンドをフラッシュストレージデバイス3に送信する。 The host 2 refers to the LUT managed by the host 2 and converts the logical address included in the read request from the user application into a block number and an offset. Then, the host 2 sends a read command for specifying the block number, the offset, and the length to the flash storage device 3.

フラッシュストレージデバイス3のコントローラ4がリードコマンドをホスト2から受信した時、コントローラ4は、このリードコマンドによって指定されたブロック番号に対応するブロックをリード対象のブロックとして決定するとともに、このリードコマンドによって指定されたオフセットに基づいてリード対象のページを決定する(ステップS31)。ステップS31では、コントローラ4は、まず、リードコマンドによって指定されたオフセットを、ページサイズを表す粒度の数(ここでは、4)で除算してもよい。そして、コントローラ4は、この除算によって得られる商および余りを、リード対象のページ番号およびリード対象のページ内オフセット位置としてそれぞれ決定してもよい。 When the controller 4 of the flash storage device 3 receives the read command from the host 2, the controller 4 determines the block corresponding to the block number specified by this read command as the block to be read, and also designates the block by this read command. The page to be read is determined based on the offset (step S31). In step S31, the controller 4 may first divide the offset specified by the read command by the number of particle sizes representing the page size (here, 4). Then, the controller 4 may determine the quotient and the remainder obtained by this division as the page number of the read target and the offset position in the page of the read target, respectively.

コントローラ4は、ブロック番号、オフセット、長さによって規定されるデータをNAND型フラッシュメモリ5からリードし(ステップS32)、このリードデータをホスト2に送信する。 The controller 4 reads the data defined by the block number, the offset, and the length from the NAND flash memory 5 (step S32), and transmits this read data to the host 2.

図26は、フラッシュストレージデバイス3に適用されるGC制御コマンドを示す。 FIG. 26 shows GC control commands applied to the flash storage device 3.

GC制御コマンドは、コマンドID、ポリシー、ソースQoSドメインID、デスティネーションQoSドメインID、等を含んでもよい。 The GC control command may include a command ID, a policy, a source QoS domain ID, a destination QoS domain ID, and the like.

コマンドIDはこのコマンドがGC制御コマンドであることを示すID(コマンドコード)であり、GC制御コマンドにはGC制御コマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a GC control command, and the GC control command includes a command ID for the GC control command.

ポリシーは、GC候補ブロック(GCソースブロック)を選択するための条件(GCポリシー)を指定するパラメータである。フラッシュストレージデバイス3のコントローラ4は、複数のGCポリシーをサポートしている。 The policy is a parameter that specifies a condition (GC policy) for selecting a GC candidate block (GC source block). The controller 4 of the flash storage device 3 supports a plurality of GC policies.

コントローラ4によってサポートされているGCポリシーには、有効データ量が少ないブロックを優先的にGC候補ブロック(GCソースブロック)として選択するというポリシー(Greedy)が含まれてもよい。 The GC policy supported by the controller 4 may include a policy (Greedy) in which a block having a small amount of valid data is preferentially selected as a GC candidate block (GC source block).

また、コントローラ4によってサポートされているGCポリシーには、低い更新頻度を有するデータ(コールドデータ)が集められているブロックを、高い更新頻度を有するデータ(ホットデータ)が集められているブロックよりも優先的にGC候補ブロック(GCソースブロック)として選択するというポリシーが含まれていてもよい。 Further, in the GC policy supported by the controller 4, a block in which data having a low update frequency (cold data) is collected is more than a block in which data having a high update frequency (hot data) is collected. A policy of preferentially selecting as a GC candidate block (GC source block) may be included.

さらに、GCポリシーは、GC開始条件を指定してもよい。GC開始条件は、例えば、残りフリーブロックの個数を示してもよい。 In addition, the GC policy may specify GC start conditions. The GC start condition may indicate, for example, the number of remaining free blocks.

コントローラ4は、有効データを含むブロック群をアクティブブロックリストによって管理しており、GCを実行する場合には、GC制御コマンドによって指定されたGCポリシーに基づいて、アクティブブロックリストによって管理されているブロック群から一つ以上のGC候補ブロック(GCソースブロック)を選択する。 The controller 4 manages a group of blocks including valid data by the active block list, and when executing GC, the blocks managed by the active block list based on the GC policy specified by the GC control command. Select one or more GC candidate blocks (GC source blocks) from the group.

ソースQoSドメインIDは、どのQoSドメインをGCソースとすべきかを指定するパラメータである。コントローラ4は、ソースQoSドメインIDによって指定されるQoSドメインに属するブロック群、つまりこのQoSドメインに対応するアクティブブロックリストから、一つ以上のGC候補ブロック(GCソースブロック)を選択する。 The source QoS domain ID is a parameter that specifies which QoS domain should be the GC source. The controller 4 selects one or more GC candidate blocks (GC source blocks) from the block group belonging to the QoS domain specified by the source QoS domain ID, that is, the active block list corresponding to this QoS domain.

デスティネーションQoSドメインIDは、どのQoSドメインをGCデスティネーションとすべきかを指定するパラメータである。コントローラ4は、デスティネーションQoSドメインIDによって指定されるQoSドメインに属するフリーブロック群内の一つ以上のフリーブロックをGCデスティネーションブロックとして選択することができる。 The destination QoS domain ID is a parameter that specifies which QoS domain should be the GC destination. The controller 4 can select one or more free blocks in the free block group belonging to the QoS domain specified by the destination QoS domain ID as the GC destination block.

ソースQoSドメインIDおよびデスティネーションQoSドメインIDは、同じQoSドメインを指定してもよいし、互いに異なるQoSドメインを指定してもよい。つまり、ソースQoSドメインIDおよびデスティネーションQoSドメインIDの各々は、複数のQoSドメインの任意の一つを指定するパラメータである。 The source QoS domain ID and the destination QoS domain ID may specify the same QoS domain or different QoS domains. That is, each of the source QoS domain ID and the destination QoS domain ID is a parameter that specifies any one of the plurality of QoS domains.

コントローラ4は、ソースQoSドメインに対応する残りフリーブロックの数がポリシーによって指定される閾値以下になった場合に、GCを開始してもよい。もしGCの強制実行を指定するポリシーを含むGC制御コマンドを受信したならば、コントローラ4は、ホスト2からこのGC制御コマンドを受信した時にGCを即座に開始してもよい。 The controller 4 may start GC when the number of remaining free blocks corresponding to the source QoS domain falls below the threshold specified by the policy. If a GC control command including a policy specifying the forced execution of the GC is received, the controller 4 may start the GC immediately when the GC control command is received from the host 2.

図27は、GC用コールバックコマンドを示す。 FIG. 27 shows a GC callback command.

GC用コールバックコマンドは、GCによってコピーされた有効データの論理アドレスとこの有効データのコピー先位置を示すブロック番号およびオフセットとをホスト2に通知するために使用される。 The GC callback command is used to notify the host 2 of the logical address of the valid data copied by the GC and the block number and offset indicating the copy destination position of the valid data.

GC用コールバックコマンドは、コマンドID、論理アドレス、長さ、デスティネーション物理アドレス、ソース物理アドレス(オプショナル)を含んでよい。 The GC callback command may include a command ID, a logical address, a length, a destination physical address, and a source physical address (optional).

コマンドIDはこのコマンドがGC用コールバックコマンドであることを示すID(コマンドコード)であり、GC用コールバックコマンドにはGC用コールバックコマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a GC callback command, and the GC callback command includes a command ID for a GC callback command.

論理アドレスは、GCによってGCソースブロックからGCデスティネーションブロックにコピーされた有効データの論理アドレスを示す。 The logical address indicates the logical address of the valid data copied by the GC from the GC source block to the GC destination block.

長さは、このコピーされたデータの長さを示す。このデータ長は、粒度(Grain)の数によって指定されてもよい。 The length indicates the length of this copied data. This data length may be specified by the number of grain.

デスティネーション物理アドレスは、有効データがコピーされたGCデスティネーションブロック内の位置を示す。デスティネーション物理アドレスは、ブロック番号、オフセット(ブロック内オフセット)によって指定される。 The destination physical address indicates the location within the GC destination block where the valid data was copied. The destination physical address is specified by the block number and offset (intra-block offset).

ソース物理アドレス(オプショナル)は、有効データが格納されていたGCソースブロック内の位置を示す。ソース物理アドレスは、ブロック番号、オフセット(ブロック内オフセット)によって指定される。 The source physical address (optional) indicates the position in the GC source block where the valid data was stored. The source physical address is specified by the block number and offset (intra-block offset).

図28は、ガベージコレクション(GC)動作の手順を示す。 FIG. 28 shows the procedure of garbage collection (GC) operation.

フラッシュストレージデバイス3のコントローラ4は、ホスト2によって指定されたポリシーに基づいて、ソースQoSドメインIDによって指定されるQoSドメインに属するブロック群から、有効データと無効データとが混在する一つ以上のGCソースブロック(コピー元ブロック)を選択する(ステップS41)。次いで、コントローラ4は、デスティネーションQoSドメインIDによって指定されるQoSドメインに属するフリーブロック群から一つ以上のフリーブロックを選択し、選択したフリーブロックをGCデスティネーションブロック(コピー先ブロック)として割り当てる(ステップS42)。 The controller 4 of the flash storage device 3 is one or more GCs in which valid data and invalid data are mixed from a group of blocks belonging to the QoS domain specified by the source QoS domain ID based on the policy specified by the host 2. Select the source block (copy source block) (step S41). The controller 4 then selects one or more free blocks from the group of free blocks belonging to the QoS domain specified by the destination QoS domain ID and assigns the selected free blocks as GC destination blocks (copy destination blocks) ( Step S42).

コントローラ4は、GCソースブロック(コピー元ブロック)内の全ての有効データをGCデスティネーションブロック(コピー先ブロック)にコピーする(ステップS44)。ステップS44では、コントローラ4は、GCソースブロック(コピー元ブロック)内の有効データのみならず、この有効データとこの有効データに対応する論理アドレスの双方を、GCソースブロック(コピー元ブロック)からGCデスティネーションブロック(コピー先ブロック)にコピーする。これにより、GCデスティネーションブロック(コピー先ブロック)内にデータと論理アドレスとのペアを保持することができる。 The controller 4 copies all the valid data in the GC source block (copy source block) to the GC destination block (copy destination block) (step S44). In step S44, the controller 4 transfers not only the valid data in the GC source block (copy source block) but also both the valid data and the logical address corresponding to the valid data from the GC source block (copy source block) to GC. Copy to the destination block (copy destination block). As a result, a pair of data and a logical address can be held in the GC destination block (copy destination block).

そして、コントローラ4は、コピーされた有効データの論理アドレスと、この有効データがコピーされたGCデスティネーションブロック(コピー先ブロック)内の位置を示すデスティネーション物理アドレス(ブロック番号、オフセット(ブロック内オフセット))を、GC用コールバックコマンドを使用してホスト2に通知する(ステップS44)。なお、ステップS44では、コントローラ4は、コピーされた有効データの論理アドレスとデスティネーション物理アドレスとみならず、ソース物理アドレスもホスト2に通知してもよい。 Then, the controller 4 uses the logical address of the copied valid data and the destination physical address (block number, offset (offset in the block) indicating the position in the GC destination block (copy destination block) to which the valid data is copied. )) Is notified to the host 2 by using the GC callback command (step S44). In step S44, the controller 4 may notify the host 2 not only the logical address and the destination physical address of the copied valid data but also the source physical address.

ホスト2がこのGC用コールバックコマンドを受信した時、ホスト2は、ホスト2によって管理されているLUTを更新して、コピーされた有効データに対応する論理アドレスそれぞれにデスティネーション物理アドレスをマッピングする(ステップS51)。 When the host 2 receives this GC callback command, the host 2 updates the LUT managed by the host 2 and maps the destination physical address to each logical address corresponding to the copied valid data. (Step S51).

図29は、GCのために実行されるデータコピー動作の例を示す。 FIG. 29 shows an example of a data copy operation performed for GC.

図29では、GCソースブロック(ここではブロックBLK#50)のオフセット+4に対応する位置に格納されている有効データ(LBA=10)が、GCデスティネーションブロック(ここではブロックBLK#100)のオフセット+0に対応する位置にコピーされ、GCソースブロック(ここではブロックBLK#50)のオフセット+10に対応する位置に格納されている有効データ(LBA=20)が、GCデスティネーションブロック(ここではブロックBLK#100)のオフセット+1に対応する位置にコピーされた場合が想定されている。この場合、コントローラ4は、{LBA10、BLK#100、オフセット(=+0)、LBA20、BLK#100、オフセット(=+1)}をホストに通知する(GC用コールバック処理)。 In FIG. 29, the valid data (LBA = 10) stored at the position corresponding to the offset +4 of the GC source block (here, block BLK # 50) is the offset of the GC destination block (here, block BLK # 100). The valid data (LBA = 20) that is copied to the position corresponding to +0 and stored at the position corresponding to the offset +10 of the GC source block (here, block BLK # 50) is the GC destination block (here, block BLK). It is assumed that the data is copied to the position corresponding to the offset +1 of # 100). In this case, the controller 4 notifies the host of {LBA10, BLK # 100, offset (= + 0), LBA20, BLK # 100, offset (= + 1)} (GC callback process).

図30は、図29のデータコピー動作の結果に基づいて更新されるホスト2のLUTの内容を示す。 FIG. 30 shows the contents of the LUT of the host 2 which is updated based on the result of the data copy operation of FIG. 29.

このLUTにおいては、LBA10に対応するブロック番号およびオフセットは、BLK#50、オフセット(=+4)から、BLK#100、オフセット(=+0)に更新される。同様に、LBA20に対応するブロック番号およびオフセットは、BLK#50、オフセット(=+10)から、BLK#100、オフセット(=+1)に更新される。 In this LUT, the block number and offset corresponding to LBA10 are updated from BLK # 50, offset (= + 4) to BLK # 100, offset (= +0). Similarly, the block number and offset corresponding to LBA20 are updated from BLK # 50, offset (= +10) to BLK # 100, offset (= + 1).

LUTが更新された後、ホスト2は、BLK#50およびオフセット(=+4)を指定するTrimコマンドをフラッシュストレージデバイス3に送信して、BLK#50のオフセット(=+4)に対応する位置に格納されているデータを無効化してもよい。さらに、ホスト2は、BLK#50およびオフセット(=+10)を指定するTrimコマンドをフラッシュストレージデバイス3に送信して、BLK#50のオフセット(=+10)に対応する位置に格納されているデータを無効化してもよい。 After the LUT is updated, the host 2 sends a Trim command to specify the BLK # 50 and the offset (= + 4) to the flash storage device 3 and stores it in the position corresponding to the offset (= + 4) of the BLK # 50. You may invalidate the data that has been set. Further, the host 2 sends a Trim command for specifying the BLK # 50 and the offset (= +10) to the flash storage device 3, and sends the data stored at the position corresponding to the offset (= +10) of the BLK # 50. It may be invalidated.

図31は、ライトコマンドに対するレスポンスとGC用コールバック処理との関係を示す。 FIG. 31 shows the relationship between the response to the write command and the GC callback process.

コントローラ4がある論理アドレスに対応する有効データをコピーしている間に、この論理アドレスを指定するライトコマンドがホスト2から受信されるというケースが起こる場合がある。 While the controller 4 is copying valid data corresponding to a certain logical address, a write command specifying this logical address may be received from the host 2.

図31では、図29のデータコピー動作(LBA10に対応するデータコピー動作)の実行中に、LBA10を指定するライトコマンドがホスト2から受信された場合が想定されている。 In FIG. 31, it is assumed that a write command specifying the LBA 10 is received from the host 2 during the data copy operation (data copy operation corresponding to the LBA 10) of FIG. 29.

コントローラ4は、ホスト2から受信されるライトデータを書き込み先ブロックに書き込む(ここではBLK#3のオフセット+0に対応する位置に書き込まれる)。そして、コントローラ4は、{LBA10、BLK#3、オフセット(=+0)}をホスト2に通知する。 The controller 4 writes the write data received from the host 2 to the write destination block (here, it is written at the position corresponding to the offset +0 of BLK # 3). Then, the controller 4 notifies the host 2 of {LBA10, BLK # 3, offset (= + 0)}.

ホスト2は、LUTを更新して、LBA10に対応するブロック番号およびオフセットを、BLK#50、オフセット(+4)から、BLK#3、オフセット(+0)に変更する。 The host 2 updates the LUT to change the block number and offset corresponding to LBA10 from BLK # 50, offset (+4) to BLK # 3, offset (+0).

もしこの後に、LBA10のデスティネーション物理アドレスがコントローラ4からホスト2に通知されたならば、LBA10に対応する最新データが格納されている位置を示すブロック番号およびオフセット(BLK#3、オフセット(+0))が、LBA10に対応するデスティネーション物理アドレス(ここでは、BLK#100、オフセット(=+0))に誤って変更されてしまう可能性がある。 If the destination physical address of LBA10 is notified to host 2 from the controller 4 after this, the block number and offset (BLK # 3, offset (+0)) indicating the position where the latest data corresponding to LBA10 is stored. ) May be erroneously changed to the destination physical address corresponding to LBA10 (here, BLK # 100, offset (= +0)).

本実施形態では、コントローラ4は、LBA10とデスティネーション物理アドレス(BLK#100、オフセット(=+0))のみならず、ソース物理アドレス(BLK#50、オフセット(=+4))もホスト2に通知することができる。ホスト2は、ソース物理アドレス(BLK#50、オフセット(=+4))が、LUTによってLBA10に現在マッピングされているブロック番号、オフセットに一致しない場合には、LUTを更新しない。これにより、LBA10に対応する最新データが格納されている位置を示すブロック番号およびオフセット(BLK#3、オフセット(+0))が、LBA10に対応するデスティネーション物理アドレス(ここでは、BLK#100、オフセット(=+0))に誤って変更されてしまうことを防止することができる。 In the present embodiment, the controller 4 notifies the host 2 not only the LBA 10 and the destination physical address (BLK # 100, offset (= + 0)) but also the source physical address (BLK # 50, offset (= + 4)). be able to. The host 2 does not update the LUT if the source physical address (BLK # 50, offset (= +4)) does not match the block number or offset currently mapped to the LBA 10 by the LUT. As a result, the block number and offset (BLK # 3, offset (+0)) indicating the position where the latest data corresponding to LBA10 is stored are the destination physical addresses corresponding to LBA10 (here, BLK # 100, offset). It is possible to prevent it from being accidentally changed to (= + 0)).

図32は、GC制御コマンドの別の例を示す。 FIG. 32 shows another example of a GC control command.

この図32のGC制御コマンドは、ソースQoSドメインIDの代わりに、ソースデバイスIDとソースQoSドメインIDのペアを指定してもよい。さらに、この図32のGC制御コマンドは、デスティネーションQoSドメインIDの代わりに、デスティネーションデバイスIDとデスティネーションQoSドメインIDのペアを指定してもよい。これにより、あるフラッシュストレージデバイス3をGCソースとして動作させ、別のフラッシュストレージデバイス3をGCデスティネーションとして動作させることが可能となる。ソースデバイスIDとデスティネーションデバイスIDが同じである場合には、一つのフラッシュストレージデバイス3内でGCが実行される。 The GC control command of FIG. 32 may specify a pair of a source device ID and a source QoS domain ID instead of the source QoS domain ID. Further, the GC control command of FIG. 32 may specify a pair of a destination device ID and a destination QoS domain ID instead of the destination QoS domain ID. This makes it possible to operate one flash storage device 3 as a GC source and another flash storage device 3 as a GC destination. When the source device ID and the destination device ID are the same, GC is executed in one flash storage device 3.

図33は、図32のGC制御コマンドに対応するGC用コールバックコマンドの例を示す。 FIG. 33 shows an example of a GC callback command corresponding to the GC control command of FIG. 32.

図33のGC用コールバックコマンドは、デスティネーション物理アドレスの代わりに、デスティネーションデバイスIDとデスティネーション物理アドレスのペアを含む。また、図33のGC用コールバックコマンドは、ソース物理アドレス(オプショナル)の代わりに、ソースデバイスIDとソース物理アドレスのペア(オプショナル)を含んでもよい。 The GC callback command of FIG. 33 includes a destination device ID and a destination physical address pair instead of the destination physical address. Further, the GC callback command of FIG. 33 may include a pair (optional) of the source device ID and the source physical address instead of the source physical address (optional).

いま、デバイスIDが1のフラッシュストレージデバイス3をGCソースとして動作させ、デバイスIDが2のフラッシュストレージデバイス3をGCデスティネーションとして動作させる場合を想定する。ホスト2は、ソースデバイスID#1およびデスティネーションデバイスID#2を指定するGC制御コマンドを、デバイスID#1のフラッシュストレージデバイス3と、デバイスID#2のフラッシュストレージデバイス3に送信してもよい。 Now, it is assumed that the flash storage device 3 having a device ID of 1 is operated as a GC source and the flash storage device 3 having a device ID of 2 is operated as a GC destination. The host 2 may send a GC control command specifying the source device ID # 1 and the destination device ID # 2 to the flash storage device 3 of the device ID # 1 and the flash storage device 3 of the device ID # 2. ..

デバイスID#1のフラッシュストレージデバイス3は、ソースQoSドメインIDによって指定されるQoSドメインに属するブロック群からGCソースブロックを選択し、GCソースブロック内の有効データとこの有効データの論理アドレスとを、デスティネーションデバイスIDによって指定されるフラッシュストレージデバイス(デバイスID#2のフラッシュストレージデバイス)宛てに送信する。GCソースブロック内の有効データとこの有効データの論理アドレスは、例えば、図3のスイッチ1を介して、デバイスID#1のフラッシュストレージデバイス3からデバイスID#2のフラッシュストレージデバイス3に転送される。 The flash storage device 3 of the device ID # 1 selects a GC source block from a group of blocks belonging to the QoS domain specified by the source QoS domain ID, and sets the valid data in the GC source block and the logical address of the valid data. The data is transmitted to the flash storage device (flash storage device of device ID # 2) specified by the destination device ID. The valid data in the GC source block and the logical address of the valid data are transferred from the flash storage device 3 of device ID # 1 to the flash storage device 3 of device ID # 2 via, for example, the switch 1 of FIG. ..

デバイスID#2のフラッシュストレージデバイス3は、デスティネーションQoSドメインIDによって指定されるQoSドメインに属するフリーブロック群からGCデスティネーションブロックを選択し、スイッチ1を介して受信される有効データおよび論理ドレスをGCデスティネーションブロックに書き込む(コピーする)。 The flash storage device 3 of device ID # 2 selects a GC destination block from a group of free blocks belonging to the QoS domain specified by the destination QoS domain ID, and selects valid data and logical dress received via switch 1. Write (copy) to the GC destination block.

デバイスID#2のフラッシュストレージデバイス3は、コピーされた有効データの論理アドレスと、この有効データがコピーされたデスティネーション物理アドレス(ブロック番号、オフセット)を、GC用コールバックコマンドによってホスト2に通知する。 The flash storage device 3 of device ID # 2 notifies the host 2 of the logical address of the copied valid data and the destination physical address (block number, offset) to which the copied valid data is copied by a GC callback command. do.

デバイスID#1のフラッシュストレージデバイス3は、コピーされた有効データの論理アドレスと、この有効データが格納されているソース物理アドレス(ブロック番号、オフセット)を、GC用コールバックコマンドによってホスト2に通知する。 The flash storage device 3 of device ID # 1 notifies the host 2 of the logical address of the copied valid data and the source physical address (block number, offset) in which the valid data is stored by a GC callback command. do.

図34は、書き込み/リード/GC動作を示す。 FIG. 34 shows the write / read / GC operation.

まず、ホスト2からのデータを書き込むホストライト動作について説明する。 First, a host write operation for writing data from the host 2 will be described.

(1)コントローラ4は、ホスト2からLBAとライトデータを受信する。 (1) The controller 4 receives LBA and write data from the host 2.

(2)コントローラ4は、LBAとライトデータの双方を書き込み先ブロックに書き込む。書き込み先ブロックが割り当てられていない場合には、コントローラ4は、フリーブロックリストから一つのフリーブロックを選択し、この選択したフリーブロックを新たな書き込み先ブロックとして割り当てる。そして、コントローラ4は、LBAとライトデータの双方をこの新たな書き込み先ブロックに書き込む。 (2) The controller 4 writes both the LBA and the write data to the write destination block. If the write-destination block is not assigned, the controller 4 selects one free block from the free block list and assigns the selected free block as a new write-destination block. Then, the controller 4 writes both the LBA and the write data to this new write destination block.

(3)コントローラ4は、このLBAと、このライトデータが書き込まれた書き込み先ブロック内の位置を示す物理アドレスPBAをホスト2に通知する。この物理アドレスPBAは、ブロック番号およびオフセットによって表される。書き込み先ブロック全体がデータで満たされると、コントローラ4は、この書き込み先ブロックをアクティブブロックリストに登録する。 (3) The controller 4 notifies the host 2 of this LBA and the physical address PBA indicating the position in the writing destination block in which the write data is written. This physical address PBA is represented by a block number and an offset. When the entire write-destination block is filled with data, the controller 4 registers the write-destination block in the active block list.

次に、リード動作について説明する。 Next, the read operation will be described.

(4)ホスト2は、ホスト2によって管理されているLUTを参照して、ユーザアプリケーションからのリード要求に含まれるLBAをリード用物理アドレスPBA(ブロック番号、オフセット)に変換する。 (4) The host 2 refers to the LUT managed by the host 2 and converts the LBA included in the read request from the user application into the physical address PBA (block number, offset) for reading.

(5)ホスト2から受信されるリード用物理アドレスPBA(ブロック番号、オフセット)に基づいて、コントローラ4は、このブロック番号を有するブロックをリード対象のブロックとして決定する。リード対象のブロックは、アクティブブロックリストによって管理されているブロック群(アクティブブロック)のいずれか一つ、または現在のGCソースブロック、または現在の書き込み先ブロックである。そして、コントローラ4は、オフセットに基づいて、リード対象のブロックからデータをリードする。 (5) Based on the read physical address PBA (block number, offset) received from the host 2, the controller 4 determines the block having this block number as the block to be read. The block to be read is any one of the blocks (active blocks) managed by the active block list, the current GC source block, or the current write destination block. Then, the controller 4 reads the data from the block to be read based on the offset.

次に、GC動作について説明する。 Next, the GC operation will be described.

(6)コントローラ4は、GCソースブロック(コピー元ブロック)およびGCデスティネーションブロック(コピー先ブロック)を選択し、GCソースブロック内に格納されている有効データとこの有効データのLBAの双方をGCデスティネーションブロックにコピーする。 (6) The controller 4 selects a GC source block (copy source block) and a GC destination block (copy destination block), and GCs both the valid data stored in the GC source block and the LBA of this valid data. Copy to the destination block.

(7)コントローラ4は、コピーされた有効データのLBAと、この有効データがコピーされたGCデスティネーションブロック内の位置を示すPBA(ブロック番号、オフセット)の双方を、ホスト2に通知する。 (7) The controller 4 notifies the host 2 of both the LBA of the copied valid data and the PBA (block number, offset) indicating the position in the GC destination block to which the valid data is copied.

あるいは、コントローラ4は、コピーされた有効データのLBAと、この有効データがコピーされたGCデスティネーションブロック内の位置を示すPBA(ブロック番号、オフセット)と、この有効データが格納されているGCソースブロック内の位置を示すPBA(ブロック番号、オフセット)とを、ホスト2に通知してもよい。 Alternatively, the controller 4 has an LBA of the copied valid data, a PBA (block number, offset) indicating the position in the GC destination block to which the valid data has been copied, and a GC source in which the valid data is stored. The PBA (block number, offset) indicating the position in the block may be notified to the host 2.

図35は、参照カウントを管理するためのブロック管理テーブルの構成例を示す。 FIG. 35 shows a configuration example of a block management table for managing reference counts.

ホスト2は重複排除機能をサポートしている。したがって、ユーザアプリケーションから書き込み要求されたデータと一致する重複データがフラッシュストレージデバイス3(NAND型フラッシュメモリ5)にすでに存在する場合には、ホスト2は、このデータをフラッシュストレージデバイス3に書き込まず、このデータが格納されている位置(ブロック番号、オフセット)を指すポインタのみを、書き込み要求されたデータのLBAに関連付ける。このため、フラッシュストレージデバイス3(NAND型フラッシュメモリ5)に格納されている各4Kバイトデータは、一つの論理アドレスから参照されるだけでなく、複数の論理アドレスから参照される可能性がある。 Host 2 supports the deduplication function. Therefore, if duplicate data matching the data requested to be written by the user application already exists in the flash storage device 3 (NAND type flash memory 5), the host 2 does not write this data to the flash storage device 3. Only the pointer to the position (block number, offset) where this data is stored is associated with the LBA of the data requested to be written. Therefore, each 4 Kbyte data stored in the flash storage device 3 (NAND flash memory 5) may be referred not only from one logical address but also from a plurality of logical addresses.

本実施形態においては、フラッシュストレージデバイス3は、4Kバイトデータ毎に参照カウントを管理する機能を有している。ここで、あるデータに対応する参照カウントは、このデータを参照している論理アドレスの数を示す。 In the present embodiment, the flash storage device 3 has a function of managing the reference count for each 4 Kbyte data. Here, the reference count corresponding to a certain data indicates the number of logical addresses that refer to this data.

図35では、ブロックBLK#1用のブロック管理テーブルが例示されている。 In FIG. 35, a block management table for block BLK # 1 is illustrated.

ブロックBLK#1用のブロック管理テーブルは、ブロックBLK#1の複数のオフセット値それぞれに対応する複数のエントリを含む。 The block management table for block BLK # 1 contains a plurality of entries corresponding to each of the plurality of offset values of block BLK # 1.

例えば、オフセット+0に対応するエントリには、ブロックBLK#1のオフセット+0に対応する位置に格納されている4KBデータに対応する参照カウントが格納される。同様に、オフセット+1に対応するエントリには、ブロックBLK#1のオフセット+1に対応する位置に格納されている4KBデータに対応する参照カウントが格納される。 For example, the entry corresponding to the offset +0 stores the reference count corresponding to the 4KB data stored at the position corresponding to the offset +0 of the block BLK # 1. Similarly, the entry corresponding to offset +1 stores the reference count corresponding to the 4KB data stored at the position corresponding to offset +1 of block BLK # 1.

参照カウントが1以上であるデータは有効データであり、参照カウントが0のデータは無効データである。 Data with a reference count of 1 or more is valid data, and data with a reference count of 0 is invalid data.

フラッシュストレージデバイス3は、ホスト2から受信されるデュプリケートコマンド/Ttimコマンドに基づいて、参照カウントをインクリメント/デクリメントする。 The flash storage device 3 increments / decrements the reference count based on the duplicate command / Ttim command received from the host 2.

図36は、参照カウントの管理のためにフラッシュストレージデバイス3に適用されるデュプリケートコマンドを示す。 FIG. 36 shows a duplicate command applied to the flash storage device 3 for reference counting management.

デュプリケートコマンドは、ある物理アドレス(ブロック番号、オフセット)に格納されているデータの参照カウントを1増やすことをフラッシュストレージデバイス3に要求するコマンドである。 The duplicate command is a command that requests the flash storage device 3 to increase the reference count of the data stored at a certain physical address (block number, offset) by 1.

このデュプリケートコマンドは、コマンドID、物理アドレスPBA、長さ、等を含んでもよい。 This duplicate command may include a command ID, physical address PBA, length, etc.

コマンドIDはこのコマンドがデュプリケートコマンドであることを示すID(コマンドコード)であり、デュプリケートコマンドにはデュプリケートコマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a duplicate command, and the duplicate command includes a command ID for the duplicate command.

物理アドレスPBAは、参照カウントを1だけ増やすべきデータが格納されている最初の物理記憶位置を示す。物理アドレスPBAは、ブロック番号、オフセット(ブロック内オフセット)によって指定される。 The physical address PBA indicates the first physical storage location in which the data whose reference count should be incremented by 1 is stored. The physical address PBA is specified by a block number and an offset (intra-block offset).

長さは、参照カウントを1だけ増やすべきデータの長さを示す。このデータ長は、粒度(Grain)の数によって指定可能である。 The length indicates the length of data for which the reference count should be incremented by one. This data length can be specified by the number of grain.

コントローラ4は、参照カウントを増やすべきデータが格納されている物理記憶位置を示すブロック番号およびブロック内オフセットを含むデュプリケートコマンドをホスト2から受信した場合、ブロック管理テーブル32を更新して、デュプリケートコマンドに含まれるブロック番号およびブロック内オフセットに対応する物理記憶位置のデータに対応する参照カウントを1増やす。 When the controller 4 receives from the host 2 a duplicate command including a block number indicating a physical storage position in which data for which the reference count should be increased is stored and an intra-block offset, the controller 4 updates the block management table 32 to the duplicate command. Increases the reference count corresponding to the data in the physical storage location corresponding to the included block number and intra-block offset by 1.

図37は、参照カウントの管理のためにフラッシュストレージデバイス3に適用されるTrimコマンドを示す。 FIG. 37 shows a Trim command applied to the flash storage device 3 for reference counting management.

このTrimコマンドは、ある物理アドレス(ブロック番号、オフセット)に格納されているデータの参照カウントを1減らすことをフラッシュストレージデバイス3に要求するコマンドである。 This Trim command is a command that requests the flash storage device 3 to decrement the reference count of the data stored at a certain physical address (block number, offset) by 1.

このTrimコマンドは、コマンドID、物理アドレスPBA、長さ、等を含んでもよい。 This Trim command may include a command ID, physical address PBA, length, and the like.

コマンドIDはこのコマンドがTrimコマンドであることを示すID(コマンドコード)であり、TrimコマンドにはTrimコマンド用のコマンドIDが含まれる。 The command ID is an ID (command code) indicating that this command is a Trim command, and the Trim command includes a command ID for the Trim command.

物理アドレスPBAは、参照カウントを1だけ減らすべきデータが格納されている最初の物理記憶位置を示す。物理アドレスPBAは、ブロック番号、オフセット(ブロック内オフセット)によって指定される。 The physical address PBA indicates the first physical storage location in which the data whose reference count should be decremented by 1 is stored. The physical address PBA is specified by a block number and an offset (intra-block offset).

長さは、参照カウントを1だけ減らすべきデータの長さを示す。このデータ長は、粒度(Grain)の数によって指定可能である。 Length indicates the length of data for which the reference count should be decremented by one. This data length can be specified by the number of grain.

コントローラ4は、参照カウントを減らすべきデータが格納されている物理記憶位置を示すブロック番号およびブロック内オフセットを含むTrimコマンドをホスト2から受信した場合、ブロック管理テーブル32を更新して、Trimコマンドに含まれるブロック番号およびブロック内オフセットに対応する物理記憶位置のデータに対応する参照カウントを1減らす。 When the controller 4 receives from the host 2 a Trim command including a block number indicating a physical storage position in which data for which the reference count should be reduced is stored and an intra-block offset, the controller 4 updates the block management table 32 to the Trim command. Decrease the reference count corresponding to the physical storage location data corresponding to the included block number and intra-block offset by 1.

図38は、参照カウントインクリメント/デクリメント処理を示す。 FIG. 38 shows the reference count increment / decrement process.

フラッシュストレージデバイス3のコントローラ4がホスト2からデュプリケートコマンドを受信した時、コントローラ4は、デュプリケートコマンドによって指定される物理アドレスPBA(ブロック番号、オフセット)に対応する参照カウント、つまり、このブロック番号およびオフセットによって指定されるNAND型フラッシュメモリ5内の物理記憶位置に格納されているデータに対応する参照カウントを1増やす(ステップS61)。この場合、コントローラ4は、デュプリケートコマンドによって指定されるブロック番号を有するブロックに対応するブロック管理テーブル32を更新する。このブロック管理テーブル32の更新では、デュプリケートコマンドによって指定されるオフセットに対応するブロック管理テーブル32内のエントリに格納されている参照カウントが1増やされる。デュプリケートコマンドによって指定される長さが2以上の場合には、デュプリケートコマンドによって指定されるオフセットに対応する参照カウントのみならず、このオフセットに後続する幾つかのオフセットに対応する参照カウントも1増やされる。 When the controller 4 of the flash storage device 3 receives the duplicate command from the host 2, the controller 4 receives the reference count corresponding to the physical address PBA (block number, offset) specified by the duplicate command, that is, the block number and the offset. The reference count corresponding to the data stored in the physical storage position in the NAND flash memory 5 specified by is incremented by 1 (step S61). In this case, the controller 4 updates the block management table 32 corresponding to the block having the block number specified by the duplicate command. This update of the block management table 32 increments the reference count stored in the entry in the block management table 32 corresponding to the offset specified by the duplicate command. If the length specified by the duplicate command is 2 or more, not only the reference count corresponding to the offset specified by the duplicate command, but also the reference count corresponding to some offsets following this offset is incremented by 1. ..

フラッシュストレージデバイス3のコントローラ4がホスト2からTrimコマンドを受信した時、コントローラ4は、Trimコマンドによって指定される物理アドレスPBA(ブロック番号、オフセット)に対応する参照カウント、つまり、このブロック番号およびオフセットによって指定されるNAND型フラッシュメモリ5内の物理記憶位置に格納されているデータに対応する参照カウントを1減らす(ステップS62)。この場合、コントローラ4は、Trimコマンドによって指定されるブロック番号を有するブロックに対応するブロック管理テーブル32を更新する。このブロック管理テーブル32の更新では、Trimコマンドによって指定されるオフセットに対応するブロック管理テーブル32内のエントリに格納されている参照カウントが1減らされる。Trimコマンドによって指定される長さが2以上の場合には、Trimコマンドによって指定されるオフセットに対応する参照カウントのみならず、このオフセットに後続する幾つかのオフセットに対応する参照カウントも1減らされる。 When the controller 4 of the flash storage device 3 receives the Trim command from the host 2, the controller 4 receives the reference count corresponding to the physical address PBA (block number, offset) specified by the Trim command, that is, this block number and offset. The reference count corresponding to the data stored in the physical storage position in the NAND flash memory 5 specified by is decremented by 1 (step S62). In this case, the controller 4 updates the block management table 32 corresponding to the block having the block number specified by the Trim command. This update of the block management table 32 decrements the reference count stored in the entry in the block management table 32 corresponding to the offset specified by the Trim command. If the length specified by the Trim command is 2 or more, not only the reference count corresponding to the offset specified by the Trim command but also the reference count corresponding to some offsets following this offset is decremented by 1. ..

GCにおいては、コントローラ4は、GCソースブロックに対応するブロック管理テーブルを参照して、サイズが4KBであるデータ単位で、GCソースブロック内のデータが有効データであるか無効データであるかを判定する。コントローラ4は、参照カウントが0であるデータは無効データであると判定し、参照カウントが1以上であるデータは有効データであると判定する。そして、コントローラ4は、有効データ(参照カウントが1以上のデータ)とこの有効データに対応する論理アドレスをGCソースブロックからGCデスティネーションブロックにコピーする。 In the GC, the controller 4 refers to the block management table corresponding to the GC source block and determines whether the data in the GC source block is valid data or invalid data in units of data having a size of 4 KB. do. The controller 4 determines that the data having a reference count of 0 is invalid data, and determines that the data having a reference count of 1 or more is valid data. Then, the controller 4 copies the valid data (data having a reference count of 1 or more) and the logical address corresponding to the valid data from the GC source block to the GC destination block.

より詳しくは、コントローラ4は、NAND型フラッシュメモリ5のガベージコレクションを実行する場合、ガベージコレクションのためのコピー元ブロックおよびコピー先ブロックを選択する。コントローラ4は、コピー元ブロック内に格納されている、参照カウントが1以上の第1のデータ(有効データ)と第1のデータの論理アドレスの双方をコピー先ブロックにコピーする。そして、コントローラ4は、第1のデータの論理アドレスと、コピー先ブロックのブロック番号と、第1のデータがコピーされた、コピー先ブロックの先頭からのオフセット位置を粒度の倍数で示すブロック内オフセットとを、ホスト2に通知する。 More specifically, when executing the garbage collection of the NAND flash memory 5, the controller 4 selects the copy source block and the copy destination block for the garbage collection. The controller 4 copies both the first data (valid data) having a reference count of 1 or more and the logical address of the first data stored in the copy source block to the copy destination block. Then, the controller 4 indicates the logical address of the first data, the block number of the copy destination block, and the offset position from the beginning of the copy destination block to which the first data is copied, which is an offset within the block indicating a multiple of the particle size. Is notified to the host 2.

以上説明したように、本実施形態によれば、ホスト2ではなく、フラッシュストレージデバイス3が、ホスト2からのデータ(ユーザデータ)を書き込むべき書き込み先ブロックおよびこの書き込み先ブロック内の位置(書き込み先位置)を決定する。フラッシュストレージデバイス3は、ユーザデータを書き込み先ブロック内の書き込み先位置に書き込み、そして、書き込み先ブロックのブロック番号と、書き込み先ブロックの先頭から書き込み先位置までのオフセットをページサイズとは異なるサイズを有する粒度の倍数で示すブロック内オフセットとをホスト2に通知する。これにより、ホスト2は、ブロックサイズ、ページ書き込み順序制約、バッドページ、ページサイズ等を意識を意識することなく、ユーザデータをNAND型フラッシュメモリ5に書き込むことができ、さらに、ブロック番号およびブロック内オフセットによって表される物理アドレス(抽象化された物理アドレス)をこのユーザデータの論理アドレスにマッピングすることができる。 As described above, according to the present embodiment, the flash storage device 3 instead of the host 2 is the write destination block to which the data (user data) from the host 2 should be written and the position (write destination) in the write destination block. Position) is determined. The flash storage device 3 writes the user data to the write destination position in the write destination block, and sets the block number of the write destination block and the offset from the beginning of the write destination block to the write destination position to a size different from the page size. The host 2 is notified of the offset in the block indicated by a multiple of the particle size. As a result, the host 2 can write the user data to the NAND flash memory 5 without being aware of the block size, the page write order constraint, the bad page, the page size, etc., and further, the block number and the block. The physical address represented by the offset (abstracted physical address) can be mapped to the logical address of this user data.

このように、フラッシュストレージデバイス3が、書き込み先ブロックおよびこの書き込み先ブロック内の位置を決定し、且つブロック番号とブロック内オフセットとをホスト2に返すという構成により、上位階層(ホスト2)のアプリケーションレベルアドレス変換テーブルと従来型SSDのLUTレベルアドレス変換テーブルとのマージを実現することが可能となり、しかも、フラッシュストレージデバイス3が、NAND型フラッシュメモリ5の特徴/制約を考慮してNAND型フラッシュメモリ5を制御することが可能となる。したがって、ホスト2とフラッシュストレージデバイス3との間の適切な役割分担を実現でき、これによってホスト2とフラッシュストレージデバイス3とを含むシステム全体のI/O性能の向上を図ることができる。 In this way, the flash storage device 3 determines the write-destination block and the position in the write-destination block, and returns the block number and the in-block offset to the host 2, so that the application in the upper layer (host 2) It is possible to merge the level address conversion table with the LUT level address conversion table of the conventional SSD, and the flash storage device 3 is a NAND type flash memory in consideration of the features / restrictions of the NAND type flash memory 5. It becomes possible to control 5. Therefore, it is possible to realize an appropriate division of roles between the host 2 and the flash storage device 3, thereby improving the I / O performance of the entire system including the host 2 and the flash storage device 3.

また、本実施形態によれば、アドレス変換テーブルを管理するホスト2ではなく、フラッシュストレージデバイス3がガベージコレクションのためのコピー元ブロックおよびコピー先ブロックを選択し、コピー元ブロック内に格納されている有効データをコピー先ブロックにコピーする。そして、フラッシュストレージデバイス3が、コピーされた有効データの論理アドレスと、コピー先ブロックのブロック番号と、有効データがコピーされたコピー先ブロック内の位置を示すブロック内オフセットとを、ホスト2に通知する。このように、ガベージコレクションはフラッシュストレージデバイス3によって実行され、しかも論理アドレス、ブロック番号、ブロック内オフセットがフラッシュストレージデバイス3からホスト2に通知されるので、ホスト2は、論理アドレスそれぞれとNAND型フラッシュメモリ5の物理アドレス(つまり、ブロック番号とブロック内オフセットとのペア)それぞれとの間のマッピングをアドレス変換テーブル(LUT)を使用して正しい管理することができる。また、アプリケーションレベルGCをフラッシュストレージデバイス3のGCとマージすることができので、ライトアンプリフィケーションを大幅に低減することができる。 Further, according to the present embodiment, the flash storage device 3 selects the copy source block and the copy destination block for garbage collection, and is stored in the copy source block, instead of the host 2 that manages the address translation table. Copy valid data to the destination block. Then, the flash storage device 3 notifies the host 2 of the logical address of the copied valid data, the block number of the copy destination block, and the offset in the block indicating the position in the copy destination block to which the valid data is copied. do. In this way, the garbage collection is executed by the flash storage device 3, and the logical address, the block number, and the offset in the block are notified from the flash storage device 3 to the host 2, so that the host 2 can notify each of the logical addresses and the NAND type flash. The mapping between each physical address of memory 5 (ie, the pair of block number and offset within the block) can be managed correctly using the address translation table (LUT). Further, since the application level GC can be merged with the GC of the flash storage device 3, the write amplification can be significantly reduced.

なお、フラッシュストレージデバイス3は、ストレージアレイ内に設けられる複数のフラッシュストレージデバイス3の一つとして利用されてもよい。ストレージアレイは、サーバ計算機のような情報処理装置にケーブルまたはネットワークを介して接続されてもよい。ストレージアレイは、このストレージアレイ内の複数のフラッシュストレージデバイス3を制御するコントローラを含む。フラッシュストレージデバイス3がストレージアレイに適用された場合には、このストレージアレイのコントローラが、フラッシュストレージデバイス3のホスト2として機能してもよい。 The flash storage device 3 may be used as one of a plurality of flash storage devices 3 provided in the storage array. The storage array may be connected to an information processing device such as a server computer via a cable or a network. The storage array includes a controller that controls a plurality of flash storage devices 3 in the storage array. When the flash storage device 3 is applied to the storage array, the controller of this storage array may function as the host 2 of the flash storage device 3.

また、本実施形態では、不揮発性メモリとしてNAND型フラッシュメモリを例示した。しかし、本実施形態の機能は、例えば、MRAM(Magnetoresistive
Random Access Memory)、PRAM(Phase change
Random Access Memory)、ReRAM(Resistive Random Access Memory)、又は、FeRAM(Ferroelectric Random Access Memory)のような他の様々な不揮発性メモリにも適用できる。
Further, in the present embodiment, a NAND flash memory is exemplified as the non-volatile memory. However, the function of this embodiment is, for example, MRAM (Magnetoresistive).
Random Access Memory), PRAM (Phase change)
It can also be applied to various other non-volatile memories such as Random Access Memory), ReRAM (Resistive Random Access Memory), or FeRAM (Ferroelectric Ramdom Access Memory).

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other embodiments, and various omissions, replacements, and changes can be made without departing from the gist of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are also included in the scope of the invention described in the claims and the equivalent scope thereof.

2…ホスト、3…フラッシュストレージデバイス、4…コントローラ、5…NAND型フラッシュメモリ、21…ライト動作制御部、22…リード動作制御部、23…GC動作制御部。 2 ... Host, 3 ... Flash storage device, 4 ... Controller, 5 ... NAND flash memory, 21 ... Write operation control unit, 22 ... Read operation control unit, 23 ... GC operation control unit.

Claims (18)

ホストに接続可能なメモリシステムであって、
各々が消去動作の単位である複数のブロックを含む不揮発性メモリと、
前記不揮発性メモリに電気的に接続されたコントローラとを具備し、
前記複数のブロックは複数のドメインに分類されており、
前記コントローラは、
第1のデータの書き込みを要求し且つ前記第1のデータが書き込まれるべきドメインの識別子と前記第1のデータに対応する論理アドレスとを指定し、前記第1のデータが書き込まれるべきブロックの識別子を指定しないライトコマンドを前記ホストから受信した場合、前記複数のドメインから、前記指定された識別子に関連付けられたドメインを選択し、前記選択されたドメインに属するブロックの集合から、前記第1のデータが書き込まれるべき第1のブロックを割り当て、前記第1のデータを前記第1のブロック内の第1の記憶位置に書き込み、
前記第1のブロックの前記識別子と前記第1のブロック内のオフセットアドレスとを使用して前記第1の記憶位置を前記ホストに通知するように構成されている、メモリシステム。
A memory system that can be connected to a host
A non-volatile memory containing multiple blocks, each of which is a unit of erasing operation,
A controller electrically connected to the non-volatile memory is provided.
The plurality of blocks are classified into a plurality of domains, and the plurality of blocks are classified into a plurality of domains.
The controller
The identifier of the block that requests the writing of the first data and specifies the identifier of the domain to which the first data is to be written and the logical address corresponding to the first data, and the identifier of the block to which the first data is to be written. When a write command that does not specify is received from the host, the domain associated with the specified identifier is selected from the plurality of domains, and the first data is selected from the set of blocks belonging to the selected domain. Allocates a first block to be written, writes the first data to a first storage position in the first block,
A memory system configured to notify the host of the first storage location using the identifier of the first block and the offset address within the first block .
前記複数のブロックの各々は複数のページを含み、前記複数のページの各々はデータ書き込み動作の単位であり、
前記コントローラは、前記複数のページの各々のサイズとは異なるサイズを有する粒度の倍数を使用して前記オフセットアドレスを指定する請求項記載のメモリシステム。
Each of the plurality of blocks includes a plurality of pages, and each of the plurality of pages is a unit of data writing operation.
The memory system according to claim 1 , wherein the controller specifies the offset address using a multiple of the particle size having a size different from the size of each of the plurality of pages.
前記コントローラは、前記第1のブロックの前記識別子と前記第1のブロック内の前記オフセットアドレスとを指定するリードコマンドを前記ホストから受信した場合、前記第1のブロック内の前記第1の記憶位置から前記第1のデータを読み出すように構成されている請求項記載のメモリシステム。 When the controller receives a read command from the host that specifies the identifier of the first block and the offset address in the first block, the controller receives the first storage position in the first block. The memory system according to claim 1 , which is configured to read the first data from. 前記リードコマンドは、前記第1のデータに対応する前記論理アドレスを指定しない請求項記載のメモリシステム。 The memory system according to claim 3 , wherein the read command does not specify the logical address corresponding to the first data. 前記コントローラは、前記第1のデータに対応する前記論理アドレスを前記第1のデータと一緒に前記第1のブロック内の前記第1の記憶位置に書き込むようにさらに構成されている請求項記載のメモリシステム。 The first aspect of the present invention, wherein the controller is further configured to write the logical address corresponding to the first data to the first storage position in the first block together with the first data. Memory system. 前記コントローラは、
前記第1のデータと前記論理アドレスを前記第1のブロック内の前記第1の記憶位置から前記不揮発性メモリの第2のブロック内の第2の記憶位置にコピーし、
前記第2の記憶位置と前記論理アドレスとを前記ホストに通知するようにさらに構成され
前記第2の記憶位置は、前記第2のブロックの識別子と前記第2のブロック内のオフセットアドレスとを使用して前記ホストに通知される、請求項記載のメモリシステム。
The controller
The first data and the logical address are copied from the first storage position in the first block to the second storage position in the second block of the non-volatile memory.
Further configured to notify the host of the second storage location and the logical address .
The memory system according to claim 5 , wherein the second storage position is notified to the host using the identifier of the second block and the offset address in the second block .
前記複数のブロックの各々は、前記複数のドメインのうちの一つのドメインにのみ属する、請求項1記載のメモリシステム。 The memory system according to claim 1, wherein each of the plurality of blocks belongs to only one domain among the plurality of domains. 前記不揮発性メモリは複数のメモリダイを含み、前記複数のメモリダイの各々は、前記複数のドメインのうちの一つのドメインにのみ属する、請求項1記載のメモリシステム。 The memory system according to claim 1, wherein the non-volatile memory includes a plurality of memory dies, and each of the plurality of memory dies belongs to only one domain among the plurality of domains. ホストに接続可能なメモリシステムであって、
各々が消去動作の単位である複数のブロックを含む不揮発性メモリと、
前記不揮発性メモリに電気的に接続されたコントローラとを具備し、
前記コントローラは、
第1のデータの書き込みを要求し、前記第1のデータに対応する論理アドレスを指定し、且つ第1のデータが書き込まれるべきブロックの識別子を指定しないライトコマンドを前記ホストから受信した場合、前記第1のデータを前記不揮発性メモリ内の第1の記憶位置に書き込み、前記第1のデータが書き込まれたブロックの識別子と前記第1のデータが書き込まれたブロック内のオフセットアドレスとを使用して前記第1の記憶位置を前記ホストに通知し、
前記第1のデータの読み出しを要求し且つ前記第1のデータが書き込まれた前記ブロックの前記識別子と前記第1のデータが書き込まれたブロック内の前記オフセットアドレスとを指定するリードコマンドを前記ホストから受信した場合、前記不揮発性メモリ内の前記第1の記憶位置から前記第1のデータを読み出すように構成されている、メモリシステム。
A memory system that can be connected to a host
A non-volatile memory containing multiple blocks, each of which is a unit of erasing operation,
A controller electrically connected to the non-volatile memory is provided.
The controller
When a write command is received from the host that requests the writing of the first data, specifies the logical address corresponding to the first data, and does not specify the identifier of the block to which the first data should be written. The first data is written to the first storage location in the non-volatile memory, and the identifier of the block in which the first data is written and the offset address in the block in which the first data is written are used. Notify the host of the first storage position,
The host issues a read command that requests reading of the first data and specifies the identifier of the block in which the first data is written and the offset address in the block in which the first data is written. A memory system configured to read the first data from the first storage location in the non-volatile memory when received from.
前記複数のブロックは複数のドメインに分類されており、
前記ライトコマンドは、前記第1のデータが書き込まれるべきドメインの識別子をさらに指定し、
前記コントローラは、
前記複数のドメインから、前記指定された識別子に関連付けられたドメインを選択し、
前記選択されたドメインに属するブロックの集合から、前記第1のデータが書き込まれるべきブロックを割り当てるようにさらに構成されている請求項9記載のメモリシステム。
The plurality of blocks are classified into a plurality of domains, and the plurality of blocks are classified into a plurality of domains.
The write command further specifies the identifier of the domain in which the first data should be written.
The controller
From the plurality of domains, the domain associated with the specified identifier is selected, and the domain is selected.
9. The memory system of claim 9, further configured to allocate blocks from which the first data should be written from a set of blocks belonging to the selected domain.
各々が消去動作の単位である複数のブロックを含む不揮発性メモリをコントローラにより制御する制御方法であって、
前記複数のブロックは複数のドメインに分類されており、
第1のデータの書き込みを要求し且つ前記第1のデータが書き込まれるべきドメインの識別子と前記第1のデータに対応する論理アドレスとを指定し、前記第1のデータが書き込まれるべきブロックの識別子を指定しないライトコマンドをホストから受信した場合、前記複数のドメインから、前記指定された識別子に関連付けられたドメインを選択し、前記選択されたドメインに属するブロックの集合から、前記第1のデータが書き込まれるべき第1のブロックを割り当て、前記第1のデータを前記第1のブロック内の第1の記憶位置に書き込むことと、
前記第1のブロックの前記識別子と前記第1のブロック内のオフセットアドレスとを使用して前記第1の記憶位置を前記ホストに通知することとを具備する制御方法。
It is a control method in which a controller controls a non-volatile memory containing a plurality of blocks, each of which is a unit of erasing operation.
The plurality of blocks are classified into a plurality of domains, and the plurality of blocks are classified into a plurality of domains.
The identifier of the block that requests the writing of the first data and specifies the identifier of the domain to which the first data is to be written and the logical address corresponding to the first data, and the identifier of the block to which the first data is to be written. When a write command that does not specify is received from the host, the domain associated with the specified identifier is selected from the plurality of domains, and the first data is obtained from the set of blocks belonging to the selected domain. Allocating a first block to be written, writing the first data to a first storage position in the first block ,
A control method comprising notifying the host of the first storage position using the identifier of the first block and the offset address in the first block .
前記複数のブロックの各々は複数のページを含み、前記複数のページの各々はデータ書き込み動作の単位であり、
前記オフセットアドレスは、前記複数のページの各々のサイズとは異なるサイズを有する粒度の倍数を使用して指定される請求項11記載の制御方法。
Each of the plurality of blocks includes a plurality of pages, and each of the plurality of pages is a unit of data writing operation.
11. The control method of claim 11 , wherein the offset address is specified using a multiple of the particle size having a size different from the size of each of the plurality of pages.
前記第1のブロックの前記識別子と前記第1のブロック内の前記オフセットアドレスとを指定するリードコマンドを前記ホストから受信した場合、前記第1のブロック内の前記第1の記憶位置から前記第1のデータを読み出すことをさらに具備する請求項11記載の制御方法。 When a read command for specifying the identifier of the first block and the offset address in the first block is received from the host, the first storage position in the first block is used as the first storage position. 11. The control method according to claim 11 , further comprising reading the data of the above. 前記リードコマンドは、前記第1のデータに対応する前記論理アドレスを指定しない請求項13記載の制御方法。 13. The control method according to claim 13 , wherein the read command does not specify the logical address corresponding to the first data. 前記第1のデータに対応する前記論理アドレスを前記第1のデータと一緒に前記第1のブロック内の前記第1の記憶位置に書き込むことをさらに具備する請求項11記載の制御方法。 The control method according to claim 11 , further comprising writing the logical address corresponding to the first data to the first storage position in the first block together with the first data. 前記第1のデータと前記論理アドレスを前記第1のブロック内の前記第1の記憶位置から前記不揮発性メモリの第2のブロック内の第2の記憶位置にコピーすることと、
前記第2の記憶位置と前記論理アドレスとを前記ホストに通知することとをさらに具備し、
前記第2の記憶位置は、前記第2のブロックの識別子と前記第2のブロック内のオフセットアドレスとを使用して前記ホストに通知される、請求項15記載の制御方法。
Copying the first data and the logical address from the first storage position in the first block to a second storage position in the second block of the non-volatile memory.
Further comprising notifying the host of the second storage position and the logical address .
The control method according to claim 15 , wherein the second storage position is notified to the host using the identifier of the second block and the offset address in the second block .
前記複数のブロックの各々は、前記複数のドメインのうちの一つのドメインにのみ属する、請求項11記載の制御方法。 The control method according to claim 11 , wherein each of the plurality of blocks belongs to only one domain among the plurality of domains. 前記不揮発性メモリは複数のメモリダイを含み、前記複数のメモリダイの各々は、前記複数のドメインのうちの一つのドメインにのみ属する、請求項11記載の制御方法。 The control method according to claim 11 , wherein the non-volatile memory includes a plurality of memory dies, and each of the plurality of memory dies belongs to only one domain among the plurality of domains.
JP2020177990A 2020-10-23 2020-10-23 Memory system and control method Active JP7102482B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2020177990A JP7102482B2 (en) 2020-10-23 2020-10-23 Memory system and control method
JP2022106944A JP7490714B2 (en) 2020-10-23 2022-07-01 MEMORY SYSTEM AND CONTROL METHOD - Patent application
JP2023180929A JP2023174933A (en) 2020-10-23 2023-10-20 Memory system and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020177990A JP7102482B2 (en) 2020-10-23 2020-10-23 Memory system and control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017181425A Division JP6785204B2 (en) 2017-09-21 2017-09-21 Memory system and control method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022106944A Division JP7490714B2 (en) 2020-10-23 2022-07-01 MEMORY SYSTEM AND CONTROL METHOD - Patent application

Publications (2)

Publication Number Publication Date
JP2021007058A JP2021007058A (en) 2021-01-21
JP7102482B2 true JP7102482B2 (en) 2022-07-19

Family

ID=74165291

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2020177990A Active JP7102482B2 (en) 2020-10-23 2020-10-23 Memory system and control method
JP2022106944A Active JP7490714B2 (en) 2020-10-23 2022-07-01 MEMORY SYSTEM AND CONTROL METHOD - Patent application
JP2023180929A Pending JP2023174933A (en) 2020-10-23 2023-10-20 Memory system and control method

Family Applications After (2)

Application Number Title Priority Date Filing Date
JP2022106944A Active JP7490714B2 (en) 2020-10-23 2022-07-01 MEMORY SYSTEM AND CONTROL METHOD - Patent application
JP2023180929A Pending JP2023174933A (en) 2020-10-23 2023-10-20 Memory system and control method

Country Status (1)

Country Link
JP (3) JP7102482B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011242833A (en) 2010-05-14 2011-12-01 Tdk Corp Memory controller, flash memory system provided with memory controller and control method of flash memory
JP2013513881A (en) 2009-12-15 2013-04-22 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, program, and system for reducing access conflict in flash memory system
JP2013097789A (en) 2011-10-31 2013-05-20 Apple Inc Systems and methods for obtaining and using nonvolatile memory health information
WO2016013076A1 (en) 2014-07-23 2016-01-28 富士通株式会社 Information processing device, memory controller, storage device control program, and storage device control method
US20160321010A1 (en) 2015-04-28 2016-11-03 Kabushiki Kaisha Toshiba Storage system having a host directly manage physical data locations of storage device
JP2017027388A (en) 2015-07-23 2017-02-02 株式会社東芝 Memory system and control method for nonvolatile memory
JP2017027387A (en) 2015-07-23 2017-02-02 株式会社東芝 Memory system
US20170262175A1 (en) 2016-03-08 2017-09-14 Kabushiki Kaisha Toshiba Storage system, information processing system and method for controlling nonvolatile memory

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6448571B2 (en) 2016-03-08 2019-01-09 東芝メモリ株式会社 Storage system, information processing system, and control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013513881A (en) 2009-12-15 2013-04-22 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, program, and system for reducing access conflict in flash memory system
JP2011242833A (en) 2010-05-14 2011-12-01 Tdk Corp Memory controller, flash memory system provided with memory controller and control method of flash memory
JP2013097789A (en) 2011-10-31 2013-05-20 Apple Inc Systems and methods for obtaining and using nonvolatile memory health information
WO2016013076A1 (en) 2014-07-23 2016-01-28 富士通株式会社 Information processing device, memory controller, storage device control program, and storage device control method
US20160321010A1 (en) 2015-04-28 2016-11-03 Kabushiki Kaisha Toshiba Storage system having a host directly manage physical data locations of storage device
JP2017027388A (en) 2015-07-23 2017-02-02 株式会社東芝 Memory system and control method for nonvolatile memory
JP2017027387A (en) 2015-07-23 2017-02-02 株式会社東芝 Memory system
US20170262175A1 (en) 2016-03-08 2017-09-14 Kabushiki Kaisha Toshiba Storage system, information processing system and method for controlling nonvolatile memory
JP2017162065A (en) 2016-03-08 2017-09-14 東芝メモリ株式会社 Storage system, information processing system, and control method

Also Published As

Publication number Publication date
JP7490714B2 (en) 2024-05-27
JP2021007058A (en) 2021-01-21
JP2022121655A (en) 2022-08-19
JP2023174933A (en) 2023-12-08

Similar Documents

Publication Publication Date Title
JP6785205B2 (en) Memory system and control method
JP7091203B2 (en) Memory system and control method
JP6982468B2 (en) Memory system and control method
US11151029B2 (en) Computing system and method for controlling storage device
JP6785204B2 (en) Memory system and control method
TWI689817B (en) Memory system and control method
JP7013546B2 (en) Memory system
JP7102482B2 (en) Memory system and control method
JP7204020B2 (en) Control method
JP7366222B2 (en) Memory system and control method
JP7167295B2 (en) Memory system and control method
JP7337228B2 (en) Memory system and control method
JP2023021450A (en) memory system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201023

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211019

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220419

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220602

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220614

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220706

R151 Written notification of patent or utility model registration

Ref document number: 7102482

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151