This application claims priority under 35 U.S.C. ยง119 to Korean Patent Application No. 10-2011-0081991 filed on Aug. 18, 2011, the disclosure of which is hereby incorporated by reference in its entirety.
1. Field
The present disclosure relates generally to controlling a memory. More particularly, it concerns a technique of recording data on a memory having limitative number of write, and controlling the memory during the aforesaid process.
2. Description of Related Art
So far throughout the recent decades, it was general to use a storage system based on a HDD (Hard Disk Drive) for a computer. However, these days, changes have been occurred because of a NAND Flash Memory.
The NAND Flash Memory has been increasingly used for a computer/embedded system due to its advantageous of high performance, low power consumption, high reliability, small form factor, in comparison with HDD.
Yet, a market share of the NAND Flash Memory is still low in comparison with that of the HDD. This is because the NAND Flash Memory is high priced compared to the existing HDD and has a similar performance therewith at a specific operation such as a random write.
The high price problem of the NAND Flash Memory is in overcoming through configuring mass storage of the NAND Flash Memory, and price decline through an MLC (Multi-level Cell); however, still, it is a high priced storage device for the consuming public, in comparison with the HDD.
Many researches have been actively conducted to expand a market share of the NAND flash memory; nevertheless, there were limitations for improving its performance because of a physical characteristic of the NAND flash memory (proposal of reclaiming an erasure operation).
In this regard, many companies or laboratories have conducted researches regarding a new nonvolatile ram device that will replace a NAND flash memory. In return, nonvolatile ram devices such as PRAM, FRAM have been developed, and may researches for its commercialization have been still carried out.
Such nonvolatile rams are new nonvolatile memory device that overcame disadvantages of the existing NAND flash memory, and are expected to be used as a next-generation storage device that replaces the NAND flash memory in the future.
Among many nonvolatile rams, PRAM is expected to be a strong nonvolatile ram that will replace the NAND flash memory. Further, many companies specialized in semiconductor proceed with researches for commercialization by investing an enormous amount of time and effort. The reason why PRAM is considered to replace the NAND flash memory is set forth below.
PRAM is feasible for a rewrite, regardless of deleting existing data, unlike the NAND flash memory. Thus, it is not necessary that an erasure calculation is preceded for a rewrite operation. The erasure calculation for the rewrite operation is a calculation which influences most negatively on the performance of the NAND flash memory, and is implemented per block unit, of which calculation time is very long approximately 1 ms.
Therefore, due to the erasure calculation, the reason why the NAND flash memory cannot show a performance higher than HDD, at a specific operation such as a random write, may be suggested. However, a rewrite is feasible without such erasure calculation, in the PRAM, thus, a high performance can be shown in comparison with the NAND flash memory as well as HDD.
Further, the number of read and write of the PRAM is approximately 106, and the PRAM has a lifespan that is approximately ten times longer than the NAND flash memory.
However, when compared to the HDD having unlimited number of write and read, the number of write and read of the PRAM would be regarded as being limitative. This acts as an obstructive factor in regard to PRAM being adopted to a storage system
Korean Patent Laid-Open Publication No. 2010-0126069
In view of above, it is an object of the present disclosure to provide a memory control method for more effectively operating a nonvolatile memory having limitative number of write and read such as PRAM, and an electronic device using thereof.
According to an embodiment of the present disclosure designed to accomplish the above object, there is provided an electronic device comprising: a nonvolatile memory in which data is stored; a volatile memory in which an address conversion table of the nonvolatile memory is stored; and a controller that stores data on the nonvolatile memory by referencing the address conversion table of the nonvolatile memory stored on the volatile memory.
On the nonvolatile memory, a first table that is referenced to convert a physical address of the nonvolatile memory to a logical address is stored; and the controller is characterized of generating a second table that is referenced to convert the logical address to the physical address of the nonvolatile memory by using the first table, and storing on the volatile memory.
The controller is characterized of generating the second table when the electronic device is booted, and storing on the volatile memory.
The second table stored on the volatile memory is deleted when power supply of the electronic device is shut off.
The nonvolatile memory is a PRAM(Phase-change Random Access Memory), the controller is characterized of storing data on the PRAM per page unit, and the page may be made up of a byte unit.
According to another embodiment of the present disclosure, there is provided an electronic device comprising: a nonvolatile memory in which data is stored; a volatile memory in which an address conversion table of the nonvolatile memory is stored; and a controller that stores data on the nonvolatile memory per page unit by referencing the address conversion table of the nonvolatile memory stored on the volatile memory. The controller is characterized of storing data on page having minimum number of write among all pages.
The controller is characterized of converting a physical address regarding page in which the number of write of the nonvolatile memory is above a standard to another physical address.
The nonvolatile memory is a PRAM(Phase-change Random Access Memory).
According to another embodiment of the present disclosure, there is provided a memory control method comprising: storing an address conversion table of a nonvolatile memory on a volatile memory; and storing data on the nonvolatile memory by referencing an address conversion table of the nonvolatile memory stored on the volatile memory.
The storing the address conversion table is characterized of storing a first table that is referenced to convert a physical address of the nonvolatile memory to a logical address on the nonvolatile memory, and storing a second table that is referenced to convert the logical address of the nonvolatile memory to a physical address on the volatile memory.
The second table is generated when an electronic device is booted, and stored on the volatile memory; and the second table stored on the volatile memory is deleted when power supply of the electronic device is shut off.
The nonvolatile memory is a PRAM(Phase-change Random Access Memory), and the storing the data is characterized of storing data on the PRAM per page unit, on page having minimum number of write among all pages.
As explained above, according to the present disclosure, a nonvolatile memory having limitative number of write and read such as PRAM can be more effectively operated. Specifically, in the present disclosure, by a technical means of converting an address, an address conversion table of PRAM is referenced by storing on another memory. In this regard, a rapid deterioration of meta data region of PRAM due to frequent reading of PRAM to reference an address conversion table when implementing read and write of data in PRAM, can be prevented.
Further, according to the present disclosure, by means of equipartition technique, a region having small number of write may be adaptively induced to be used, rather than a region having large number of write. In this regard, data region of PRAM is equally used, such that a reduction of an actual storage space of PRAM due to precedent deterioration of a part of data region, can be prevented.
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings.
Unlike HDD(Hard Disk Drive) having unlimited write and read, in order to solve a durability problem of PRAM 150 having limited number of write, the aforementioned electronic device 100 adopts a technique of converting an address and an equipartition technique, which are optimized for PRAM 150.
The technique of converting an address optimized for PRAM 150 is a technique configured to minimize an increase of the number of read of the PRAM 150, in the process of referencing the address conversion table for converting a logical address to a physical address of PRAM 150.
The equipartition technique optimized for PRAM 150 is a technique by which data region of PRAM 150 having limitative maximum number of write is equally used.
The electronic device 100 adopting such techniques is, as illustrated in
Although it is not illustrated in
DRAM 130 is a volatile memory, and is a space where necessary data for implementing a controlling of the electronic device 100 by a processor 110 is temporarily stored; PRAM 150 is a nonvolatile memory, and is a space where data that should not be erased even if power supply of electronic device 100 is shut off, is stored semipermanently.
A RAM controller 140 implements write and read of data regarding PRAM 150. Specifically, in accordance with an exemplary embodiment of the present disclosure, a RAM controller 140 implements write and read operations of certain size data, which is stored on PRAM 150.
A Size of data of PRAM 150 in the exemplary embodiment of the present disclosure is a size that can be treated by a RAM controller 140 at one time, and may be randomly set up per a byte unit, upon a choice of a skilled person in the art. Therefore, the size may be the same as that of a block or a page of flash memory. More preferably, the size may be set up to be smaller than a page of a flash memory. For example, it may be set up as 512 bytes, 2K bytes, 4K bytes.
Next, according to an exemplary embodiment of the present disclosure, a technique of converting an address and an equipartition technique, which are optimized for PRAM 150 applied to an electronic device, will be described.
First, embodiments of the present disclosure are characterized in that a RAM controller 140 uses a storage space of DRAM 130, in the process of write and read of data regarding PRAM 150. This is in accordance with a technique of converting an address to reduce the number of read regarding PRAM 150 of which performance becomes deteriorated as the number of read increases, and they will be in detail described with reference to
As illustrated in bottom
According to an illustration of
Further, according to an upper illustration of
That is, a RAM controller 140 generates LA/PA mapping table by converting PA/LA mapping table of PRAM 150, and stores the generated LA/PA mapping table on DRAM 130.
In an exemplary embodiment of the present disclosure, operation of converting and storing table as above may be performed when booting an electronic device 100. Since DRAM 130 is a volatile memory; when power supply of the electronic device 100 is shut off, LA/PA mapping table stored on DRAM 130 is deleted.
Converting PA/LA mapping table stored on PRAM 150 and storing on DRAM 130 as being converted LA/PA mapping table are for preventing meta data region of PRAM 150 from deterioration, which is caused by frequent reading of PRAM 150 to reference an address conversion table when implementing read and write of data.
Hereinafter, a process of managing address conversion tables in order for data region of PRAM 150 to be used equally will be in detail described with reference to
At left of
In LPA/PPA mapping table illustrated in
Conversion implemented as illustrated in
A region where PPA is 1 (PA ranging from 1024 to 2044), which is a converted region, corresponds to a region where the number of write is relatively small (e.g., under 80% of an average number of write regarding all regions).
Converting an address conversion table as illustrated in
In an exemplary embodiment of the present disclosure, in order for the managing the read and write to be implemented on the basis of PA, it is intended that not LA/PA mapping table that an entry of LA precedes an entry of PA but PA/LA mapping table that an entry of PA precedes an entry of LA is stored on meta data region of PRAM 150.
Meanwhile, in
On the other hand, if converting mapping table is generated too frequently, a speed of deterioration of PRAM 150 would be fast. In this regard, it is preferable that converting an address conversion table is implemented as cycle arrives after setting up a cycle.
Due to the converting the address conversion table as described above, a region having small number of write may be adaptively induced to be used, rather than a region having large number of write. In this regard, data region of PRAM 150 is equally used, such that a reduction of an actual storage space of PRAM 150 due to precedent deterioration of a part of data region, can be prevented.
As set forth above, a technique of converting an address and an equipartition technique, which are so optimized for PRAM 150 as to solve a durability problem of PRAM 150, is described in detail. Such techniques may be selectively realized. Further, such techniques may be realized as a module configuring software such as hardware, firmware, and also a module configuring software like an internal module of operation system.
As explained above, according to the present disclosure, a nonvolatile memory having limitative number of write and read such as PRAM can be operated more effectively. Specifically, in the present disclosure, by a technical means of converting an address, an address conversion table of PRAM is referenced by storing on other memories. In this regard, a rapid deterioration of meta data region of PRAM due to frequent reading of PRAM 150 to reference an address conversion table when implementing read and write of data, can be prevented.
Additionally, according to the present disclosure, by means of equipartition technique, a region having small number of write may be adaptively induced to .be used, rather than a region having large number of write. In this regard, data region of PRAM is equally used, such that a reduction of an actual storage space of PRAM due to precedent deterioration of a part of data region, can be prevented.
Meanwhile, PRAM 150 mentioned in above embodiment is just an example of a nonvolatile memory. Therefore, in the electronic device 100 assumed in above embodiment, PRAM 150 can be replaced with other different kinds of nonvolatile memories, and even in this case, a technical thought of the present disclosure can be applied.
The description of the exemplary embodiments of the present inventive concept is intended to be illustrative, and not to limit the scope of the claims. A skilled person in the art may invent various changes, modifications, and equivalents of the systems, apparatuses and/or methods described herein. Accordingly, other implementations are within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2011-0081991 | Aug 2011 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR2012/006581 | 8/17/2012 | WO | 00 | 2/14/2014 |