WO2021015175A1 - ストレージ管理装置、ストレージ管理方法およびプログラム - Google Patents

ストレージ管理装置、ストレージ管理方法およびプログラム Download PDF

Info

Publication number
WO2021015175A1
WO2021015175A1 PCT/JP2020/028132 JP2020028132W WO2021015175A1 WO 2021015175 A1 WO2021015175 A1 WO 2021015175A1 JP 2020028132 W JP2020028132 W JP 2020028132W WO 2021015175 A1 WO2021015175 A1 WO 2021015175A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
data set
block
blocks
archive
Prior art date
Application number
PCT/JP2020/028132
Other languages
English (en)
French (fr)
Inventor
青木 圭一
正貴 高橋
Original Assignee
株式会社ソニー・インタラクティブエンタテインメント
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 株式会社ソニー・インタラクティブエンタテインメント filed Critical 株式会社ソニー・インタラクティブエンタテインメント
Priority to US17/628,911 priority Critical patent/US11899930B2/en
Priority to JP2021534032A priority patent/JP7314277B2/ja
Publication of WO2021015175A1 publication Critical patent/WO2021015175A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices

Definitions

  • the present invention relates to a storage management device, a storage management method and a program.
  • Flash memory is used as a storage device for computers such as game consoles. Downloaded programs and contents are stored in the flash memory.
  • the flash memory has a plurality of blocks of a certain size, and data is written in each block. Due to the characteristics of flash memory, it is difficult to rewrite only a part of the data in the block. Therefore, when only a part of the data in the block is no longer needed, garbage collection is performed to copy only the necessary data to another block, and then the entire original block is erased (released).
  • the present invention has been made in view of the above problems, and an object of the present invention is to provide a technique for reducing a decrease in responsiveness when storing contents in a flash memory.
  • the storage management device includes a flash memory each including a plurality of blocks including a normal area and a reserved area, and one or a plurality of data sets are stored in the normal area.
  • the writable area is larger than the new data set
  • the size of the new data set is the size of the plurality of blocks when unnecessary data sets included in the plurality of blocks are deleted. Means for acquiring the new data set when it is smaller than the writable area of the normal area, and other blocks from the normal area of the block containing the unnecessary data set when acquiring the new data set.
  • a block release means for copying unnecessary data sets to the normal area of the block and deleting all the data sets contained in the normal area of the block, and the new data in the normal area of the block in which all the data sets have been deleted. Includes a data set write means for storing the set.
  • the storage management method is a plurality of blocks included in the flash memory, each of which is a normal area of a plurality of blocks including a reserved area and a normal area in which one or a plurality of data sets are stored.
  • the writable area included in the new data set is larger than the new data set, and the size of the new data set is the writing of the normal area of the plurality of blocks when unnecessary data sets included in the plurality of blocks are deleted.
  • the step of acquiring the new data set, and when acquiring the new data set it is unnecessary from the normal area of the block containing the unnecessary data set to the normal area of another block.
  • the program according to the present invention is a plurality of blocks included in the flash memory, each of which is included in a normal area of a plurality of blocks including a reserved area and a normal area in which one or a plurality of data sets are stored.
  • the writable area is larger than the new data set, and the size of the new data set is the writable area of the normal area of the plurality of blocks when unnecessary data sets included in the plurality of blocks are deleted.
  • a block release means for copying and deleting all the data sets contained in the normal area of the block, and a data set write for storing the new data set in the normal area of the block in which all the data sets have been deleted. means, Make your computer work as.
  • the dataset writing means is one of the plurality of blocks and the dataset A reserved area included in a block that is not stored may be added to the normal area, and at least a part of the new data set may be stored in the normal area of the block.
  • the storage management device may further include an area changing means for changing the reserved area included in the plurality of blocks to a normal area based on the operation of the user.
  • the storage management device further provides an area changing means for changing the reserved area included in the plurality of blocks to a normal area based on the transition of the amount of data sets stored in the plurality of blocks. May include.
  • FIG. 1 It is a figure which shows an example of the hardware composition of the information processing apparatus which concerns on embodiment of this invention. It is a figure which shows the structure of the storage area of a flash storage. It is a figure which shows the normal area and reserved area provided in a block. It is a block diagram which shows the function realized by an information processing apparatus. It is a flow chart which shows an example of the process which an information processing apparatus acquires an archive from the outside and stores it in a flash memory. It is a figure which shows an example of the archive stored in a logical partition. It is a figure explaining the deletion of an archive. It is a figure explaining the method of garbage collection. It is a flow chart which shows an example of the processing of garbage collection. It is a figure explaining the relationship between the minimum transfer speed and the copy speed required for garbage collection. It is a flow chart which shows an example of the processing of the area switching part.
  • an information processing device that stores an archive as a data set in a flash memory
  • the archive includes, for example, one having an application program and one having an image / audio content used in the application program.
  • the information processing device may receive the archive via the network and store the received archive in the flash memory.
  • the information processing apparatus may read an archive stored in an information storage medium such as a Blu-ray (registered trademark) optical disk and store the read archive in a flash memory.
  • FIG. 1 is a diagram showing an example of a hardware configuration of an information processing device according to an embodiment of the present invention.
  • the information processing device is, for example, a game machine.
  • the information processing device includes a processor 11, a memory 12, a communication unit 13, an input / output unit 14, and a flash storage 15.
  • the processor 11 operates according to the program stored in the memory 12 and controls the communication unit 13, the input / output unit 14, the flash storage 15, and the like.
  • the program may be stored in a storage medium that can be read externally by a computer and provided, or may be provided via a network such as the Internet.
  • the memory 12 is composed of a volatile memory element such as a DRAM.
  • the memory 12 stores the program to be executed. Further, the memory 12 stores information and calculation results input from the processor 11, the communication unit 13, and the like.
  • the information processing device has an external storage device including a flash storage 15 in addition to the memory 12, and stores programs and information in the external storage device.
  • the external storage device may further include at least one of an optical disk device and a hard disk.
  • the communication unit 13 is composed of integrated circuits, connectors, antennas, etc. that constitute a wired LAN or a wireless LAN.
  • the communication unit 13 has a function of communicating with another device via a network. Based on the control of the processor 11, the communication unit 13 inputs the information received from the other device into the processor 11 and the memory 12, and transmits the information to the other device.
  • the input / output unit 14 includes a circuit that acquires an input from hardware that detects a user's operation, a display control circuit that outputs an image display signal to a display, and a circuit that controls an external storage device such as an optical disk drive. Includes a circuit that outputs audio and the like.
  • the input / output unit 14 acquires an input signal from an input device such as a keyboard or a controller, and inputs the converted information of the input signal to the processor 11 or the memory 12.
  • the flash storage 15 includes a flash memory element and a controller for the flash memory element.
  • FIG. 2 is a diagram showing a configuration of a storage area of the flash storage 15.
  • the storage area of the flash storage 15 is divided into a plurality of blocks B.
  • Each storage area of block B is, for example, hundreds of MB to several GB.
  • the flash storage 15 sequentially writes the dataset to each block B. Further, it is difficult to simply overwrite the data set recorded in each block B, and after deleting all the data stored in the block B including the data set, a new data set is newly stored in the block B. It becomes possible.
  • Each block B included in the flash storage 15 includes a plurality of pages, and the data set is written to the flash memory element on a page-by-page basis on the hardware. Therefore, when viewed from the program running on the operating system, the data set is divided into one or more writing units according to the page size, and the divided one or more writing units are sequentially stored in block B. Written in the area.
  • one or a plurality of blocks B are assigned to the logical partition L (see FIG. 6), the information processing apparatus writes a data set sequentially for each logical partition L, and each block B constituting the logical partition L. Erase the data.
  • Writing a data set to the logical partition L means writing the data set to any one of the blocks B constituting the logical partition L.
  • FIG. 3 is a diagram schematically showing a normal area N and a reserved area R provided in the block B.
  • the normal area N is an area in which the data set can be stored
  • the reserved area R is an area in which the storage of the data set is prohibited.
  • the size of the normal region N and the size of the reserved region R in the initial state are predetermined. The processing and advantages related to the reserved area R will be described later.
  • FIG. 4 is a block diagram showing a function realized by the information processing apparatus.
  • the information processing device functionally includes an archive acquisition unit 51, an archive writing unit 52, an archive deletion unit 53, a block release unit 54, and an area switching unit 57. These functions are mainly realized by the processor 11 executing a program stored in the memory 12 and controlling the communication unit 13, the input / output unit 14, and the flash storage 15.
  • the archive acquisition unit 51 acquires an archive acquisition instruction by the user, and acquires a new archive instructed by the acquisition instruction as a data set.
  • the archive belongs to any one of a plurality of predetermined types. There are three types of archives, for example, "package”, “modified package”, and "additional content”.
  • the package contains a program of the application and data of contents such as video output by the program.
  • the modified package is an archive for upgrading the package.
  • Additional content (AC) includes data for additional content available in the application's program.
  • the archive acquisition unit 51 may receive the archive instructed from the distribution server via the network, or may read the archive recorded in an external storage medium such as an optical disk and instructed. Good. The details of the processing of the archive acquisition unit 51 will be described later.
  • the archive writing unit 52 stores the new archive acquired by the archive acquisition unit 51 in the normal area N of one or a plurality of blocks B.
  • the archive deletion unit 53 sets the archive stored in the flash storage 15 based on the user's deletion instruction, and the archive instructed to be deleted by the user as an unnecessary data set.
  • the archive deletion unit 53 sets the archive as an unnecessary data set by storing the deletion flag of the archive instructed to be deleted by the user in the flash storage 15.
  • the block release unit 54 releases the area of the flash storage 15 that is unnecessary due to the deletion of the archive and cannot write data, and creates a writable area that is an area in which data is not written. Secure.
  • garbage collection the block release unit 54 transfers (specifically, copies) an unnecessary data set from the normal area N of the block B containing the unnecessary data set to the normal area N of another block B, and copies the unnecessary data set. All data sets contained in the normal area N of the block B of the above are deleted.
  • the transfer source block B stores an archive that is logically deleted and occupies the storage area in the block B, that is, an archive indicating that the deletion flag has been deleted. The details of garbage collection will be described later.
  • the archive acquisition unit 51 deletes an unnecessary archive in which the writable area of the normal areas N of the plurality of blocks B is larger than that of the new archive and the size of the new archive is included in the plurality of blocks B.
  • a new data set is also acquired when it is smaller than the writable area of the normal area N of the plurality of blocks B in the case.
  • the block release unit 54 releases the storage area of the block B including the unnecessary data set to secure the writable area.
  • the archive writing unit 52 stores the acquired new archive in the normal area N of the block B. At that time, the archive writing unit 52 stores at least a part of the new archive in the normal area N of the opened block B.
  • the area switching unit 57 changes the reserved area R included in the plurality of blocks B to the normal area N based on the user's operation or the transition of the amount of data sets stored in the plurality of blocks B.
  • FIG. 5 is a flow chart showing an example of a process in which the information processing apparatus acquires an archive from the outside and stores it in the flash storage 15.
  • the archive acquisition unit 51 acquires an acquisition instruction from the user, for example, via the input / output unit 14, to acquire the target archive (step S101).
  • the acquisition instruction is information that specifies, for example, an archive to be newly acquired by the information processing apparatus and stored in the flash storage 15 among a plurality of archives existing in the server.
  • the acquisition instruction may be information that specifies an archive to be newly acquired by the information processing apparatus and stored in the flash storage 15 among one or a plurality of archives stored in an external storage medium such as an optical disk. Further, the acquisition instruction may target a plurality of archives.
  • the archive acquisition unit 51 acquires the size of the target archive (step S102).
  • the size of the archive indicates the size of the occupied area when stored in the flash storage 15.
  • the archive acquisition unit 51 may acquire attributes of other archives (archive type, etc.).
  • the archive acquisition unit 51 determines whether or not there is a free area in the flash storage 15 that can store the target archive (step S103). If there is no free area (N in step S103), an error is output and the process ends (step S104).
  • the free area includes not only the writable area but also the area occupied by unnecessary archives and files that are logically deleted but not physically deleted in the flash storage 15.
  • the archive acquisition unit 51 determines whether the flash storage 15 has a writable area for storing the target archive. (Step S105). If the writable area does not exist (N in step S105), the block release unit 54 starts the garbage collection process and transitions to the process in step S107 (step S106). If there is a writable area (Y in step S105), the process in step S106 is skipped.
  • step S107 the archive acquisition unit 51 starts acquiring the substance of the target archive (step S107).
  • the archive acquisition unit 51 may receive the actual archive via the communication unit 13 when the target archive is on the server, or enters when the target archive is on the external storage medium.
  • the archive entity may be read via the output unit 14.
  • the archive writing unit 52 determines that the size of the target archive is equal to or larger than the size of the normal area N (to be exact, the total size of the normal area N included in one block B). It is determined whether or not it is (step S109). When the size of the target archive is equal to or larger than the size of the normal area N (Y in step S109), the archive writing unit 52 secures a free block B as a storage destination of the target archive, and the secured block B is secured. B is assigned to an independent logical partition L (LPAR) (step S110). Further, the archive writing unit 52 stores at least a part of the target archive entity in its independent logical partition L (step S111).
  • LPAR independent logical partition L
  • the target archive is stored in block B in which other archives are not stored.
  • the size of the target archive is smaller than the size of the normal area N (N in step S109), steps S110 and S111 are skipped.
  • step S111 the archive writing unit 52 adds the storage area of the reserved area R included in the block B allocated to the independent logical partition L to the normal area N, and targets the normal area N to which the storage area is added. It may store at least a portion of the actual archive of. As a result, it is possible to suppress a decrease in the storage capacity due to the reserved area R.
  • the archive writing unit 52 stores the unstored portion of the archive entity in the normal area N of the block B constituting the common partition (). Step S112). If there is no unstored portion of the archive entity, the archive writing unit 52 does not store the archive entity in the common partition.
  • the archive writing unit 52 executes the following three processes when the size of the target archive exceeds the size of the block B.
  • the archive writing unit 52 divides the target archive into a plurality of parts, and in the second processing, the archive writing unit 52 stores at least a part of the plurality of parts by another archive.
  • the archive writing unit 52 stores a portion of the plurality of parts that is not stored in the one or a plurality of blocks B, and another archive is stored. It is stored in block B of the common partition.
  • the size of the archive stored in one or more blocks B in which other archives are not stored is usually equal to or larger than the size of the area N. Also, the size of the archive stored in block B of the common partition is smaller than the size of block B.
  • the common partition is a logical partition L to which one or more blocks B are assigned.
  • the common partition stores data from multiple archives regardless of the type of application. Data from a plurality of archives is also stored in each block B constituting the common partition.
  • the archive writing unit 52 allocates a new block B to the common partition to expand the area so that the archive can be stored.
  • FIG. 6 is a diagram showing an example of an archive stored in the logical partition L.
  • FIG. 6 shows an example in which the archives app.pkg, patch101.pkg, and AC1.pkg are acquired in order and stored in the flash storage 15.
  • the logical partitions L1 and L2 have blocks B1 and B2, respectively.
  • the logical partition L3 is a common partition, and blocks B3 and B4 are assigned to the logical partition L3.
  • a part of the package (app.pkg) and the modification package (patch101.pkg) are stored in independent logical partitions L1 and L2, respectively.
  • the portion of the archives app.pkg and patch101.pkg that could not be stored in the logical partitions L1 and L2 and AC1.pkg are stored.
  • blocks B1 to B4 have a reserved area R, and the archive is stored in the normal area N.
  • the logical partition L3 to which a plurality of blocks B3 and B4 are allocated a part of the archive AC1.pkg is stored, and when the free area of the normal area N of the block B3 runs out, the rest of the archive AC1.pkg is the block B4. It is stored in the normal area N of.
  • the archive deletion unit 53 acquires an instruction (deletion instruction) to delete any of the archives stored in the flash storage 15 from the user, for example, via the input / output unit 14, and sets the archive for the instructed archive. Set a delete flag in block B to store and disable the archive. The reason why the archive entity is not erased from the flash storage 15 is that it is necessary to erase the archive entity in block B units, and only the archive entity cannot be erased. If there is no other archive that has not been deleted in the block B that stores the instructed archive, the archive deletion unit 53 erases the block B and makes it an empty block B.
  • FIG. 7 is a diagram illustrating deletion of the archive.
  • the modification package patch101.pkg shown in FIG. 6 is deleted.
  • the logical partition L2 that stores only the substance of the modification package patch101.pkg and the block B2 that constitutes the logical partition L2 are erased, and the substance of the modification package patch101.pkg that is stored in the logical partition L3 cannot be used. become.
  • FIG. 8 is a diagram illustrating a garbage collection method.
  • the original logical partition Lp is composed of two blocks Ba and Bb.
  • the logical partition Ln after garbage collection is composed of one block Bc, and stores the archive stored in the logical partition Lp and not deleted.
  • the block release unit 54 stores an archive stored in a plurality of blocks B (Ba, Bb in FIG. 8) in a normal area N of a smaller number of blocks B (Bc in FIG. 8). ), And the copy source block B (Ba, Bb in FIG. 8) is released.
  • the released block B can be allocated to another logical partition L, the unusable area can be reduced, and the actual writable area can be increased.
  • FIG. 9 is a flow chart showing an example of garbage collection processing.
  • the block release unit 54 detects the logical partition L having the unusable archive (step S301).
  • the block release unit 54 arranges the detected blocks B of the logical partition L in order from the one having the largest free area (step S302), and selects the first block B (step S303).
  • the block release unit 54 copies the archive in the selected logical partition L to the block B of the new logical partition L (step S304), and separates the copy source block B from the logical partition L and releases it (step S305).
  • the process ends.
  • the next block B is selected (step S307), and the processes after step S304 are repeated.
  • Sb is the size of the normal area N in one block B
  • Sd is the size of the deleted data set
  • Sd is the smallest unit for storing the data set.
  • the page size (for example, 4.5 MiB) is set.
  • FIG. 10 is a diagram for explaining the relationship between the minimum transfer speed Rt and the copy speed Rc required for garbage collection, and is an example of a value calculated based on the above formula.
  • the minimum transfer speed Rt is 25 MiB (corresponding to the transfer speed of Blu-ray)
  • 250 MiB / Sec is required as the copy speed Rc in garbage collection if the ratio (reserve ratio) of the size of the reserved area R to the size of block B is 10%.
  • the reserve ratio is 20%
  • the copy speed Rc is good at 125 MiB / Sec. That is, by increasing the ratio of the reserved area R, it is possible to easily secure the minimum transfer speed Rt even at a low copy speed Rc.
  • the minimum transfer rate Rt of data at the time of acquiring the data set is guaranteed even in the situation where the garbage collection and the acquisition of the data set are performed in parallel. It becomes possible to do.
  • the processing of the area switching unit 57 for dealing with this problem will be described.
  • FIG. 11 is a flow chart showing an example of processing of the area switching unit 57.
  • the process shown in FIG. 11 may be performed at regular intervals (eg, weekly).
  • the information processing device monitors the transition of the amount of free area (free capacity) and stores the history of the free space in the memory 12.
  • the area switching unit 57 acquires the history of free space in a certain period (for example, one week to one month) (step S401). Next, the area switching unit 57 obtains the length of the period during which the free area is smaller than the capacity threshold value based on the acquired history (step S402). Further, the area switching unit 57 acquires an index indicating the variation of the archive (step S403).
  • the index indicating the variation of the archive may be the frequency with which the archive acquisition unit 51 acquires the archive, or the frequency with which the archive is deleted.
  • the area switching unit 57 determines whether the period length exceeds the period threshold value and the acquired index indicates that the fluctuation is small (step S404).
  • the acquired index indicates less variability, for example, the frequency with which the archive is acquired or deleted may be less than the determination threshold.
  • the switching unit 57 causes an output device such as a display to output a message as to whether or not to reduce the reserved area R (step S405). Then, the area switching unit 57 acquires the user's selection operation for the message, and when the reduction of the reserved area R is selected by the selection operation (Y in step S406), each reserved area of the plurality of blocks B is selected. R is reduced (step S407).
  • the area switching unit 57 may execute garbage collection after the reserved area R is reduced.
  • step S407 may be performed when the user simply instructs the reduction of the reserved area R on the setting screen without performing the process of step S401 to step S405. Further, the area switching unit 57 may automatically optimize the reserved area R without performing the processes of steps S405 and S406. Further, the area switching unit 57 may measure the communication speed of the information processing device and reduce the reserved area R when the measured communication speed is equal to or less than the threshold value.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

フラッシュメモリにコンテンツを格納する際の応答性の低下を軽減すること ストレージ管理装置は、それぞれが予約領域と通常領域とを含む複数のブロックを含むフラッシュメモリを含み、複数のブロックの通常領域のうち書込み可能領域が新たなデータセットより大きく、かつ、前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得し、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除し、前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納する。

Description

ストレージ管理装置、ストレージ管理方法およびプログラム
 本発明はストレージ管理装置、ストレージ管理方法およびプログラムに関する。
 ゲーム機などのコンピュータの記憶装置としてフラッシュメモリが用いられている。フラッシュメモリには、ダウンロードされたプログラムおよびコンテンツなどが格納されている。
 フラッシュメモリは、一定のサイズの複数のブロックを有し、各ブロックにデータが書き込まれる。フラッシュメモリの特性上、ブロック内のデータの一部だけを書き換えることは難しい。そのため、ブロック内の一部のデータのみが不要になった場合、必要なデータのみを他のブロックへコピーするガベージコレクションを実施し、その後、元のブロック全体を消去(解放)する。
 このガベージコレクションは多量のデータの転送を伴うため処理負荷が大きく、データのダウンロードなどの他の処理に支障が生じる場合があった。
 本願発明は上記課題を鑑みたものであって、その目的は、フラッシュメモリにコンテンツを格納する際の応答性の低下を軽減する技術を提供することにある。
 上記課題を解決するために、本発明にかかるストレージ管理装置は、それぞれが通常領域と予約領域とを含む複数のブロックを含み1または複数のデータセットが前記通常領域に格納されるフラッシュメモリと、複数のブロックの通常領域のうち書込み可能領域が新たなデータセットより大きく、かつ、前記新たなデータセットのサイズが前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得する手段と、前記新たなデータセットを取得する場合に、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除するブロック解放手段と、前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納するデータセット書き込み手段と、を含む。
 また、本発明にかかるストレージ管理方法は、フラッシュメモリに含まれる複数のブロックであって、それぞれが、予約領域と1または複数のデータセットが格納される通常領域とを含む複数のブロックの通常領域に含まれる書込み可能領域が新たなデータセットより大きく、かつ、前記新たなデータセットのサイズが前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得するステップと、前記新たなデータセットを取得する場合に、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除するステップと、前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納するステップと、を含む。
 また、本発明にかかるプログラムは、フラッシュメモリに含まれる複数のブロックであって、それぞれが、予約領域と1または複数のデータセットが格納される通常領域とを含む複数のブロックの通常領域に含まれる書込み可能領域が新たなデータセットより大きく、かつ、前記新たなデータセットのサイズが前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得する手段、前記新たなデータセットを取得する場合に、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除するブロック解放手段、および、前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納するデータセット書き込み手段、
 としてコンピュータを機能させる。
 本発明によれば、フラッシュメモリにコンテンツを格納する際の応答性の低下を軽減することができる。
 本発明の一形態では、前記新たなデータセットのサイズが、前記複数のブロックの通常領域のサイズより大きい場合には、データセット書き込み手段は、前記複数のブロックのいずれかであってデータセットを格納しないブロックに含まれる予約領域を前記通常領域に追加し、当該ブロックの前記通常領域に前記新たなデータセットの少なくとも一部を格納してもよい。
 本発明の一形態では、ストレージ管理装置は、ユーザの操作に基づいて、前記複数のブロックに含まれる予約領域を通常領域に変更する領域変更手段をさらに含んでよい。
 本発明の一形態では、ストレージ管理装置は、前記複数のブロックに格納されるデータセットの量の推移に基づいて、前記複数のブロックに含まれる予約領域を通常領域に変更する領域変更手段をさらに含んでよい。
本発明の実施形態にかかる情報処理装置のハードウェア構成の一例を示す図である。 フラッシュストレージの記憶領域の構成を示す図である。 ブロック内に設けられる通常領域および予約領域を示す図である。 情報処理装置が実現する機能を示すブロック図である。 情報処理装置がアーカイブを外部から取得しフラッシュメモリに格納する処理の一例を示すフロー図である。 論理パーティションに格納されるアーカイブの一例を示す図である。 アーカイブの削除を説明する図である。 ガベージコレクションの手法を説明する図である。 ガベージコレクションの処理の一例を示すフロー図である。 最低転送速度とガベージコレクションにおいて必要なコピー速度との関係を説明する図である。 領域切替部の処理の一例を示すフロー図である。
 以下では、本発明の実施形態について図面に基づいて説明する。出現する構成要素のうち同一機能を有するものには同じ符号を付し、その説明を省略する。
 本実施形態では、フラッシュメモリにデータセットとしてアーカイブを格納する情報処理装置について説明する。アーカイブには、例えば、アプリケーションプログラムを有するものと、そのアプリケーションプログラムで用いられる画像音声コンテンツを有するものとがある。情報処理装置は、ネットワーク経由でアーカイブを受信し、受信されたアーカイブをフラッシュメモリに格納してもよい。あるいは情報処理装置は、ブルーレイ(登録商標)の光ディスクなどの情報記憶媒体に記憶されたアーカイブを読み出し、読みだされたアーカイブをフラッシュメモリに格納してもよい。
 図1は、本発明の実施形態にかかる情報処理装置のハードウェア構成の一例を示す図である。情報処理装置は、例えばゲーム機である。情報処理装置は、プロセッサ11、メモリ12、通信部13、入出力部14、フラッシュストレージ15を含む。
 プロセッサ11は、メモリ12に格納されているプログラムに従って動作し、通信部13や入出力部14、フラッシュストレージ15等を制御する。なお、上記プログラムは、コンピュータで外部読み取り可能な記憶媒体に格納されて提供されるものであってもよいし、インターネット等のネットワークを介して提供されるものであってもよい。
 メモリ12は、例えばDRAMのような揮発性メモリ素子によって構成されている。メモリ12は、上記プログラムのうち実行されるものを格納する。また、メモリ12は、プロセッサ11や通信部13等から入力される情報や演算結果を格納する。なお、情報処理装置は、メモリ12のほかに、フラッシュストレージ15を含む外部記憶装置を有し、外部記憶装置にプログラムや情報を格納する。なお、外部記憶装置として、光ディスク装置およびハードディスクの少なくとも一方をさらに含んでもよい。
 通信部13は有線LANや無線LANを構成する集積回路やコネクタ、アンテナなどにより構成されている。通信部13は、ネットワークを介して他の装置と通信する機能を有する。通信部13は、プロセッサ11の制御に基づいて、他の装置から受信した情報をプロセッサ11やメモリ12に入力し、他の装置に情報を送信する。
 入出力部14は、ユーザの操作を検出するハードウェアからの入力を取得する回路と、画像の表示信号をディスプレイに出力する表示制御回路と、光ディスクドライブなどの外部記憶装置を制御する回路と、音声などを出力する回路とを含む。入出力部14は、キーボードやコントローラ等の入力デバイスとから入力信号を取得し、その入力信号が変換された情報をプロセッサ11やメモリ12に入力する。
 フラッシュストレージ15は、フラッシュメモリ素子およびフラッシュメモリ素子のコントローラを含む。
 図2は、フラッシュストレージ15の記憶領域の構成を示す図である。フラッシュストレージ15の記憶領域は、複数のブロックBに分割されている。ブロックBのそれぞれの記憶領域は、例えば数百MBから数GBである。オペレーティングシステムを実行するプロセッサ11の制御により、フラッシュストレージ15は各ブロックBへデータセットをシーケンシャルに書き込む。また、各ブロックBに記録されたデータセットを単に上書きすることは難しく、そのデータセットを含むブロックBに格納されるすべてのデータを削除した後に新たにそのブロックBに新たなデータセットを格納することが可能となる。なお、フラッシュストレージ15に含まれるブロックBのそれぞれは複数のページを含み、ハードウェア上ではフラッシュメモリ素子へのデータセットの書き込みはページ単位で行われる。そのため、オペレーティングシステム上で稼働するプログラムから見ると、データセットはページサイズに応じた1または複数の書込単位に分割され、その分割された1または複数の書込単位がシーケンシャルにブロックBの記憶領域に書き込まれる。
 本実施形態では、1または複数のブロックBを論理パーティションL(図6参照)に割当て、情報処理装置は、論理パーティションLごとにシーケンシャルにデータセットを書込み、論理パーティションLを構成するブロックBごとにデータを消去する。論理パーティションLにデータセットを書き込むとは、その論理パーティションLを構成するブロックBのうちいずれか1つにデータセットを書き込むことを示す。
 それぞれのブロックBの記憶領域には、データセットを格納させない領域を有する。図3は、ブロックB内に設けられる通常領域Nおよび予約領域Rを概略的に示す図である。通常領域Nは、データセットを格納することが可能な領域であり、予約領域Rは、データセットの格納が禁止される領域である。ここで、初期状態における通常領域Nのサイズおよび予約領域Rのサイズは、予め決まっているものとする。予約領域Rに関わる処理や利点については後述する。
 次に、情報処理装置が実現する機能および処理を説明する。図4は、情報処理装置が実現する機能を示すブロック図である。情報処理装置は機能的に、アーカイブ取得部51、アーカイブ書込部52、アーカイブ削除部53、ブロック解放部54、領域切替部57を含む。これらの機能は、主に、プロセッサ11がメモリ12に記憶されるプログラムを実行し、通信部13、入出力部14、フラッシュストレージ15を制御することにより実現される。
 アーカイブ取得部51は、ユーザによるアーカイブの取得指示を取得し、その取得指示により指示される新たなアーカイブをデータセットとして取得する。アーカイブは、予め定められた複数の種別のうちいずれか1つに属している。アーカイブの種別は、例えば、「パッケージ」、「修正パッケージ」、「追加コンテンツ」の3種類である。パッケージは、アプリケーションのプログラムと、そのプログラムにより出力される映像などのコンテンツのデータとを含む。修正パッケージは、パッケージをバージョンアップするためのアーカイブである。追加コンテンツ(AC)は、アプリケーションのプログラムで利用可能な追加のコンテンツのデータを含む。
  新たなアーカイブの取得の際に、アーカイブ取得部51は、配信サーバからネットワーク経由で指示されたアーカイブを受信してもよいし、光ディスクなどの外部記憶媒体に記録されかつ指示されたアーカイブを読み込んでもよい。アーカイブ取得部51の処理の詳細については後述する。
 アーカイブ書込部52は、アーカイブ取得部51により取得された新たなアーカイブを1または複数のブロックBの通常領域Nに格納する。
 アーカイブ削除部53は、ユーザの削除指示に基づいて、フラッシュストレージ15に格納されるアーカイブであって、ユーザにより削除の指示がされたアーカイブを不要なデータセットとして設定する。ここで、アーカイブ削除部53は、ユーザによる削除の指示がされたアーカイブの削除フラグをフラッシュストレージ15に格納させることにより、そのアーカイブを不要なデータセットとして設定する。
 ブロック解放部54は、いわゆるガベージコレクションにより、アーカイブの削除により不要とされた領域であってデータを書き込みできないフラッシュストレージ15の領域を解放し、データが書き込まれていない領域である書込可能領域を確保する。ガベージコレクションにおいて、ブロック解放部54は、不要なデータセットが含まれるブロックBの通常領域Nから他のブロックBの通常領域Nへ不要でないデータセットを転送(具体的にはコピー)し、コピー元のブロックBの通常領域Nに含まれるすべてのデータセットを削除する。転送元のブロックBは、論理的に削除されたアーカイブであってブロックB内の記憶領域を占有しているアーカイブ、つまり削除フラグが削除済であることを示すアーカイブを格納している。ガベージコレクションの詳細については後述する。
 ここで、アーカイブ取得部51は、複数のブロックBの通常領域Nのうち書込み可能領域が新たなアーカイブより大きく、かつ、新たなアーカイブのサイズが複数のブロックBに含まれる不要なアーカイブを削除した場合の複数のブロックBの通常領域Nの書込み可能領域より小さい場合にも、新たなデータセットを取得する。この場合には、新たなアーカイブの取得を始める時点で空き領域のあるブロックBのみにアーカイブのすべてを格納することはできない。そこで、ブロック解放部54は、不要なデータセットを含むブロックBの記憶領域を開放し、書込み可能領域を確保する。また、その開放と並行して、アーカイブ書込部52は、取得された新たなアーカイブをブロックBの通常領域Nに格納する。その際、アーカイブ書込部52は、新たなアーカイブのうち少なくとも一部を、その開放されたブロックBの通常領域Nに格納する。
 領域切替部57は、ユーザの操作、または、複数のブロックBに格納されるデータセットの量の推移に基づいて、前記複数のブロックBに含まれる予約領域Rを通常領域Nに変更する。
 次に、アーカイブを取得しフラッシュストレージ15に格納する処理についてより詳細に説明する。図5は、情報処理装置がアーカイブを外部から取得しフラッシュストレージ15に格納する処理の一例を示すフロー図である。
 はじめに、アーカイブ取得部51は、ユーザから、例えば入出力部14を介して、対象のアーカイブを取得させる取得指示を取得する(ステップS101)。取得指示は、例えばサーバに存在する複数のアーカイブのうち、情報処理装置が新たに取得しフラッシュストレージ15に格納させる対象のアーカイブを指定する情報である。取得指示は、光ディスクなどの外部記憶媒体に格納される1または複数のアーカイブのうち、情報処理装置が新たに取得しフラッシュストレージ15に格納させる対象のアーカイブを指定する情報であってもよい。また、取得指示は、複数のアーカイブを対象としてもよい。
 取得指示が取得されると、アーカイブ取得部51は、対象のアーカイブのサイズを取得する(ステップS102)。アーカイブのサイズは、フラッシュストレージ15に格納される場合の専有領域の大きさを示す。また、アーカイブ取得部51は、他のアーカイブの属性(アーカイブの種別など)を取得してもよい。
 対象のアーカイブのサイズが取得されると、アーカイブ取得部51は、フラッシュストレージ15に、対象のアーカイブを格納できる空き領域が存在するか判定する(ステップS103)。空き領域が存在しない場合には(ステップS103のN)、エラーを出力し処理を終了する(ステップS104)。ここで空き領域は、フラッシュストレージ15において、書込可能領域だけではなく、論理的に削除されているが物理的には削除されていない不要なアーカイブやファイルが専有する領域を含むものとする。
 一方、対象のアーカイブを格納する空き領域が存在する場合には(ステップS103のY)、アーカイブ取得部51は、フラッシュストレージ15に、対象のアーカイブを格納できる書込可能領域が存在するか判定する(ステップS105)。書込可能領域が存在しない場合には(ステップS105のN)、ブロック解放部54にガベージコレクションの処理を開始させ、ステップS107の処理へ遷移する(ステップS106)。書込可能領域が存在する場合には(ステップS105のY)、ステップS106の処理をスキップする。
 ステップS107では、アーカイブ取得部51は、対象のアーカイブの実体の取得を開始する(ステップS107)。ここで、アーカイブ取得部51は、対象のアーカイブがサーバ上にある場合には通信部13を介してアーカイブの実体を受信してもよいし、対象のアーカイブが外部記憶媒体にある場合には入出力部14を介してアーカイブの実体を読み込んでよい。
 アーカイブの実体の読み込みが開始されると、アーカイブ書込部52は、対象のアーカイブのサイズが、通常領域Nのサイズ(正確には、1つのブロックBに含まれる通常領域Nの全体サイズ)以上であるか否かを判定する(ステップS109)。対象のアーカイブのサイズが、通常領域Nのサイズ以上の場合には(ステップS109のY)、アーカイブ書込部52は、対象のアーカイブの格納先として空きブロックBを確保し、その確保されたブロックBを独立した論理パーティションL(LPAR)に割り当てる(ステップS110)。またアーカイブ書込部52は、対象のアーカイブの実体のうち少なくとも一部を、その独立した論理パーティションLに格納する(ステップS111)。これにより、対象のアーカイブの少なくとも一部は、他のアーカイブが格納されないブロックBに格納される。一方、対象のアーカイブのサイズが、通常領域Nのサイズより小さい場合には(ステップS109のN)、ステップS110,S111はスキップされる。
 ステップS111において、アーカイブ書込部52は、独立した論理パーティションLに割当てられたブロックBに含まれる予約領域Rの記憶領域を通常領域Nに追加し、記憶領域が追加された通常領域Nに対象のアーカイブの実体のうち少なくとも一部を格納してよい。これにより、予約領域Rに起因する記憶容量の減少を抑えることができる。
 独立した論理パーティションLにアーカイブの実体の一部が格納されると、アーカイブ書込部52はアーカイブの実体のうち未格納の部分を、共通パーティションを構成するブロックBの通常領域Nに格納する(ステップS112)。なお、アーカイブの実体のうち未格納の部分が存在しない場合は、アーカイブ書込部52は、共通パーティションにはアーカイブの実体を格納しない。
 これらの処理により、アーカイブ書込部52は、対象のアーカイブのサイズがブロックBのサイズを超える場合に以下の3つの処理を実行する。1つめの処理においてアーカイブ書込部52は、対象のアーカイブを複数の部分に分割し、2つめの処理においてアーカイブ書込部52は、その複数の部分のうち少なくとも一部を他のアーカイブが格納されない1または複数のブロックBに格納し、3つめの処理においてアーカイブ書込部52は、その複数の部分のうちその1または複数のブロックBに格納されなかった部分を、他のアーカイブが格納される共通パーティションのブロックBに格納する。他のアーカイブが格納されない1または複数のブロックBに格納されるアーカイブのサイズは通常領域Nのサイズ以上である。また、共通パーティションのブロックBに格納されるアーカイブのサイズは、ブロックBのサイズより小さい。
 共通パーティションは、1または複数のブロックBが割り当てられた論理パーティションLである。共通パーティションには、アプリケーションについて種別に関わらず複数のアーカイブのデータが格納される。共通パーティションを構成する各ブロックBについても、複数のアーカイブのデータが格納される。なお、共通パーティションの書き込み可能な領域がなくなった場合には、アーカイブ書込部52は共通パーティションに新たなブロックBを割り当てて領域を拡張し、アーカイブを格納可能にする。
 図6は、論理パーティションLに格納されるアーカイブの一例を示す図である。図6は、順に、アーカイブapp.pkg、patch101.pkg、AC1.pkgが取得され、フラッシュストレージ15に格納される場合の例である。論理パーティションL1,L2は、それぞれブロックB1,B2を有する。論理パーティションL3は共通パーティションであり、論理パーティションL3にはブロックB3,B4が割り当てられている。また、パッケージ(app.pkg)、および修正パッケージ(patch101.pkg)の一部は、それぞれ独立した論理パーティションL1,L2に格納される。また、論理パーティションL3には、アーカイブapp.pkg、patch101.pkgのうち、論理パーティションL1,L2に格納できなかった部分と、AC1.pkgとが格納される。
 図6の例ではブロックB1~B4は予約領域Rを有し、アーカイブは通常領域Nに格納されている。複数のブロックB3,B4が割当てられている論理パーティションL3においては、アーカイブAC1.pkgの一部を格納し、ブロックB3の通常領域Nの空き領域がなくなると、アーカイブAC1.pkgの残りはブロックB4の通常領域Nに格納される。
 次に、アーカイブ削除部53によるアーカイブの削除について説明する。アーカイブ削除部53は、ユーザから、例えば入出力部14を介して、フラッシュストレージ15に格納されるいずれかのアーカイブを削除する指示(削除指示)を取得し、指示されたアーカイブについて、そのアーカイブを格納するブロックB内に削除フラグを立て、そのアーカイブを使用不可にする。アーカイブの実体をフラッシュストレージ15から消去しないのは、ブロックB単位での消去が必要であり、そのアーカイブの実体のみを消去できないからである。なお、指示されたアーカイブを格納するブロックBに他のアーカイブであって削除されていないアーカイブが存在しない場合には、アーカイブ削除部53は、そのブロックBを消去し空きブロックBにする。
 図7は、アーカイブの削除を説明する図である。図7の例では、図6に示される修正パッケージpatch101.pkgが削除される場合の例である。この場合、修正パッケージpatch101.pkgの実体のみを格納する論理パーティションL2およびその論理パーティションL2を構成するブロックB2が消去され、さらに、論理パーティションL3に格納される修正パッケージpatch101.pkgの実体は使用不可になる。
 次に、ブロック解放部54によるガベージコレクションについて説明する。図8は、ガベージコレクションの手法を説明する図である。図8の例では、元の論理パーティションLpは2つのブロックBa,Bbで構成される。ガベージコレクションの後の論理パーティションLnは1つのブロックBcで構成され、論理パーティションLpに格納され削除されていないアーカイブを格納する。本実施形態においては、ガベージコレクションは、ブロック解放部54が、複数のブロックB(図8ではBa,Bb)に格納されるアーカイブを、より少ない数のブロックBの通常領域N(図8ではBc)に格納するようコピーし、コピー元のブロックB(図8ではBa,Bb)を解放する処理である。解放されたブロックBを他の論理パーティションLに割当て可能となり、使用不可の領域が減少し実際の書込み可能領域を増加させることができる。
 図9は、ガベージコレクションの処理の一例を示すフロー図である。はじめに、ブロック解放部54は、使用不可のアーカイブを有する論理パーティションLを検出する(ステップS301)。
 ブロック解放部54は、検出された論理パーティションLのブロックBを、空き領域が多いものから順に並べ(ステップS302)、はじめのブロックBを選択する(ステップS303)。ブロック解放部54は選択された論理パーティションL内のアーカイブを新たな論理パーティションLのブロックBにコピーし(ステップS304)、コピー元のブロックBを論理パーティションLから切り離して解放する(ステップS305)。そして、書込可能領域の総計が、取得指示で指示されたアーカイブのサイズより大きく、かつアーカイブの取得を開始している場合には(ステップS306のY)、処理を終了する。一方、そうでない場合には(ステップS306のN)、次のブロックBを選択し(ステップS307)、ステップS304以降の処理を繰り返す。
 ここで、ガベージコレクションを行わないと、アーカイブ取得部51が取得するアーカイブ(データセット)を格納する書込可能領域が存在しないケースについて検討する。このケースでは、ブロック解放部54によるブロックBを解放する処理と、アーカイブ書込部52により解放されたブロックBにアーカイブ(データセット)を格納する処理とが並行して行われる。フラッシュストレージ15におけるデータの転送速度は、フラッシュストレージ15により決まっている。これらの処理が並行して行われる際の書き込みの最低転送速度Rtは、フラッシュストレージ15のガベージコレクションおけるコピー速度Rcだけでは定まらない。コピー速度Rcと書き込みの最低転送速度Rtとの関係を以下の式に示す。
Figure JPOXMLDOC01-appb-M000001
 ここで、Sbは1つのブロックBにおける通常領域Nのサイズであり、Sdは削除されたデータセットのサイズであり、最悪のケースを想定する場合には、Sdにはデータセットを格納する最小単位であるページサイズ(たとえば4.5MiB)が設定される。
 図10は、最低転送速度Rtとガベージコレクションにおいて必要なコピー速度Rcとの関係を説明する図であり、上記数式に基づいて算出される値の一例である。最低転送速度Rtを25MiB(ブルーレイの転送速度に相当)とすると、ブロックBのサイズに対する予約領域Rのサイズの割合(予備率)が10%だとガベージコレクションにおけるコピー速度Rcとして250MiB/Secが要求されるが、予備率が20%だとコピー速度Rcは125MiB/Secで良くなる。つまり、予約領域Rの割合を大きくすることで低いコピー速度Rcでも最低転送速度Rtを確保することが容易にできる。
 これまでの説明からわかるように、予約領域Rを設けることにより、ガベージコレクションとデータセットの取得とが平行して行われる状況においても、データセットを取得する際のデータの最低転送速度Rtを保証することが可能になる。
 一方、予約領域Rにはデータが格納されないため、ユーザからみて、フラッシュストレージ15の全体容量が予約領域Rの分だけ減少することになる。新たなデータセットを取得する際の所要時間を気にしないユーザに対しては予約領域Rを設けないほうが望ましいことも考えられる。以下では、この問題に対応するための領域切替部57の処理について説明する。
 図11は、領域切替部57の処理の一例を示すフロー図である。図11に示される処理は、一定の周期で(例えば週ごとに)行われてよい。領域切替部57の処理のため、情報処理装置は空き領域の量(空き容量)の推移をモニタリングし、その空き容量の履歴をメモリ12に格納しているとする。
 はじめに、領域切替部57は、一定の期間(例えば1週間から1か月)における、空き容量の履歴を取得する(ステップS401)。次に、領域切替部57は、取得された履歴に基づいて、空き領域が容量閾値より小さい期間の長さを求める(ステップS402)。また、領域切替部57は、アーカイブの変動を示す指標を取得する(ステップS403)。アーカイブの変動を示す指標は、アーカイブ取得部51がアーカイブを取得する頻度であってよいし、アーカイブが削除される頻度であってもよい。
 期間の長さおよび指標が取得されると、領域切替部57は、期間の長さが期間閾値を超え、かつ、取得された指標が、変動が少ないことを示すか判定する(ステップS404)。取得された指標が、変動が少ないことを示す、とは、例えば、アーカイブが取得されるまたは削除される頻度が判定閾値より小さいことであってよい。
 期間の長さが期間閾値を超え、かつ、取得された指標が、変動が少ないことを示す場合には(ステップS404)、ユーザがアーカイブの取得で困難を感じる回数が少ない蓋然性が高いため、領域切替部57は、予約領域Rの削減をするか否かのメッセージをディスプレイなどの出力デバイスに出力させる(ステップS405)。そして、領域切替部57はそのメッセージに対するユーザの選択操作を取得し、その選択操作により予約領域Rの削減が選択された場合には(ステップS406のY)、複数のブロックBのそれぞれの予約領域Rを削減する(ステップS407)。領域切替部57は予約領域Rが削減された後にガベージコレクションを実行してもよい。
 なお、ステップS401からステップS405の処理をせず、単にユーザが設定画面において予約領域Rの削減を指示する操作がされた場合に、ステップS407の処理が行われてもよい。また領域切替部57はステップS405,S406の処理をせず自動的に予約領域Rを最適化してもよい。また、領域切替部57は、情報処理装置の通信速度を測定し、測定された通信速度が閾値以下の場合には予約領域Rを削減してもよい。
 領域切替部57の処理により、ユーザの状況に応じてデータセットを取得する際の速度の確保と、容量の確保とを最適化することができる。

 

Claims (6)

  1.  それぞれが通常領域と予約領域とを含む複数のブロックを含み1または複数のデータセットが前記通常領域に格納されるフラッシュメモリと、
     複数のブロックの通常領域のうち書込み可能領域が新たなデータセットより大きく、かつ、前記新たなデータセットのサイズが前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得する手段と、
     前記新たなデータセットを取得する場合に、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除するブロック解放手段と、
     前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納するデータセット書き込み手段と、
     を含むことを特徴とするストレージ管理装置。
  2.  請求項1に記載のストレージ管理装置において、
     前記新たなデータセットのサイズが、前記複数のブロックの通常領域のサイズより大きい場合には、データセット書き込み手段は、前記複数のブロックのいずれかであってデータセットを格納しないブロックに含まれる予約領域を前記通常領域に追加し、当該ブロックの前記通常領域に前記新たなデータセットの少なくとも一部を格納する、
     ストレージ管理装置。
  3.  請求項1または2に記載のストレージ管理装置において、
     ユーザの操作に基づいて、前記複数のブロックに含まれる予約領域を通常領域に変更する領域変更手段をさらに含む、
     ストレージ管理装置。
  4.  請求項1または2に記載のストレージ管理装置において、
     前記複数のブロックに格納されるデータセットの量の推移に基づいて、前記複数のブロックに含まれる予約領域を通常領域に変更する領域変更手段をさらに含む、
     ストレージ管理装置。
  5.  フラッシュメモリに含まれる複数のブロックであって、それぞれが、予約領域と1または複数のデータセットが格納される通常領域とを含む複数のブロックの通常領域に含まれる書込み可能領域が新たなデータセットより大きく、かつ、前記新たなデータセットのサイズが前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得するステップと、
     前記新たなデータセットを取得する場合に、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除するステップと、
     前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納するステップと、
     を含むことを特徴とするストレージ管理方法。
  6.  フラッシュメモリに含まれる複数のブロックであって、それぞれが、予約領域と1または複数のデータセットが格納される通常領域とを含む複数のブロックの通常領域に含まれる書込み可能領域が新たなデータセットより大きく、かつ、前記新たなデータセットのサイズが前記複数のブロックに含まれる不要なデータセットを削除した場合の前記複数のブロックの前記通常領域の書込み可能領域より小さい場合に、前記新たなデータセットを取得する手段、
     前記新たなデータセットを取得する場合に、前記不要なデータセットが含まれるブロックの通常領域から他のブロックの通常領域へ不要でないデータセットをコピーし、当該ブロックの通常領域に含まれるすべてのデータセットを削除するブロック解放手段、および、
     前記すべてのデータセットが削除されたブロックの通常領域に前記新たなデータセットを格納するデータセット書き込み手段、
     としてコンピュータを機能させるためのプログラム。
     

     
PCT/JP2020/028132 2019-07-25 2020-07-20 ストレージ管理装置、ストレージ管理方法およびプログラム WO2021015175A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/628,911 US11899930B2 (en) 2019-07-25 2020-07-20 Storage management apparatus, storage management method, and program
JP2021534032A JP7314277B2 (ja) 2019-07-25 2020-07-20 ストレージ管理装置、ストレージ管理方法およびプログラム

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019-137009 2019-07-25
JP2019137009 2019-07-25

Publications (1)

Publication Number Publication Date
WO2021015175A1 true WO2021015175A1 (ja) 2021-01-28

Family

ID=74193675

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/028132 WO2021015175A1 (ja) 2019-07-25 2020-07-20 ストレージ管理装置、ストレージ管理方法およびプログラム

Country Status (3)

Country Link
US (1) US11899930B2 (ja)
JP (1) JP7314277B2 (ja)
WO (1) WO2021015175A1 (ja)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262765A1 (en) * 2009-04-08 2010-10-14 Samsung Electronics Co., Ltd. Storage apparatus, computer system having the same, and methods thereof
US20140204672A1 (en) * 2013-01-21 2014-07-24 Joon-Ho Lee Memory system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012058770A (ja) * 2010-09-03 2012-03-22 Tdk Corp メモリコントローラ及びメモリコントローラを備えるフラッシュメモリシステム、並びにフラッシュメモリの制御方法
US8639908B2 (en) * 2011-07-15 2014-01-28 International Business Machines Corporation Dynamically managing available data storage within an automated data storage system
JP5969130B2 (ja) * 2013-07-18 2016-08-17 株式会社日立製作所 情報処理装置
US10102119B2 (en) * 2015-10-30 2018-10-16 Sandisk Technologies Llc Garbage collection based on queued and/or selected write commands

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262765A1 (en) * 2009-04-08 2010-10-14 Samsung Electronics Co., Ltd. Storage apparatus, computer system having the same, and methods thereof
US20140204672A1 (en) * 2013-01-21 2014-07-24 Joon-Ho Lee Memory system

Also Published As

Publication number Publication date
JPWO2021015175A1 (ja) 2021-12-23
US11899930B2 (en) 2024-02-13
JP7314277B2 (ja) 2023-07-25
US20220261154A1 (en) 2022-08-18

Similar Documents

Publication Publication Date Title
KR100951107B1 (ko) 최적의 성능을 위한 파일 관리 방법
US7739463B2 (en) Storage system and method for acquisition and utilization of snapshots
JP4886866B2 (ja) 主記憶装置へのアクセスを高速化する方法および記憶装置システム
US20080177809A1 (en) Storage control device to backup data stored in virtual volume
US20120102294A1 (en) Storage System and Storage Control Method that Compress and Store Data Elements
WO2010134300A1 (ja) メモリコントローラ、不揮発性記憶装置、アクセス装置、不揮発性記憶システム、データ書き込み方法、および、プログラム
JP4681247B2 (ja) ディスクアレイ装置及びディスクアレイ装置の制御方法
JP4983474B2 (ja) 仮想ライブラリ装置、仮想ライブラリシステム、仮想ライブラリ装置の論理ボリューム複写方法。
KR20060134170A (ko) 비휘발성 기억 시스템
JPH04312141A (ja) 電子印刷システムのためのファイル更新方法
JP5962140B2 (ja) プログラム、制御方法、制御装置およびシステム
WO2021015174A1 (ja) ストレージ管理装置、ストレージ管理方法およびプログラム
WO2021015175A1 (ja) ストレージ管理装置、ストレージ管理方法およびプログラム
WO2021033681A1 (ja) ストレージ管理装置、ストレージの管理方法およびプログラム
US9170929B2 (en) Memory controller
JP4714291B2 (ja) 情報記録装置、情報記録方法及び情報記録用プログラム
JP2006039942A (ja) 階層記憶システムにおけるファイル管理装置及びそのファイル管理方法
JP5161989B2 (ja) 情報記録装置、情報記録方法及び情報記録用プログラム
US11604593B2 (en) Control apparatus that improves recording of data in a recording medium by allocating directory clusters to recording units in a more effective manner, and control method and non-transitory computer readable storage medium storing instructions thereof
JP4791065B2 (ja) 情報処理装置、情報処理方法、及びプログラム
JP4624702B2 (ja) 仮想テープ装置の制御システムおよび制御プログラム
JP2009037564A (ja) ディスク管理プログラム、ディスク管理方法及びディスク管理装置
JP2005166073A (ja) 記憶装置の制御装置および制御方法
JP2015069246A (ja) 仮想ファイルシステムを含むコンピュータシステム
CN117215489A (zh) 数据管理方法及数据管理装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20843814

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021534032

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20843814

Country of ref document: EP

Kind code of ref document: A1