CN112684979B - Using method, system, equipment and storage medium of solid state disk - Google Patents

Using method, system, equipment and storage medium of solid state disk Download PDF

Info

Publication number
CN112684979B
CN112684979B CN202011554216.4A CN202011554216A CN112684979B CN 112684979 B CN112684979 B CN 112684979B CN 202011554216 A CN202011554216 A CN 202011554216A CN 112684979 B CN112684979 B CN 112684979B
Authority
CN
China
Prior art keywords
storage space
zone
info
target storage
report
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
CN202011554216.4A
Other languages
Chinese (zh)
Other versions
CN112684979A (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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202011554216.4A priority Critical patent/CN112684979B/en
Publication of CN112684979A publication Critical patent/CN112684979A/en
Application granted granted Critical
Publication of CN112684979B publication Critical patent/CN112684979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, a system, equipment and a storage medium for using a solid state disk, comprising the following steps: receiving a report zone request; applying for a target storage space; continuously selecting zone info conforming to the report zone request until a stopping condition is met; continuously putting zone info when the part outside the reserved area of the target storage space is not fully filled; after the part outside the reserved area is fully filled, using the P storage spaces applied in sequence to place the zone info which is continuously selected until the stopping condition is met; for any 1 storage space, when the storage space is fully filled and the stop condition is not met, uploading the data in the storage space to a host and applying for the next storage space; and after the stopping condition is met, filling the information head into the reserved area and uploading the target storage space. By applying the scheme, the time consumption for acquiring the zone information is reduced.

Description

Using method, system, equipment and storage medium of solid state disk
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, a system, an apparatus, and a storage medium for using a solid state disk.
Background
ZNS (Zoned Namespace) is a solution based on NVMe (Non-Volatile Memory express) protocol, and has the advantages of small write amplification and low cost compared with the traditional SSD (Solid State Disk). Usually, the ZNS SSD only supports sequential writing, so before configuration and use, the ZNS SSD needs to acquire configuration information of each zone needed inside the ZNS SSD, and then can accurately determine the writing pointer and status of each zone. The command is report zone, implemented based on zone management receive command in the ZNS protocol.
Currently, a ZNS SSD based on a ZNS protocol is not available in the market, and the ZNS protocol is currently perfected. The process of obtaining the information of the zone through the report zone command has the problem of longer time consumption at present, and particularly when the configuration information of all the zones in the ZNS SSD needs to be obtained, the condition of longer time consumption is obvious.
In summary, how to effectively reduce the time consumption of obtaining the information of the zone, so that the ZNS SSD can be conveniently and rapidly used is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a using method, a system, equipment and a storage medium of a solid state disk, so as to effectively reduce the time consumption for acquiring the information of a zone.
In order to solve the technical problems, the invention provides the following technical scheme:
a using method of a solid state disk comprises the following steps:
receiving a report zone request issued by a host;
applying a storage space as a target storage space;
by traversing each zone info, zone info conforming to the report zone request is continuously selected until a preset stop condition is met;
when the part outside the reserved area of the target storage space is not fully filled, continuously placing the continuously selected zone info which accords with the report zone request into the target storage space until the part outside the reserved area of the target storage space is fully filled; the 1 st to N th bytes of the target storage space are reserved areas of the target storage space, so that the zone info is put in from the (n+1) th byte of the target storage space;
after the part outside the reserved area of the target storage space is fully filled, utilizing the P storage spaces which are sequentially applied to place the continuously selected zone info which accords with the report zone request until the stopping condition is met, and not selecting new zone info; after applying for the storage space, the 1 st byte of the storage space is used for placing zone info, when the storage space is fully filled and the stop condition is not met, the data in the storage space is uploaded to the host and the next storage space is applied, and when the stop condition is met in the process of placing the storage space into zone info, the data in the storage space is uploaded to the host;
and after the stopping condition is met, filling the information head into a reserved area of the target storage space, uploading data in the target storage space to the host, and completing the response to the report request so as to enable the host to use the solid state disk.
Preferably, the sizes of the target storage space and the P storage spaces are the same.
Preferably, the target storage space and the P storage spaces are each 4k in size.
Preferably, N has a value of 64.
Preferably, the method further comprises:
for any 1 storage space in the P storage spaces, after uploading the data in the storage space to the host, the release of the storage space is performed.
Preferably, the stop condition is:
traversing each zone info and selecting zone info to meet the number of report zone requests, wherein at least one of the two conditions is satisfied.
Preferably, the method further comprises:
after receiving a report zone request issued by a host, before applying for a storage space as a target storage space, selecting whether to execute a prp list acquisition process according to a first instruction of the host.
A use system of a solid state disk, comprising:
the report request receiving module is used for receiving a report request issued by the host;
the target storage space application module is used for applying a storage space as a target storage space;
the zone info selection module is used for continuously selecting zone info conforming to the report zone request by traversing each zone info until a preset stop condition is met;
the first embedding module is used for continuously embedding the continuously selected zone info which accords with the report zone request into the target storage space when the part outside the reserved area of the target storage space is not fully filled, until the part outside the reserved area of the target storage space is fully filled; the 1 st to N th bytes of the target storage space are reserved areas of the target storage space, so that the zone info is put in from the (n+1) th byte of the target storage space;
the second imbedding module is used for utilizing the P storage spaces which are sequentially applied to place the continuously selected zone info which accords with the report zone request after the part outside the reserved area of the target storage space is fully filled, and not selecting new zone info until the stopping condition is met; after applying for the storage space, the 1 st byte of the storage space is used for placing zone info, when the storage space is fully filled and the stop condition is not met, the data in the storage space is uploaded to the host and the next storage space is applied, and when the stop condition is met in the process of placing the storage space into zone info, the data in the storage space is uploaded to the host;
and the information head filling module is used for filling the information head into the reserved area of the target storage space after the stopping condition is met, uploading the data in the target storage space to the host, and completing the response to the report request so as to enable the host to use the solid state disk.
A use device of a solid state disk, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the using method of the solid state disk.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of using a solid state disk as described in any of the preceding claims.
By applying the technical scheme provided by the embodiment of the invention, the applicant considers that the time consumption for acquiring the information of the zone is longer in the traditional scheme, because in the traditional scheme, after all the information of the required zone is selected through traversing, uploading is started to the host, and particularly when the information of the required zone is more, the condition that the time consumption of the traditional scheme is longer is obvious. In the scheme of the application, the strategy of selecting and uploading is adopted, so that time consumption is saved. Specifically, after receiving a report zone request issued by a host, the application applies for a storage space as a target storage space, and then continuously selects zone info conforming to the report zone request by traversing each zone info until a preset stop condition is met. It will be appreciated that at the beginning, the target storage space of the application is empty, so that the continuously selected zone info meeting the report zone request is placed in the target storage space until the portion outside the reserved area of the target storage space is filled. After the part outside the reserved area of the target storage space is fully filled, the uploading of the target storage space cannot be directly performed, because the uploading of the target storage space can be performed only after the information head is filled into the reserved area of the target storage space, unlike the P storage spaces which are sequentially applied subsequently. After the part outside the reserved area of the target storage space is fully filled, the application places the continuously selected zone info meeting the report zone request by using the P storage spaces applied in sequence until the stopping condition is met and no new zone info is selected. And, to arbitrary 1 memory space in P memory spaces, when this memory space is filled up and stop condition does not establish, this application is direct with the data upload in this memory space to host computer and apply for next memory space, that is to say, this memory space as long as self is filled up, just can directly carry out the uploading of data, can not influence and put into the zone info that constantly selects out to the memory space of new application, promptly, make the uploading of the scheme data of this application and the selection of data can go on simultaneously. After the uploading of the data in the P storage spaces and the target storage space is completed, the response to the report request is completed, so that the host can use the solid state disk. From the above, the scheme of the application effectively reduces the time consumption for acquiring the information of the zone, and can further conveniently and rapidly use the ZNS SSD.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for using a solid state disk according to the present invention;
fig. 2 is a schematic structural diagram of a system for using a solid state disk according to the present invention.
Detailed Description
The core of the invention is to provide a method for using a solid state disk, which effectively reduces the time consumption for acquiring the information of a zone, and further can conveniently and rapidly use a ZNS SSD.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for using a solid state disk according to the present invention, where the method for using a solid state disk may include the following steps:
step S101: a report zone request issued by a host is received.
Typically, the report zone request issued by the host carries quantity information and type information. The solid state disk of the application can be specifically a ZNS SSD.
Step S102: a storage space is applied as a target storage space.
The size of the target storage space can be set and adjusted according to actual needs, and when the P storage spaces are applied subsequently, the size of each storage space in the P storage spaces can also be set and adjusted according to actual needs. I.e. the target storage space and the P storage spaces are all the same size in one embodiment of the invention. Further, in practical applications, the sizes of the target storage space and the P storage spaces may be 4k according to practical experience, and the application will be described hereinafter by taking 4k as an example, it will be understood that in other situations, the sizes of the target storage space and the P storage spaces may have other values, but it should be noted that, in general, the selectable value is an integer multiple of 0.5 k.
Step S103: and continuously selecting the zone info meeting the report zone request by traversing each zone info until the preset stopping condition is met.
zone info is information of a zone, and specifically refers to configuration information of a zone, whether the configuration information of a zone accords with a report zone request issued by a host, and whether the type in the configuration information of the zone accords with the type requirement of the report zone request, namely, whether the type information is consistent with the type information carried in the report zone request.
And traversing each zone info, selecting the zone info conforming to the report zone request, and discarding the zone info not conforming to the report zone request until a preset stop condition is met.
It should be emphasized that, instead of executing step S104 after step S103 is completed, step S104 is triggered immediately after step S103 is triggered, that is, the solution of the present application is to continuously select zone info meeting the report zone request, and immediately fill the corresponding storage space after the zone info is selected. Step S103 and step S104 are performed simultaneously, and when step S105 is triggered, step S103 and step S105 are also performed simultaneously.
Step S104: when the part outside the reserved area of the target storage space is not fully filled, continuously placing the continuously selected zone info which accords with the report zone request into the target storage space until the part outside the reserved area of the target storage space is fully filled; the 1 st to nth bytes of the target storage space are reserved areas of the target storage space, so that the zone info is placed from the (n+1) th byte of the target storage space.
It will be appreciated that when steps S103 and S104 are initially triggered, the target storage space is empty, and then the portion outside the reserved area of the target storage space is gradually filled as zone info conforming to the report zone request is continuously selected.
When the selected zone info is placed in the target storage space, the zone info cannot be placed in the reserved area, specifically, the zone info is placed from the n+1th byte of the target storage space, because the reserved area needs to be used for placing the information head, namely the zone info header, and the specific content of the zone info header needs to be determined after all zone info uploaded at this time is determined.
It should be emphasized that, after the portion outside the reserved area of the target storage space is filled, the data in the target storage middle is not directly uploaded, and the data in the target storage middle needs to be uploaded after the information header is filled later.
In addition, in the case of a very small portion, there is a possibility that the portion other than the reserved area of the target storage space is not fully filled, and the stop condition is satisfied, and for this case, the step S105 is not required to be triggered, and the step S106 may be directly triggered.
Step S105: after the part outside the reserved area of the target storage space is fully filled, utilizing the P storage spaces applied in sequence to place the continuously selected zone info meeting the report zone request until the stopping condition is met, and not selecting new zone info; after the application of the storage space, the zone info is put in from the 1 st byte of the storage space, when the storage space is fully filled and the stop condition is not met, the data in the storage space is uploaded to the host and the next storage space is applied, and when the stop condition is met in the process of putting the storage space into the zone info, the data in the storage space is uploaded to the host.
As described above, the target storage space and P storage spaces are each 4k in size. After the portion outside the reserved area of the target storage space is fully filled, the present application applies for 1 storage space of 4k again, which is called 1 st storage space for convenience of description. It will be appreciated that when the 1 st storage space is just applied for, the 1 st storage space is empty, and then the continuously selected zone info meeting the report zone request is placed into the 1 st storage space, so as to gradually fill the 1 st storage space.
After the 1 st storage space is filled, the data in the 1 st storage space is immediately uploaded.
Assuming that after the 1 st storage space is filled, the stop condition is not satisfied, i.e. a new zone info meeting the report zone request is still selected, the present application applies for 1 more 4k storage space, which is called 2 nd storage space, while uploading the data in the 1 st storage space. And the same as the 1 st storage space, the 2 nd storage space is empty when the application is finished, and then the 2 nd storage space is gradually filled up along with the continuously selected zone info which accords with the report zone request being placed in the 2 nd storage space. After the 2 nd storage space is filled, the application immediately uploads the data in the 2 nd storage space.
And so on. For example, in a specific case, after the 6 th storage space is applied, in the process of placing the continuously selected zone info meeting the report zone request into the 6 th storage space, the stopping condition is satisfied, that is, a new zone info is not selected any more, where P is 6, at this time, the data in the 6 th storage space can be uploaded to the host, and then step S106 is triggered.
The specific content of the stopping condition can be set and selected according to actual needs, for example, in one specific embodiment of the present invention, the stopping condition is:
traversing each zone info and selecting zone info to meet the number of report zone requests, wherein at least one of the two conditions is satisfied.
That is, when all zone info is traversed, the selection of new zone info is stopped, and the number of selected zone info already meets the number of request of report, and the traversal is stopped, so that the new zone info is not selected any more.
Further, in a specific embodiment of the present invention, the method may further include:
for any 1 storage space in the P storage spaces, the release of the storage space is performed after uploading the data in the storage space to the host.
For example, in the foregoing embodiment, after uploading the data in the 1 st storage space, the solid state disk is not required to store the data in the 1 st storage space, so that the 1 st storage space can be released.
Step S106: after the stopping condition is met, the information head is filled into a reserved area of the target storage space, data in the target storage space is uploaded to the host, and response to the report request is completed, so that the host can use the solid state disk.
After the stop condition is met, it is indicated that no new zone info is selected any more, for example, in the foregoing example, in the process of placing the continuously selected zone info meeting the report zone request into the 6 th storage space, the stop condition is met, and then the data in the 6 th storage space is uploaded to the host, and step S106 is triggered.
After step S106 is triggered, the information header needs to be filled into the reserved area of the target storage space, and the size of the reserved area can be set according to actual needs, that is, the value of N can be set according to needs, and in actual application, the value of N is generally set to 64. I.e., the first 64 byte region is the zone info header.
After the information header is filled into the reserved area of the target storage space, the data in the target storage space can be uploaded to the host, that is, the uploading of the target storage space is later than the P storage spaces uploaded before, and the uploading is last.
After the data in the target storage space is uploaded, the target storage space can be released, so that the fact that the data which need to be uploaded at this time are all uploaded is described, namely, the response to the report zone request is completed, and the host can use the solid state disk.
In addition, in practical application, the method may further include:
after receiving a report zone request issued by a host, before applying for a storage space as a target storage space, selecting whether to execute a prp list acquisition process according to a first instruction of the host.
Specifically, in practical application, whether to execute the prp list acquisition process is determined according to the data volume to be uploaded by the solid state disk. The host may issue a first instruction including prp0 or prp1, for example, prp0 indicates that the prp list acquiring process is not required to be executed, prp1 indicates that the prp list acquiring process is required to be executed, and if the prp list acquiring process is required to be executed, a DMA request may be sent to the host, and the prp list is acquired and stored in the solid state disk.
By applying the technical scheme provided by the embodiment of the invention, the applicant considers that the time consumption for acquiring the information of the zone is longer in the traditional scheme, because in the traditional scheme, after all the information of the required zone is selected through traversing, uploading is started to the host, and particularly when the information of the required zone is more, the condition that the time consumption of the traditional scheme is longer is obvious. In the scheme of the application, the strategy of selecting and uploading is adopted, so that time consumption is saved. Specifically, after receiving a report zone request issued by a host, the application applies for a storage space as a target storage space, and then continuously selects zone info conforming to the report zone request by traversing each zone info until a preset stop condition is met. It will be appreciated that at the beginning, the target storage space of the application is empty, so that the continuously selected zone info meeting the report zone request is placed in the target storage space until the portion outside the reserved area of the target storage space is filled. After the part outside the reserved area of the target storage space is fully filled, the uploading of the target storage space cannot be directly performed, because the uploading of the target storage space can be performed only after the information head is filled into the reserved area of the target storage space, unlike the P storage spaces which are sequentially applied subsequently. After the part outside the reserved area of the target storage space is fully filled, the application places the continuously selected zone info meeting the report zone request by using the P storage spaces applied in sequence until the stopping condition is met and no new zone info is selected. And, to arbitrary 1 memory space in P memory spaces, when this memory space is filled up and stop condition does not establish, this application is direct with the data upload in this memory space to host computer and apply for next memory space, that is to say, this memory space as long as self is filled up, just can directly carry out the uploading of data, can not influence and put into the zone info that constantly selects out to the memory space of new application, promptly, make the uploading of the scheme data of this application and the selection of data can go on simultaneously. After the uploading of the data in the P storage spaces and the target storage space is completed, the response to the report request is completed, so that the host can use the solid state disk. From the above, the scheme of the application effectively reduces the time consumption for acquiring the information of the zone, and can further conveniently and rapidly use the ZNS SSD.
Corresponding to the method embodiment, the embodiment of the invention also provides a system for using the solid state disk, which can be correspondingly referred to the above.
Referring to fig. 2, a schematic structural diagram of a system for using a solid state disk according to the present invention includes:
a report request receiving module 201, configured to receive a report request issued by a host;
a target storage space application module 202, configured to apply a storage space as a target storage space;
the zone info selecting module 203 is configured to continuously select zone info that meets the report zone request by traversing each zone info until a preset stop condition is met;
a first embedding module 204, configured to, when a portion outside the reserved area of the target storage space is not fully filled, continuously embed the continuously selected zone info meeting the report zone request into the target storage space until the portion outside the reserved area of the target storage space is fully filled; the 1 st to N th bytes of the target storage space are reserved areas of the target storage space, so that the zone info is put in from the (n+1) th byte of the target storage space;
the second embedding module 205 is configured to place, after a portion outside the reserved area of the target storage space is fully filled, continuously selected zone info meeting the report zone request using P storage spaces applied in sequence, until a stopping condition is met, and no new zone info is selected; after applying for any 1 storage space in the P storage spaces, the zone info is put in from the 1 st byte of the storage space, when the storage space is fully filled and the stop condition is not met, the data in the storage space is uploaded to the host and the next storage space is applied, and when the stop condition is met in the process of putting the storage space into the zone info, the data in the storage space is uploaded to the host;
and the information head filling module 206 is configured to fill the information head into the reserved area of the target storage space after the stop condition is met, and upload the data in the target storage space to the host, so as to complete the response to the report request, so that the host uses the solid state disk.
In one embodiment of the present invention, the target storage space and the P storage spaces are the same size.
In one embodiment of the present invention, the size of the target storage space and the P storage spaces are each 4k.
In one embodiment of the present invention, N has a value of 64.
In one embodiment of the present invention, the method further comprises:
the storage space releasing module is used for releasing the storage space after uploading the data in the storage space to the host computer for any 1 storage space in the P storage spaces.
In one embodiment of the present invention, the stop conditions are:
traversing each zone info and selecting zone info to meet the number of report zone requests, wherein at least one of the two conditions is satisfied.
In one embodiment of the present invention, the method further comprises:
and the prp list acquisition module is used for selecting whether to execute the prp list acquisition process according to a first instruction of the host after receiving a report zone request issued by the host and before applying a storage space as a target storage space.
Corresponding to the above method and system embodiments, the embodiments of the present invention further provide a device for using a solid state disk and a computer readable storage medium, which can be referred to above in correspondence with each other.
The use device of the solid state disk may include:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the using method of the solid state disk in any embodiment.
The computer readable storage medium stores a computer program, which when executed by a processor, implements the steps of the method for using a solid state disk in any of the above embodiments. The computer readable storage medium as described herein includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principles and embodiments of the present invention have been described herein with reference to specific examples, but the description of the examples above is only for aiding in understanding the technical solution of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (9)

1. The application method of the solid state disk is characterized by comprising the following steps of:
receiving a report zone request issued by a host;
applying a storage space as a target storage space;
by traversing each zone info, zone info conforming to the report zone request is continuously selected until a preset stop condition is met;
when the part outside the reserved area of the target storage space is not fully filled, continuously placing the continuously selected zone info which accords with the report zone request into the target storage space until the part outside the reserved area of the target storage space is fully filled; the 1 st to N th bytes of the target storage space are reserved areas of the target storage space, so that the zone info is put in from the (n+1) th byte of the target storage space;
after the part outside the reserved area of the target storage space is fully filled, utilizing the P storage spaces which are sequentially applied to place the continuously selected zone info which accords with the report zone request until the stopping condition is met, and not selecting new zone info; after applying for the storage space, the 1 st byte of the storage space is used for placing zone info, when the storage space is fully filled and the stop condition is not met, the data in the storage space is uploaded to the host and the next storage space is applied, and when the stop condition is met in the process of placing the storage space into zone info, the data in the storage space is uploaded to the host;
after the stopping condition is met, filling an information head into a reserved area of the target storage space, uploading data in the target storage space to the host, and completing response to the report request so as to enable the host to use the solid state disk;
the stopping conditions are as follows: traversing each zone info, and selecting zone info which meets the number requirement of report zone requests, wherein the two conditions at least meet one condition;
wherein, the stopping condition is: traversing each zone info and selecting zone info to meet the number of report zone requests, wherein the two conditions at least meet one condition, and the meaning is as follows:
when all zone info is traversed, the stop condition is established to stop selecting new zone info; when the number of selected zone info has reached the number of report zone requests, the stop condition is established to stop selecting a new zone info.
2. The method of claim 1, wherein the target storage space and the P storage spaces are the same size.
3. The method of claim 2, wherein the target storage space and the P storage spaces are each 4k in size.
4. The method of claim 1, wherein N has a value of 64.
5. The method for using a solid state disk as claimed in claim 1, further comprising:
for any 1 storage space in the P storage spaces, after uploading the data in the storage space to the host, the release of the storage space is performed.
6. The method for using a solid state disk as claimed in claim 1, further comprising:
after receiving a report zone request issued by a host, before applying for a storage space as a target storage space, selecting whether to execute a prp list acquisition process according to a first instruction of the host.
7. A system for using a solid state disk, comprising:
the report request receiving module is used for receiving a report request issued by the host;
the target storage space application module is used for applying a storage space as a target storage space;
the zone info selection module is used for continuously selecting zone info conforming to the report zone request by traversing each zone info until a preset stop condition is met;
the first embedding module is used for continuously embedding the continuously selected zone info which accords with the report zone request into the target storage space when the part outside the reserved area of the target storage space is not fully filled, until the part outside the reserved area of the target storage space is fully filled; the 1 st to N th bytes of the target storage space are reserved areas of the target storage space, so that the zone info is put in from the (n+1) th byte of the target storage space;
the second imbedding module is used for utilizing the P storage spaces which are sequentially applied to place the continuously selected zone info which accords with the report zone request after the part outside the reserved area of the target storage space is fully filled, and not selecting new zone info until the stopping condition is met; after applying for the storage space, the 1 st byte of the storage space is used for placing zone info, when the storage space is fully filled and the stop condition is not met, the data in the storage space is uploaded to the host and the next storage space is applied, and when the stop condition is met in the process of placing the storage space into zone info, the data in the storage space is uploaded to the host;
the information head filling module is used for filling the information head into a reserved area of the target storage space after the stopping condition is met, uploading data in the target storage space to the host, and completing the response to the report request so that the host can use the solid state disk;
the stopping conditions are as follows: traversing each zone info, and selecting zone info which meets the number requirement of report zone requests, wherein the two conditions at least meet one condition;
wherein, the stopping condition is: traversing each zone info and selecting zone info to meet the number of report zone requests, wherein the two conditions at least meet one condition, and the meaning is as follows:
when all zone info is traversed, the stop condition is established to stop selecting new zone info; when the number of selected zone info has reached the number of report zone requests, the stop condition is established to stop selecting a new zone info.
8. A solid state disk usage device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for using a solid state disk as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program when executed by a processor implements the steps of the method for using a solid state disk according to any one of claims 1 to 6.
CN202011554216.4A 2020-12-24 2020-12-24 Using method, system, equipment and storage medium of solid state disk Active CN112684979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011554216.4A CN112684979B (en) 2020-12-24 2020-12-24 Using method, system, equipment and storage medium of solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011554216.4A CN112684979B (en) 2020-12-24 2020-12-24 Using method, system, equipment and storage medium of solid state disk

Publications (2)

Publication Number Publication Date
CN112684979A CN112684979A (en) 2021-04-20
CN112684979B true CN112684979B (en) 2024-03-01

Family

ID=75452903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011554216.4A Active CN112684979B (en) 2020-12-24 2020-12-24 Using method, system, equipment and storage medium of solid state disk

Country Status (1)

Country Link
CN (1) CN112684979B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138193B (en) * 2021-11-25 2024-03-26 郑州云海信息技术有限公司 Data writing method, device and equipment for partition naming space solid state disk

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159839A (en) * 2015-09-28 2015-12-16 联想(北京)有限公司 Configuration method and apparatus and solid-state disk
CN108762989A (en) * 2018-06-05 2018-11-06 郑州云海信息技术有限公司 Date storage method, device, equipment and the readable storage medium storing program for executing of solid state disk
CN111045870A (en) * 2019-12-27 2020-04-21 北京浪潮数据技术有限公司 Method, device and medium for saving and restoring metadata

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160026399A1 (en) * 2014-07-23 2016-01-28 Lsi Corporation Block i/o interface for a host bus adapter that utilizes nvdram
US11132134B2 (en) * 2017-12-21 2021-09-28 Apple Inc. Flexible over-provisioning of storage space within solid-state storage devices (SSDs)
US10884654B2 (en) * 2018-12-31 2021-01-05 Alibaba Group Holding Limited System and method for quality of service assurance of multi-stream scenarios in a hard disk drive

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159839A (en) * 2015-09-28 2015-12-16 联想(北京)有限公司 Configuration method and apparatus and solid-state disk
CN108762989A (en) * 2018-06-05 2018-11-06 郑州云海信息技术有限公司 Date storage method, device, equipment and the readable storage medium storing program for executing of solid state disk
CN111045870A (en) * 2019-12-27 2020-04-21 北京浪潮数据技术有限公司 Method, device and medium for saving and restoring metadata

Also Published As

Publication number Publication date
CN112684979A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US10977171B2 (en) Method for creating multi-namespace and accessing data therein
KR100951107B1 (en) Method for managing files for optimal performance
US20180267706A1 (en) Storage system, computer program product, and method for managing a hybrid memory device system
EP3436953B1 (en) Method and apparatus for processing sequential writes to a block group of physical blocks in a memory device
TWI512463B (en) Memory device and host device
CN112684979B (en) Using method, system, equipment and storage medium of solid state disk
TW201525691A (en) Data storage device and flash memory control method
GB2383859A (en) Memory controller managing a file allocation table for a memory card
CN105393228B (en) Read and write the method, apparatus and user equipment of data in flash memory
JP2009159081A5 (en)
CN108363553A (en) A kind of data processing method, apparatus and system
CN111414228A (en) Kubernetes-based method for managing storage space and related device
US20150347320A1 (en) ENCRYPTION FOR SOLID STATE DRIVES (SSDs)
CN109634528A (en) A kind of rule method, apparatus, equipment and the storage medium of target data
WO2012019142A1 (en) System and method for providing implicit unmaps in thinly provisioned virtual tape library systems
WO2017054714A1 (en) Method and apparatus for reading disk array
US10915270B2 (en) Random file I/O and chunked data upload
US8301862B2 (en) Formatting device
CN110795031A (en) Data deduplication method, device and system based on full flash storage
CN111506254A (en) Distributed storage system and management method and device thereof
US9170929B2 (en) Memory controller
US9223689B2 (en) Apparatus and method for managing memory
CN113467722A (en) Data migration method and device of distributed storage system
CN113126923B (en) Additional uploading method, system, equipment and storage medium for distributed object storage
CN117115392B (en) Model image compression method, device, computer equipment and readable storage medium

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