Method for writing data into storage equipment
A storage device and data writing technology, applied in the storage field, can solve the problems of storage device damage, unbalanced erasing and writing, and data loss of storage devices, so as to ensure the service life, achieve wear balance, and reduce the number of erasing and writing.
- 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 shown, including: In this embodiment, the case where the fast swap page is one page and the cache page is also one page is taken as an example to illustrate: when writing the data to be written into the storage device, the following operations are performed:
[0068] Step S1: Calculate the logical page number and intra-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, look up the first mapping table, and learn the physical page number of the data to be written;
[0070] In this embodiment, the first mapping table is used to store the correspondence 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 d...
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 case that the fast swap page and the cache page are multiple pages: specifically: when writing the data to be written into the storage device, the following operations are performed:
[0094]For example, in this embodiment, the data to be written is AA BB CC, 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: dividing the logical address of the data to be written by the size of the page, using the obtained quotient as the logical page number, and using the obtained remainder as the offset within the page, preferably, the size of the page is 0x64;
[0097] For example, in this embodiment, the log...
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