A method of writing data to a storage device
A storage device and data writing technology, applied in the storage field, can solve the problems of unbalanced erasing and writing, data loss of storage devices, damage to storage devices, etc., and achieve the effect of achieving wear balance, reducing the number of erasing and writing, and ensuring service life.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] Embodiment 1 of the present invention provides a method for writing data to a storage device, such as figure 1 As shown, including: In this embodiment, the situation that the fast exchange page is one page and the cache page is also one page is used as an example to illustrate: when writing data to be written to the storage device, perform the following operations:
[0068] Step S1: Calculate the logical page number and page offset of the data to be written according to the logical address of the data to be written;
[0069] Step S2: According to the logical page number of the data to be written, search the first mapping table to obtain the physical page number of the data to be written;
[0070] In this embodiment, the first mapping table is used to store the corresponding relationship between the physical page number and the logical page number of the data page;
[0071] Step S3: Determine whether there is a cache page corresponding to the physical page number of the...
Embodiment 2
[0093] Embodiment 2 of the present invention provides a method for writing data to a storage device, such as figure 2 As shown, this embodiment is described with the situation that the fast swap page and the cache page are multiple pages: specifically: when writing data to be written to the storage device, perform the following operations:
[0094]For example, in this embodiment, the data to be written is AABBCC, the logical address of the data to be written is 0x65, and the length of the data to be written is 0x03;
[0095] Step 101: Calculate the logical page number and the offset within the page according to the logical address of the data to be written;
[0096] Specifically: divide the logical address of the data to be written by the page size, use the obtained quotient as the logical page number, and use the obtained remainder as the page offset, preferably, the page size is 0x64;
[0097] For example, in this embodiment, the calculated logical page number is 0x01, and...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com