CN111158609B - Data storage method and device, computer equipment and storage medium - Google Patents

Data storage method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111158609B
CN111158609B CN201911419971.9A CN201911419971A CN111158609B CN 111158609 B CN111158609 B CN 111158609B CN 201911419971 A CN201911419971 A CN 201911419971A CN 111158609 B CN111158609 B CN 111158609B
Authority
CN
China
Prior art keywords
data
storage
solid state
state disk
page
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
CN201911419971.9A
Other languages
Chinese (zh)
Other versions
CN111158609A (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.)
Guangzhou Dingjia Computer Technology Co ltd
Original Assignee
Guangzhou Dingjia Computer Technology Co ltd
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 Guangzhou Dingjia Computer Technology Co ltd filed Critical Guangzhou Dingjia Computer Technology Co ltd
Priority to CN201911419971.9A priority Critical patent/CN111158609B/en
Publication of CN111158609A publication Critical patent/CN111158609A/en
Application granted granted Critical
Publication of CN111158609B publication Critical patent/CN111158609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • 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/0647Migration mechanisms
    • 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/068Hybrid storage device

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

The application relates to a data storage method, a data storage device, computer equipment and a storage medium. The method comprises the following steps: receiving a data storage instruction; the data storage instruction is used for indicating to store first data; if the used amount of the solid state disk is smaller than a preset threshold value, storing the first data into the solid state disk; if the used amount of the solid state disk is determined to be not smaller than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing the first data to the solid state disk; and if the used amount of the solid state disk is determined to be not less than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk. By the embodiment of the invention, the storage speed can be improved, the storage performance of the storage system is further improved, and the storage requirements of users are met.

Description

Data storage method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a data storage method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of science and technology, big data technology has penetrated the aspects of our daily life. On one hand, the data resource sharing brings convenience to the life of people and saves a great deal of time; on the other hand, the enormous amount of data also poses more challenges to the data storage capability.
In the related art, a combination of a memory and a mechanical hard disk is generally used to store data. However, the memory capacity is limited, the amount of stored data is small, and data loss is easily caused by abnormal situations such as unexpected power failure or program termination. Mechanical hard disks have the advantages of low price and large data storage capacity, but the storage speed of the mechanical hard disks is slow. Therefore, the storage structure is far from meeting the data storage requirements of users at present.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data storage method, an apparatus, a computer device and a storage medium capable of satisfying the storage requirement.
In a first aspect, an embodiment of the present invention provides a data storage method, which is applied to a storage system, where the storage system includes a solid state disk and a mechanical hard disk, and the method includes:
receiving a data storage instruction; the data storage instruction is used for indicating to store first data;
if the used amount of the solid state disk is smaller than a preset threshold value, storing first data into the solid state disk;
if the used amount of the solid state disk is determined to be not less than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing first data in the solid state disk;
and if the used amount of the solid state disk is not less than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk.
In one embodiment, the storing the first data in the solid state disk includes:
determining a storage starting position and a storage ending position for storing the first data in the solid state disk according to the data storage instruction;
if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data;
integrating first data to be stored and the acquired first supplementary data into target storage data;
and storing the target storage data into the solid state disk.
In one embodiment, the acquiring the first supplementary data includes:
determining a storage page where the storage starting position is located and/or a storage page where the storage ending position is located as a target storage page;
and acquiring third data corresponding to the target storage page as first supplementary data.
In one embodiment, the obtaining third data corresponding to the target storage page as the first supplementary data further includes:
determining whether third data corresponding to the target storage page exists in the solid state disk according to the page index stored in the memory;
if the third data exists in the solid state disk, the third data is obtained from the solid state disk;
and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
In one embodiment, after the target storage data is stored in the solid state disk, the method further includes:
and updating the page index in the memory according to the target storage data.
In one embodiment, the method further comprises:
when the solid state disk is initialized or storage service is restarted, a page index is generated in a memory according to stored data in the solid state disk.
In one embodiment, the determining, according to the data storage instruction, a storage start position and a storage end position at which the first data is stored in the solid state disk includes:
determining a storage initial position in the solid state disk according to the data offset;
and determining a storage end position in the solid state disk according to the data storage amount and the storage starting position.
In one embodiment, the method further comprises:
receiving a data reading instruction; the data reading instruction is used for indicating that fourth data are read from the solid state disk;
determining a reading starting position and a reading ending position for reading fourth data from the solid state disk according to the data reading instruction;
if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page of the solid state disk, acquiring second supplementary data;
and integrating the fourth data and the acquired second supplementary data into target reading data, and feeding back the target reading data.
In one embodiment, the acquiring the second supplementary data includes:
determining a target reading page according to the reading starting position and the reading ending position;
searching a target reading page in a page index of a memory;
if the target reading page is found in the page index, acquiring second supplementary data from the solid state disk according to the target reading page;
and if the target reading page is not found in the page index, acquiring second supplementary data from the mechanical hard disk according to the target reading page.
In a second aspect, an embodiment of the present invention provides a data storage apparatus, which is applied to a storage system, where the storage system includes a solid state disk and a mechanical hard disk, and the apparatus includes:
the data storage instruction receiving module is used for receiving a data storage instruction; the data storage instruction is used for indicating to store first data;
the first storage module is used for storing first data into the solid state disk if the used amount of the solid state disk is smaller than a preset threshold value;
the second storage module is used for migrating second data stored in the solid state disk to the mechanical hard disk and storing the first data in the solid state disk if the used amount of the solid state disk is determined to be not less than a preset threshold and data writing conflict exists;
and the third storage module is used for storing the first data into the mechanical hard disk if the used amount of the solid state disk is determined to be not less than the preset threshold value and no data writing conflict exists.
In one embodiment, the first storage module is specifically configured to determine, according to a data storage instruction, a storage start position and a storage end position for storing the first data in the solid state disk; if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data; integrating first data to be stored and the acquired first supplementary data into target storage data; and storing the target storage data into the solid state disk.
In one embodiment, the first storage module is specifically configured to determine a storage page where the storage start position is located and/or a storage page where the storage end position is located as a target storage page; and acquiring third data corresponding to the target storage page as first supplementary data.
In one embodiment, the storage system further includes a memory, and the first storage module is specifically configured to determine whether third data corresponding to a target storage page exists in the solid state disk according to a page index stored in the memory; if the third data exists in the solid state disk, the third data is obtained from the solid state disk; and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
In one embodiment, the apparatus further comprises:
and the page index updating module is used for updating the page index in the memory according to the target storage data.
In one embodiment, the apparatus further comprises:
and the page index generating module is used for generating a page index in the memory according to the stored data in the solid state disk when the solid state disk is initialized or the storage service is restarted.
In one embodiment, the data storage instruction carries a data offset and a data storage amount, and the first storage module is specifically configured to determine a storage start position in the solid state disk according to the data offset; and determining a storage end position in the solid state disk according to the data storage amount and the storage starting position.
In one embodiment, the apparatus further comprises:
the data reading instruction receiving module is used for receiving a data reading instruction; the data reading instruction is used for indicating that fourth data are read from the solid state disk;
the reading position determining module is used for determining a reading starting position and a reading ending position for reading fourth data from the solid state disk according to the data reading instruction;
the supplementary data acquisition module is used for acquiring second supplementary data if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page of the solid state disk;
and the data integration module is used for integrating the fourth data and the acquired second supplementary data into target reading data and feeding back the target reading data.
In one embodiment, the supplemental data acquisition module is specifically configured to determine a target read page according to a read start position and a read end position; searching a target reading page in a page index of a memory; if the target reading page is found in the page index, acquiring second supplementary data from the solid state disk according to the target reading page; and if the target reading page is not found in the page index, acquiring second supplementary data from the mechanical hard disk according to the target reading page.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the method when executing the computer program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps in the method as described above.
The data storage method, the data storage device, the computer equipment and the storage medium receive a data storage instruction; the data storage instruction is used for indicating to store first data; if the used amount of the solid state disk is smaller than a preset threshold value, storing first data into the solid state disk; if the used amount of the solid state disk is determined to be not less than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing first data in the solid state disk; and if the used amount of the solid state disk is not less than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk. According to the embodiment of the invention, the data storage system comprises the solid state disk and the mechanical hard disk, and the solid state disk is used as the cache storage area of the mechanical hard disk, so that the storage speed can be increased, the storage performance of the storage system can be further improved, and the storage requirements of users can be met.
Drawings
FIG. 1 is a diagram of an exemplary data storage system;
FIG. 2 is a schematic flow chart diagram illustrating a data storage method according to one embodiment;
FIG. 3 is a flowchart illustrating a step of storing first data in a solid state disk according to an embodiment;
FIG. 4 is a flow chart illustrating a data reading method according to another embodiment;
FIG. 5 is a block diagram of a data storage device in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data storage method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a terminal 101. Among them, the terminal 101 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, a data storage method is provided, which is described by taking the application of the method to the terminal in fig. 1 as an example, and includes the following steps:
step 201, receiving a data storage instruction; the data storage instructions are for indicating storage of the first data.
In this embodiment, a storage system is disposed in the terminal, and the storage system includes a solid state disk and a mechanical hard disk. The terminal receives the data storage instruction and stores the first data according to the data storage instruction. The Solid State Disk (SSD) is a hard Disk made of a Solid State electronic memory chip array, and the SSD is composed of a control unit and a memory unit (FLASH chip, DRAM chip). Since the SSD uses a flash memory as a storage medium, the reading speed is faster than that of a mechanical hard disk. The Hard Disk Drive (HDD) has advantages of low cost, large capacity, and the like.
Step 202, if it is determined that the used amount of the solid state disk is smaller than a preset threshold, storing the first data in the solid state disk.
In this embodiment, since the more solid state disks are stored, the slower the performance is, after a data storage instruction is received, a specific storage policy is determined according to the used amount of the solid state disks. And if the used amount of the solid state disk is less than a preset threshold value, directly storing the first data into the solid state disk.
For example, the preset threshold is 80% of the total capacity of the solid state disk, and if the used amount of the solid state disk is 50% of the total capacity of the solid state disk and is less than the preset threshold, the first data a is stored in the solid state disk. The preset threshold value is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
Step 203, if it is determined that the used amount of the solid state disk is not less than the preset threshold and data writing conflict exists, migrating the second data stored in the solid state disk to the mechanical hard disk, and storing the first data in the solid state disk.
In this embodiment, if the used amount of the solid state disk is not less than the preset threshold, it is determined whether a data write conflict exists. Specifically, whether first data exist in the solid state disk is judged, and if the first data exist in the solid state disk, it is judged that a data write conflict exists; and if the first data does not exist in the solid state disk, judging that no data writing conflict exists.
When the used amount of the solid state disk is not less than a preset threshold value and data writing conflict exists, second data stored in the solid state disk are migrated to the mechanical hard disk, and then the first data are stored in the solid state disk. In the data migration process, a corresponding relation table is established, and the corresponding relation table is used for indicating storage positions before and after data migration.
For example, if the used amount of the solid state disk is 85% of the total capacity of the solid state disk, and the first data a already exists in the solid state disk, it indicates that the used amount of the solid state disk is greater than the preset threshold and a data write conflict exists. At this time, the second data B in the solid state disk is migrated to the mechanical hard disk, and then the first data a is stored in the solid state disk.
It can be understood that, when the first data exists in the solid state disk, if the first data is stored in the mechanical hard disk, the first data in the solid state disk is also stored in the mechanical hard disk when the data in the solid state disk is subsequently migrated to the mechanical hard disk. Thus, the mechanical hard disk will have two first data, i.e. there is a data write collision.
And step 204, if it is determined that the used amount of the solid state disk is not less than the preset threshold value and no data writing conflict exists, storing the first data in the mechanical hard disk.
In this embodiment, if the used amount of the solid state disk is greater than or equal to the preset threshold, and the first data does not exist in the solid state disk, the first data may be directly stored in the mechanical hard disk without performing a storage operation on the solid state disk.
For example, if the used amount of the solid state disk is 85% of the total capacity of the solid state disk, and the first data a does not exist in the solid state disk, it indicates that the used amount of the solid state disk is greater than the preset threshold but there is no data write conflict. At this time, the first data is directly stored in the mechanical hard disk.
In the data storage method, a data storage instruction is received; the data storage instruction is used for indicating to store first data; if the used amount of the solid state disk is smaller than a preset threshold value, storing first data into the solid state disk; if the used amount of the solid state disk is determined to be not less than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing first data in the solid state disk; and if the used amount of the solid state disk is not less than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk. According to the embodiment of the invention, the data storage system comprises the solid state disk and the mechanical hard disk, and the solid state disk is used as the cache storage area of the mechanical hard disk, so that the storage speed can be increased, the storage performance of the storage system can be further improved, and the storage requirements of users can be met.
In another embodiment, as shown in fig. 3, this embodiment relates to an alternative process of storing the first data in the solid state disk. On the basis of the embodiment shown in fig. 2, the method may specifically include the following steps:
step 301, determining a storage starting position and a storage ending position for storing the first data in the solid state disk according to the data storage instruction.
In this embodiment, after receiving the data storage instruction, the storage location of the first data, that is, the storage start location and the storage end location in the solid state disk, is determined according to the data storage instruction. The solid state disk is divided into a plurality of data storage blocks in advance, each data storage block comprises a plurality of storage pages, and the storage capacity of each storage page is the same.
Specifically, the data storage instruction carries a data offset and a data storage amount, and determines a storage start position and a storage end position in the solid state disk according to the data storage instruction, including: determining a storage initial position in the solid state disk according to the data offset; and determining a storage end position in the solid state disk according to the data storage amount and the storage starting position.
For example, the storage capacity of each storage page is 4k, the data storage instruction carries a data offset and a data storage size, and the storage start position of the first data can be determined to be 1k of the storage page 2 of the data storage block 1 in the solid state disk according to the data offset. Further, according to the storage starting position and the data storage size, it may be determined that the storage ending position of the first data is 2k of the storage page 3 of the data storage block 1 in the solid state disk. The embodiment of the invention does not limit the data offset and the data storage amount in detail, and can be set according to the actual situation.
Step 302 acquires the first supplemental data if it is determined that the storage start position is not aligned with the start position of the storage page of the solid state disk and/or it is determined that the storage end position is not aligned with the end position of the storage page.
In this embodiment, the data amount per memory page is fixed. For example, the starting position of the memory page 1 in the data memory block 1 is 0k, and the ending position is 4 k; the starting position of the storage page 2 is 4k, and the ending position is 8 k; the memory page 3 has a start position of 8k and an end position of 12 k.
After determining the storage starting position and the storage ending position of the first data, judging whether the storage starting position is aligned with the starting position of the storage page of the solid state disk, and judging whether the storage ending position is aligned with the ending position of the storage page of the solid state disk. If the storage initial position is not aligned with the initial position of the storage page, acquiring first supplementary data according to the storage initial position; if the storage end position is not aligned with the end position of the storage page, acquiring first supplementary data according to the storage end position; if the storage start position is not aligned with the start position of the storage page and the storage end position is not aligned with the end position of the storage page, the first supplemental data is acquired according to the storage start position and the storage end position.
For example, if the data offset is 5k and the data storage amount is 6k, it is determined that the storage start position of the first data is 1k of the storage page 2 and the storage end position is 3k of the storage page 3, and it is further determined that the storage start position is not aligned with the start position of the storage page 2 and the storage end position is not aligned with the end position of the storage page 3.
In one embodiment, the obtaining the first supplemental data may include: determining a storage page where the storage starting position is located and/or a storage page where the storage ending position is located as a target storage page; and acquiring third data corresponding to the target storage page as first supplementary data.
Specifically, if the storage starting position is not aligned with the starting position of the storage page, determining the storage page where the storage starting position is located as a target storage page; if the storage end position is not aligned with the end position of the storage page, determining the storage page where the storage end position is located as a target storage page; and if the storage starting position is not aligned with the starting position of the storage page and the storage ending position is not aligned with the ending position of the storage page, determining the storage page where the storage starting position is located and the storage page where the storage ending position is located as the target storage page.
For example, if the storage start position is not aligned with the start position of the memory page 2 and the storage end position is not aligned with the end position of the memory page 3, both the memory page 2 and the memory page 3 are determined as the target memory page.
In one embodiment, the storage system further includes a memory, and after determining the target storage page, acquiring third data corresponding to the target storage page as the first supplemental data may include: determining whether third data corresponding to the target storage page exists in the solid state disk according to the page index stored in the memory; if the third data exists in the solid state disk, the third data is obtained from the solid state disk; and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
Specifically, when the solid state disk is initialized or the storage service is restarted, a page index is generated in the memory according to the stored data in the solid state disk. After the target storage page is determined, determining whether third data corresponding to the target storage page exists in the solid state disk according to the page index; and if so, acquiring third data from the solid state disk according to the page index. If the third data does not exist, the third data corresponding to the target storage page is transferred to the mechanical hard disk, so that the third data can be acquired from the mechanical hard disk according to the corresponding relation table established in the data transfer process.
And finally, taking the acquired third data as first supplementary data. For example, when the third data C is acquired, the third data C is used as the first supplemental data.
Step 303, integrating the first data to be stored and the acquired first supplemental data into target storage data.
In this embodiment, after the first supplementary data is acquired, the first data and the first supplementary data are integrated to obtain target storage data. For example, the first data is from 1k to 4k in the memory page 2, the acquired first supplemental data is from 0k to 1k in the memory page 2, and the first data and the first supplemental data are spliced to obtain the target memory data. Or the first data is from 1k to 4k in the memory page 2, and the acquired first supplementary data is from 0k to 2k in the memory page 2, only the first supplementary data from 0k to 1k in the memory page 2 is retained, and then the first data and the first supplementary data are spliced to obtain the target memory data. Other integration modes can be adopted, and the embodiment of the invention is not limited in detail and can be set according to actual conditions.
And step 304, storing the target storage data in the solid state disk.
In this embodiment, the data size of the target storage data corresponds to a complete storage page, so that when the target storage data is stored in the solid state disk, the whole page writing can be realized. For example, the target storage data is written in the storage page 2 in full pages.
In one embodiment, after the target storage data is stored in the solid state disk, the page index in the memory is updated according to the target storage data.
In this embodiment, when the solid state disk is initialized or the storage service is restarted, the data in the solid state disk is loaded into the memory, and the page index is generated in the memory according to the loaded data. After the target storage data is stored in the solid state disk, the data in the solid state disk is changed, so that the page index in the memory is updated according to the target storage data, and the supplementary data can be conveniently acquired in the subsequent data storage process.
In the step of storing the first data in the solid state disk, determining a storage starting position and a storage ending position for storing the first data in the solid state disk according to the data storage instruction; if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data; integrating first data to be stored and the acquired first supplementary data into target storage data; and storing the target storage data into the solid state disk. According to the embodiment of the invention, whether the first data can be written in a whole page or not is firstly determined if the first data is stored in the solid state disk, and if the first data cannot be written in the whole page, the first supplementary data is acquired, and the first supplementary data and the first data are integrated to obtain the target storage data, so that the whole page writing can be realized when the target storage data is stored in the solid state disk, and the service life of the solid state disk is prolonged.
In another embodiment, as shown in fig. 4, this embodiment relates to an alternative process of the data reading method. On the basis of the above embodiment, the method specifically includes the following steps:
step 401, receiving a data reading instruction; and the data reading instruction is used for indicating that the fourth data is read from the solid state disk.
In this embodiment, when reading data, the terminal receives a data reading instruction, and performs a reading operation of fourth data according to the data reading instruction.
Step 402, determining a reading start position and a reading end position for reading the fourth data from the solid state disk according to the data reading instruction.
In this embodiment, the data reading instruction carries a data offset and a data reading amount, and a reading start position of the fourth data in the solid state disk can be determined according to the data offset. According to the reading starting position and the data reading amount, the reading ending position of the fourth data in the solid state disk can be determined. The specific determination method is similar to the determination of the storage start position and the storage end position, and is not described herein again.
In step 403, if it is determined that the read start position and/or the read end position are not aligned with the storage page in the solid state disk, the second supplemental data is obtained.
In this embodiment, after determining the read start position and the read end position, it is determined whether the read start position is aligned with the start position of the memory page, and it is determined whether the read end position is aligned with the end position of the memory page. If the reading initial position is not aligned with the initial position of the memory page, acquiring second supplementary data according to the reading initial position; if the reading end position is not aligned with the end position of the storage page, acquiring second supplementary data according to the reading end position; and if the reading starting position is not aligned with the starting position of the memory page and the reading ending position is not aligned with the ending position of the memory page, acquiring second supplementary data according to the reading starting position and the reading ending position.
In one embodiment, the obtaining the second supplemental data may include: determining a target reading page according to the reading starting position and the reading ending position; searching a target reading page in a page index of a memory; if the target reading page is found in the page index, acquiring second supplementary data from the solid state disk according to the target reading page; and if the target reading page is not found in the page index, acquiring second supplementary data from the mechanical hard disk according to the target reading page.
Specifically, if the reading start position is not aligned with the start position of the memory page, determining the memory page where the reading start position is located as a target reading page; if the reading end position is not aligned with the end position of the storage page, determining the storage page where the reading end position is located as a target reading page; and if the reading starting position is not aligned with the starting position of the memory page and the reading ending position is not aligned with the ending position of the memory page, determining the memory page where the reading starting position is located and the memory page where the reading ending position is located as the target reading page.
And after the target reading page is determined, searching the target reading page in the memory according to the page index, and if the target reading page is searched, acquiring data corresponding to the target reading page as second supplementary data according to the page index. And if the target reading page is not found, indicating that the data corresponding to the target reading page is migrated to the mechanical hard disk, acquiring the data corresponding to the target reading page from the mechanical hard disk as second supplementary data.
And step 404, integrating the fourth data and the acquired second supplementary data into target read data, and feeding back the target read data.
In this embodiment, after the second supplemental data is acquired, the fourth data and the second supplemental data are integrated into the target read data. The integration process is similar to the process of integrating the first data and the first supplemental data into the target storage data, and is not described herein again.
And after the target read data is obtained, feeding back the target read data. For example, the terminal displays the target read data. The feedback mode is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
In the data reading method, a data reading instruction is received; the data reading instruction is used for indicating that fourth data are read from the solid state disk; determining a reading starting position and a reading ending position for reading fourth data from the solid state disk according to the data reading instruction; if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page in the solid state disk, acquiring second supplementary data; and integrating the fourth data and the acquired second supplementary data into target reading data, and feeding back the target reading data. According to the embodiment of the invention, whether the fourth data can be read in a whole page is determined, if the fourth data can not be read in the whole page, the second supplementary data is obtained, and the second supplementary data and the fourth data are integrated to obtain the target read data, so that the whole page reading is realized, and the service life of the solid state disk is prolonged.
It should be understood that although the various steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a data storage apparatus applied to a storage system including a solid state disk and a mechanical hard disk, the apparatus including:
a data storage instruction receiving module 501, configured to receive a data storage instruction; the data storage instruction is used for indicating to store first data;
the first storage module 502 is configured to store first data in the solid state disk if it is determined that the used amount of the solid state disk is smaller than a preset threshold;
the second storage module 503 is configured to migrate second data stored in the solid state disk to the mechanical hard disk and store the first data in the solid state disk if it is determined that the used amount of the solid state disk is not less than the preset threshold and a data write conflict exists;
the third storage module 504 is configured to store the first data in the mechanical hard disk if it is determined that the used amount of the solid state disk is not less than the preset threshold and no data write conflict exists.
In one embodiment, the first storage module is specifically configured to determine, according to a data storage instruction, a storage start position and a storage end position for storing the first data in the solid state disk; if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data; integrating first data to be stored and the acquired first supplementary data into target storage data; and storing the target storage data into the solid state disk.
In one embodiment, the first storage module is specifically configured to determine a storage page where the storage start position is located and/or a storage page where the storage end position is located as a target storage page; and acquiring third data corresponding to the target storage page as first supplementary data.
In one embodiment, the storage system further includes a memory, and the first storage module is specifically configured to determine whether third data corresponding to a target storage page exists in the solid state disk according to a page index stored in the memory; if the third data exists in the solid state disk, the third data is obtained from the solid state disk; and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
In one embodiment, the apparatus further comprises:
and the page index updating module is used for updating the page index in the memory according to the target storage data.
In one embodiment, the apparatus further comprises:
and the page index generating module is used for generating a page index in the memory according to the stored data in the solid state disk when the solid state disk is initialized or the storage service is restarted.
In one embodiment, the data storage instruction carries a data offset and a data storage amount, and the first storage module is specifically configured to determine a storage start position in the solid state disk according to the data offset; and determining a storage end position in the solid state disk according to the data storage amount and the storage starting position.
In one embodiment, the apparatus further comprises:
the data reading instruction receiving module is used for receiving a data reading instruction; the data reading instruction is used for indicating that fourth data are read from the solid state disk;
the reading position determining module is used for determining a reading starting position and a reading ending position for reading fourth data from the solid state disk according to the data reading instruction;
the supplementary data acquisition module is used for acquiring second supplementary data if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page of the solid state disk;
and the data integration module is used for integrating the fourth data and the acquired second supplementary data into target reading data and feeding back the target reading data.
In one embodiment, the supplemental data acquisition module is specifically configured to determine a target read page according to a read start position and a read end position; searching a target reading page in a page index of a memory; if the target reading page is found in the page index, acquiring second supplementary data from the solid state disk according to the target reading page; and if the target reading page is not found in the page index, acquiring second supplementary data from the mechanical hard disk according to the target reading page.
For specific limitations of the data storage device, reference may be made to the above limitations of the data storage method, which are not described herein again. The various modules in the data storage device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data storage method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a data storage instruction; the data storage instruction is used for indicating to store first data;
if the used amount of the solid state disk is smaller than a preset threshold value, storing first data into the solid state disk;
if the used amount of the solid state disk is determined to be not less than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing first data in the solid state disk;
and if the used amount of the solid state disk is not less than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a storage starting position and a storage ending position for storing the first data in the solid state disk according to the data storage instruction;
if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data;
integrating first data to be stored and the acquired first supplementary data into target storage data;
and storing the target storage data into the solid state disk.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a storage page where the storage starting position is located and/or a storage page where the storage ending position is located as a target storage page;
and acquiring third data corresponding to the target storage page as first supplementary data.
In one embodiment, the storage system further includes a memory, and the processor executes the computer program to further implement the following steps:
determining whether third data corresponding to the target storage page exists in the solid state disk according to the page index stored in the memory;
if the third data exists in the solid state disk, the third data is obtained from the solid state disk;
and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and updating the page index in the memory according to the target storage data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the solid state disk is initialized or storage service is restarted, a page index is generated in a memory according to stored data in the solid state disk.
In one embodiment, the data storage instruction carries a data offset and a data storage amount, and the processor executes the computer program to further implement the following steps:
determining a storage initial position in the solid state disk according to the data offset;
and determining a storage end position in the solid state disk according to the data storage amount and the storage starting position.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a data reading instruction; the data reading instruction is used for indicating that fourth data are read from the solid state disk;
determining a reading starting position and a reading ending position for reading fourth data from the solid state disk according to the data reading instruction;
if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page of the solid state disk, acquiring second supplementary data;
and integrating the fourth data and the acquired second supplementary data into target reading data, and feeding back the target reading data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a target reading page according to the reading starting position and the reading ending position;
searching a target reading page in a page index of a memory;
if the target reading page is found in the page index, acquiring second supplementary data from the solid state disk according to the target reading page;
and if the target reading page is not found in the page index, acquiring second supplementary data from the mechanical hard disk according to the target reading page.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a data storage instruction; the data storage instruction is used for indicating to store first data;
if the used amount of the solid state disk is smaller than a preset threshold value, storing first data into the solid state disk;
if the used amount of the solid state disk is determined to be not less than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing first data in the solid state disk;
and if the used amount of the solid state disk is not less than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a storage starting position and a storage ending position for storing the first data in the solid state disk according to the data storage instruction;
if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data;
integrating first data to be stored and the acquired first supplementary data into target storage data;
and storing the target storage data into the solid state disk.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a storage page where the storage starting position is located and/or a storage page where the storage ending position is located as a target storage page;
and acquiring third data corresponding to the target storage page as first supplementary data.
In one embodiment, the storage system further includes a memory, and the computer program further implements the following steps when executed by the processor:
determining whether third data corresponding to the target storage page exists in the solid state disk according to the page index stored in the memory;
if the third data exists in the solid state disk, the third data is obtained from the solid state disk;
and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and updating the page index in the memory according to the target storage data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the solid state disk is initialized or storage service is restarted, a page index is generated in a memory according to stored data in the solid state disk.
In one embodiment, the data storage instruction carries a data offset and a data storage amount, and the computer program when executed by the processor further implements the following steps:
determining a storage initial position in the solid state disk according to the data offset;
and determining a storage end position in the solid state disk according to the data storage amount and the storage starting position.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a data reading instruction; the data reading instruction is used for indicating that fourth data are read from the solid state disk;
determining a reading starting position and a reading ending position for reading fourth data from the solid state disk according to the data reading instruction;
if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page of the solid state disk, acquiring second supplementary data;
and integrating the fourth data and the acquired second supplementary data into target reading data, and feeding back the target reading data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a target reading page according to the reading starting position and the reading ending position;
searching a target reading page in a page index of a memory;
if the target reading page is found in the page index, acquiring second supplementary data from the solid state disk according to the target reading page;
and if the target reading page is not found in the page index, acquiring second supplementary data from the mechanical hard disk according to the target reading page.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data storage method is applied to a storage system, wherein the storage system comprises a solid state disk and a mechanical hard disk, and the method comprises the following steps:
receiving a data storage instruction; the data storage instruction is used for indicating to store first data;
if the used amount of the solid state disk is smaller than a preset threshold value, storing the first data into the solid state disk;
if the used amount of the solid state disk is determined to be not smaller than the preset threshold value and data writing conflict exists, migrating second data stored in the solid state disk to the mechanical hard disk, and storing the first data to the solid state disk;
if the used amount of the solid state disk is determined to be not smaller than the preset threshold value and no data writing conflict exists, storing the first data into the mechanical hard disk;
wherein the data write collision comprises: when the first data exists in the solid state disk, if the first data is stored in the mechanical hard disk, the two first data appear in the mechanical hard disk after the first data in the solid state disk is transferred to the mechanical hard disk.
2. The method of claim 1, wherein storing the first data in the solid state disk comprises:
determining a storage starting position and a storage ending position for storing the first data in the solid state disk according to the data storage instruction;
if the storage starting position is determined not to be aligned with the starting position of the storage page of the solid state disk, and/or the storage ending position is determined not to be aligned with the ending position of the storage page, acquiring first supplementary data;
integrating the first data to be stored and the acquired first supplementary data into target storage data;
and storing the target storage data into the solid state disk.
3. The method of claim 2, wherein the obtaining first supplemental data comprises:
determining the memory page where the storage starting position is located and/or the memory page where the storage ending position is located as a target memory page;
and acquiring third data corresponding to the target storage page as the first supplementary data.
4. The method according to claim 3, wherein the storage system further includes a memory, and the obtaining third data corresponding to the target storage page as the first supplementary data includes:
determining whether third data corresponding to the target storage page exists in the solid state disk according to the page index stored in the memory;
if the third data exists in the solid state disk, acquiring the third data from the solid state disk;
and if the third data does not exist in the solid state disk, acquiring the third data from the mechanical hard disk.
5. The method of claim 2, wherein the data storage instruction carries a data offset and a data storage amount, and the determining a storage start position and a storage end position for storing the first data in the solid state disk according to the data storage instruction comprises:
determining the storage starting position in the solid state disk according to the data offset;
and determining the storage ending position in the solid state disk according to the data storage amount and the storage starting position.
6. The method of claim 1, further comprising:
receiving a data reading instruction; the data reading instruction is used for indicating that fourth data are read from the solid state disk;
determining a reading starting position and a reading ending position for reading the fourth data from the solid state disk according to the data reading instruction;
if the reading starting position and/or the reading ending position are determined not to be aligned with the storage page of the solid state disk, acquiring second supplementary data;
and integrating the fourth data and the acquired second supplementary data into target reading data, and feeding back the target reading data.
7. The method of claim 6, wherein the obtaining second supplemental data comprises:
determining a target reading page according to the reading starting position and the reading ending position;
searching the target reading page in a page index of a memory;
if the target reading page is found in the page index, acquiring the second supplementary data from the solid state disk according to the target reading page;
and if the target reading page is not found in the page index, acquiring the second supplementary data from the mechanical hard disk according to the target reading page.
8. A data storage device, applied to a storage system including a solid state disk and a mechanical hard disk, the device comprising:
the data storage instruction receiving module is used for receiving a data storage instruction; the data storage instruction is used for indicating to store first data;
the first storage module is used for storing the first data into the solid state disk if the used amount of the solid state disk is determined to be smaller than a preset threshold value;
the second storage module is used for migrating second data stored in the solid state disk to the mechanical hard disk and storing the first data in the solid state disk if the used amount of the solid state disk is determined to be not less than the preset threshold and data writing conflict exists;
the third storage module is used for storing the first data into the mechanical hard disk if the used amount of the solid state disk is determined to be not less than the preset threshold value and no data writing conflict exists;
wherein the data write collision comprises: when the first data exists in the solid state disk, if the first data is stored in the mechanical hard disk, the two first data appear in the mechanical hard disk after the first data in the solid state disk is transferred to the mechanical hard disk.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911419971.9A 2019-12-31 2019-12-31 Data storage method and device, computer equipment and storage medium Active CN111158609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911419971.9A CN111158609B (en) 2019-12-31 2019-12-31 Data storage method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911419971.9A CN111158609B (en) 2019-12-31 2019-12-31 Data storage method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111158609A CN111158609A (en) 2020-05-15
CN111158609B true CN111158609B (en) 2020-11-20

Family

ID=70560482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911419971.9A Active CN111158609B (en) 2019-12-31 2019-12-31 Data storage method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111158609B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446920A (en) * 2008-12-26 2009-06-03 祥硕科技股份有限公司 Data-writing method deciding flash memory by employing file system characteristics
CN103399713A (en) * 2013-08-02 2013-11-20 浙江大学 Data buffering method for balancing multistage memory property and solid-state disk service life
CN107817946A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 For mixing the method and device of storage device read-write data
US9983812B1 (en) * 2016-06-13 2018-05-29 EMC IP Holding Company LLC Automated node failure detection in an active/hot-standby storage cluster
CN108710474A (en) * 2018-05-18 2018-10-26 郑州云海信息技术有限公司 A kind of date storage method, device and computer storage media
CN109388341A (en) * 2018-08-28 2019-02-26 安徽继远软件有限公司 A kind of system storage optimization method based on Device Mapper
CN109656487A (en) * 2018-12-24 2019-04-19 平安科技(深圳)有限公司 A kind of data processing method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491589A (en) * 2017-09-13 2019-03-19 北京易华录信息技术股份有限公司 A kind of delamination process and device based on file content
US10025534B1 (en) * 2017-12-20 2018-07-17 Seagate Technology Llc Shingled magnetic recording trim operation
CN109976680A (en) * 2019-04-11 2019-07-05 苏州浪潮智能科技有限公司 A kind of data migration method, device, equipment and readable storage medium storing program for executing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446920A (en) * 2008-12-26 2009-06-03 祥硕科技股份有限公司 Data-writing method deciding flash memory by employing file system characteristics
CN103399713A (en) * 2013-08-02 2013-11-20 浙江大学 Data buffering method for balancing multistage memory property and solid-state disk service life
US9983812B1 (en) * 2016-06-13 2018-05-29 EMC IP Holding Company LLC Automated node failure detection in an active/hot-standby storage cluster
CN107817946A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 For mixing the method and device of storage device read-write data
CN108710474A (en) * 2018-05-18 2018-10-26 郑州云海信息技术有限公司 A kind of date storage method, device and computer storage media
CN109388341A (en) * 2018-08-28 2019-02-26 安徽继远软件有限公司 A kind of system storage optimization method based on Device Mapper
CN109656487A (en) * 2018-12-24 2019-04-19 平安科技(深圳)有限公司 A kind of data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111158609A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US20150324137A1 (en) Method and Computing Device for Using Both Volatile Memory and Non-Volatile Swap Memory to Pre-Load a Plurality of Applications
CN112988284B (en) Application program starting method and device, computer equipment and storage medium
CN102707966A (en) Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information
US9710198B2 (en) Method and computing device for controlling bandwidth of swap operations
US9633233B2 (en) Method and computing device for encrypting data stored in swap memory
KR20160111583A (en) Memory system including host and a plurality of storage device and data migration method thereof
CN115963995A (en) Multi-mode low-energy-consumption distributed cloud storage system, electronic equipment and storage medium
KR20200114086A (en) Controller, memory system and operating method thereof
KR102116984B1 (en) Method for controlling memory swap operation and data processing system adopting the same
CN111158609B (en) Data storage method and device, computer equipment and storage medium
CN111158606B (en) Storage method, storage device, computer equipment and storage medium
KR102554418B1 (en) Memory controller and storage device including the same
US20230142948A1 (en) Techniques for managing context information for a storage device
CN114924911B (en) Method, device, equipment and storage medium for backing up effective data of Windows operating system
CN115774701A (en) Data sharing method and device, electronic equipment and storage medium
US10146553B2 (en) Electronic apparatus and booting method thereof
CN114138176A (en) Nor Flash erasing and upgrading method and device, computer equipment and storage medium
CN111124932B (en) Scheme verification method, system, device, computer equipment and storage medium
CN115878509A (en) Disk array caching method and device, computer equipment and storage medium
CN112800123A (en) Data processing method, data processing device, computer equipment and storage medium
CN112579004A (en) Method, system, computer equipment and storage medium for quickly deleting flash data
CN112395243B (en) Access method and device of processor
CN111046241B (en) Graph storage method and device for flow graph processing
CN117806709B (en) Performance optimization method, device, equipment and storage medium of system-level chip
CN114564148A (en) Method, device, equipment and storage medium for writing data to source volume in snapshot process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant