CN113625948A - Method, device and equipment for filling dummy in solid state disk and readable medium - Google Patents

Method, device and equipment for filling dummy in solid state disk and readable medium Download PDF

Info

Publication number
CN113625948A
CN113625948A CN202110721830.3A CN202110721830A CN113625948A CN 113625948 A CN113625948 A CN 113625948A CN 202110721830 A CN202110721830 A CN 202110721830A CN 113625948 A CN113625948 A CN 113625948A
Authority
CN
China
Prior art keywords
control block
solid state
write
state disk
dummy data
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.)
Granted
Application number
CN202110721830.3A
Other languages
Chinese (zh)
Other versions
CN113625948B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110721830.3A priority Critical patent/CN113625948B/en
Publication of CN113625948A publication Critical patent/CN113625948A/en
Application granted granted Critical
Publication of CN113625948B publication Critical patent/CN113625948B/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/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0778Dumping, i.e. gathering error/state information after a fault for later diagnosis
    • 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/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • 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/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a method, a device, equipment and a readable medium for filling dummy in a solid state disk, wherein the method comprises the following steps: in response to the detection that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block; responding to the detected power-off of the solid state disk, and judging whether the power-off of the solid state disk is normal power-off or not; in response to the fact that the solid state disk is normally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block; and responding to the success of the application of the write control block, and filling the acquired dummy data into the unfilled block by the write manager. By using the scheme of the invention, the time loss caused by message transmission among the modules can be reduced, the internal resources of the write manager can be used to the maximum extent, the dummy filling efficiency during power-off is greatly improved, and the safety of the solid state disk for storing user data is ensured.

Description

Method, device and equipment for filling dummy in solid state disk and readable medium
Technical Field
The field relates to the field of computers, and more particularly to a method, an apparatus, a device and a readable medium for filling a dummy in a solid state disk.
Background
In the process of writing data, the solid state disk needs to be operated in multiple steps, and the writing data is written into the hardware unit, that is, the solid state storage unit, and the performance of writing data and the correctness of data are important characteristics of the solid state disk, so that the solid state disk has higher requirements on the process of writing data.
In the existing data writing process, not only the user data operation is performed, but also special processing needs to be performed on the solid state disk in order to ensure the storage security of the user, for example, operations of NAND filling dummy, and the like, and therefore, the performance and the data security of the solid state disk often need to be comprehensively considered. According to the transmission path of user data, the following steps are roughly divided: the operating system issues a write data instruction, the solid state disk moves data into the DDR after receiving the write instruction, then, available NAND physical addresses (PBAs) are obtained, and then, user data is written into NAND, etc., the inside of the solid state disk is often composed of a plurality of CPU cores, each CPU core is responsible for different tasks, the whole process of user data transfer is jointly completed by a plurality of CPUs in charge of different tasks, the CPU core that moves data to the DDR is referred to herein as the DM (data manager), the CPU core that obtains the available NAND physical address is referred to herein as the WM (write manager), the DM, upon receiving a write request, encapsulates the user data in the data structure of the CCB (cache control block), the CCB is sent to the WM, the WM receives the write request of the CCB by using the PCB (write control block), the WM then starts fetching the available NAND physical addresses and finally writes into the NAND, thus completing the data write operation.
The NAND is composed of a plurality of physical blocks (blocks), the blocks are composed of a plurality of PAGE, the NAND physical characteristics require that the unfilled blocks are filled when the power is cut off again, namely, 4 PAGEs of invalid data are written after the block of valid user data, so as to ensure the safety of NAND stored user data, the rationality and high efficiency of the dummy filling process can influence the power-down efficiency of the solid state disk, especially in abnormal situations, the electrical situation puts even higher demands on the dummy efficiency, since the allocation of NAND physical addresses is taken care of by WM, the following operation of the electrical filler dummy is also managed by the WM, the WM sends a dummy request to the DM, the DM organizes a dummy CCB to send a write request to the WM after receiving the dummy CCB, the WM writes the dummy CCB into the NAND according to a write flow, the WM releases the PCB and sends a dummy write completion back to the DM, and if the WM is not finished, the WM continues to initiate a dummy fill request to the DM, thus requiring the WM and DM to perform multiple information transfers.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a readable medium for filling a dummy in a solid state disk, which can reduce time loss caused by message transmission between modules, use internal resources of a write manager to the maximum extent, greatly improve dummy filling efficiency when powering off, and ensure security of user data stored in the solid state disk.
Based on the above object, an aspect of the embodiments of the present invention provides a method for filling a dummy in a solid state disk, including the following steps:
in response to the detection that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block;
responding to the detected power-off of the solid state disk, and judging whether the power-off of the solid state disk is normal power-off or not;
in response to the fact that the solid state disk is normally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the success of the application of the write control block, and filling the acquired dummy data into the unfilled block by the write manager.
According to an embodiment of the present invention, further comprising:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block.
According to an embodiment of the present invention, in response to a successful application of the write control block, the writing manager filling the obtained dummy data into the unfilled block includes:
and responding to the successful application of the write control block, and storing the source address of the dummy data and the address of the solid state disk to be written into the write control block.
According to an embodiment of the present invention, further comprising:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful.
According to an embodiment of the present invention, further comprising:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager.
In another aspect of the embodiments of the present invention, there is also provided an apparatus for filling dummy in a solid state disk, the apparatus including:
the application module is configured to respond to the detection that the solid state disk is electrified, and the data manager applies for a cache control block and stores dummy data in the applied cache control block;
the judging module is configured to respond to the detection that the solid state disk is powered off and judge whether the solid state disk is powered off normally;
the obtaining module is configured to respond to the fact that the solid state disk is normally powered off, and the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and the writing module is configured to respond to the successful application of the write control block, and the write manager fills the acquired dummy data into the unfilled block.
According to one embodiment of the invention, the write module is further configured to:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block.
According to one embodiment of the invention, the write module is further configured to:
and responding to the successful application of the write control block, and storing the source address of the dummy data and the address of the solid state disk to be written into the write control block.
According to an embodiment of the invention, the obtaining module is further configured to:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful.
According to an embodiment of the invention, the system further comprises an exception module configured to:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager.
In another aspect of an embodiment of the present invention, there is also provided a computer apparatus including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of any one of the above-mentioned methods.
The invention has the following beneficial technical effects: in the method for filling dummy in the solid state disk provided by the embodiment of the invention, in response to the detection that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block; responding to the detected power-off of the solid state disk, and judging whether the power-off of the solid state disk is normal power-off or not; in response to the fact that the solid state disk is normally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block; in response to the successful application of the write control block, the write manager fills the obtained dummy data into the unfilled block, so that the time loss caused by message transmission among modules can be reduced, the internal resources of the write manager can be used to the maximum extent, the dummy filling efficiency during power-off is greatly improved, and the safety of the solid state disk for storing user data is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for filling a solid state drive with dummy according to one embodiment of the present invention;
FIG. 2 is a diagram illustrating an apparatus for filling a solid state drive with dummy according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the present invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for filling a solid state disk with dummy. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, in response to detecting the solid state disk is powered on, the data manager applies for a cache control block and stores dummy data in the applied cache control block.
In the power-on initialization stage of the solid state disk, a DM (data manager) initializes a professional CCB (cache control block) for filling dummy, the CCB is not used for other functions, a DDR address of the dummy data and the dummy data are specified in the CCB, and a WM (write manager) can sense the existence of the dummy data and can acquire the dummy data through the DDR address of the dummy data.
S2, responding to the solid state disk power-off detection, judging whether the solid state disk power-off is normal power-off or not.
The solid state disk power-off comprises power-off under normal conditions, namely normal shutdown, and power-off under abnormal conditions, wherein the time for power supply to fill in dummy data under the abnormal conditions is shorter, so that the dummy data needs to be less than that of the dummy data electrically filled under the normal conditions, and the dummy data can be filled in by incomplete blocks.
S3, in response to determining that the solid state disk is normally powered down, the write manager obtains dummy data stored in the requested cache control block and requests for a write control block.
S4, responding to the success of the write control block application, the write manager fills the acquired dummy data into the unfilled block.
When the dummy data needs to be filled, the WM needs to apply for a PCB (write control block), the source address and the address to be written of the dummy data are recorded in the write control block, PCB resources are released after the dummy data are successfully written, the PCB applied each time uses the same dummy data, namely, each block needing to be filled with the dummy data fills the same dummy data, and the NAND physical address needs to be applied for the PCB. When the power is normally off, each block needs to be filled with dummy data or dummy data of 4 PAGE, and at the moment, if the dummy data filled in the CCB once can not meet the requirement, the steps are circulated until the requirement is met. In some embodiments of the present invention, a write control block may be further reserved in the solid state disk, and the reserved write control block is only used when the user needs to fill dummy data when the user is powered off, so as to ensure that the user can successfully apply for the write control block each time when the user is powered off, so as to better improve the efficiency of filling dummy data when the user is powered off, and ensure the security of the user data stored in the solid state disk.
By the technical scheme, time loss caused by message transmission among modules can be reduced, internal resources of the write manager can be used to the maximum extent, dummy filling efficiency during power-off is greatly improved, and safety of user data stored in the solid state disk is guaranteed.
In a preferred embodiment of the present invention, the method further comprises:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block. Due to the limited resource of writing the PCB, the PCB resource needs to be released in time after the dummy data is filled in each time.
In a preferred embodiment of the present invention, in response to a successful application of the write control block, the writing manager filling the obtained dummy data into the unfilled block includes:
and responding to the successful application of the write control block, and storing the source address of the dummy data and the address of the solid state disk to be written into the write control block.
In a preferred embodiment of the present invention, the method further comprises:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful. If the PCB application fails, the dummy data filling process is stopped, and the dummy data filling process is continued after the written PCB is released.
In a preferred embodiment of the present invention, the method further comprises:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager. The time for filling the dummy data by power supply under the abnormal condition is shorter, so that the time is less than that of filling the dummy data by power supply under the normal condition, the dummy data can be filled in the unfilled blocks, and a small amount of dummy data can be filled in according to the needs.
According to the technical scheme, the CCB is pre-allocated by utilizing a symmetrical mechanism of the processor, the WM can sense the CCB, and the WM circularly sends the interior to fill dummy of the block to process without the participation of a DM module, so that the time loss caused by message transmission between the WM and the DM is reduced, the WM internal resource is used to the maximum extent, the dummy filling efficiency during power-off is greatly improved, and the safety of NAND storage user data is ensured.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for filling a solid state disk with dummy, as shown in fig. 2, the apparatus 200 includes:
the application module is configured to respond to the fact that the solid state disk is electrified, and the data manager applies for a cache control block and stores dummy data in the applied cache control block.
In the power-on initialization stage of the solid state disk, a DM (data manager) initializes a professional CCB (cache control block) for filling dummy, the CCB is not used for other functions, a DDR address of the dummy data and the dummy data are specified in the CCB, and a WM (write manager) can sense the existence of the dummy data and can acquire the dummy data through the DDR address of the dummy data.
And the judging module is configured to respond to the detection of the solid state disk powering down and judge whether the solid state disk powering down is normal powering down.
The solid state disk power-off comprises power-off under normal conditions, namely normal shutdown, and power-off under abnormal conditions, wherein the time for power supply to fill in dummy data under the abnormal conditions is shorter, so that the dummy data needs to be less than that of the dummy data electrically filled under the normal conditions, and the dummy data can be filled in by incomplete blocks.
The obtaining module is configured to respond to the fact that the solid state disk is normally powered off, and the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and the writing module is configured to respond to the successful application of the write control block, and the write manager fills the acquired dummy data into the unfilled block.
When the dummy data needs to be filled, the WM needs to apply for a PCB (write control block), the source address and the address to be written of the dummy data are recorded in the write control block, PCB resources are released after the dummy data are successfully written, the PCB applied each time uses the same dummy data, namely, each block needing to be filled with the dummy data fills the same dummy data, and the NAND physical address needs to be applied for the PCB. When the power is normally off, each block needs to be filled with dummy data or dummy data of 4 PAGE, and at the moment, if the dummy data filled in the CCB once can not meet the requirement, the steps are circulated until the requirement is met. In some embodiments of the present invention, a write control block may be further reserved in the solid state disk, and the reserved write control block is only used when the user needs to fill dummy data when the user is powered off, so as to ensure that the user can successfully apply for the write control block each time when the user is powered off, so as to better improve the efficiency of filling dummy data when the user is powered off, and ensure the security of the user data stored in the solid state disk.
In a preferred embodiment of the present invention, the writing module is further configured to:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block. Due to the limited resource of writing the PCB, the PCB resource needs to be released in time after the dummy data is filled in each time.
In a preferred embodiment of the present invention, the writing module is further configured to:
and responding to the successful application of the write control block, and storing the source address of the dummy data and the address of the solid state disk to be written into the write control block.
In a preferred embodiment of the present invention, the obtaining module is further configured to:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful. If the PCB application fails, the dummy data filling process is stopped, and the dummy data filling process is continued after the written PCB is released.
In a preferred embodiment of the present invention, the system further comprises an exception module configured to:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager. The time for filling the dummy data by power supply under the abnormal condition is shorter, so that the time is less than that of filling the dummy data by power supply under the normal condition, the dummy data can be filled in the unfilled blocks, and a small amount of dummy data can be filled in according to the needs.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor implementing the method of:
in response to the detection that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block;
responding to the detected power-off of the solid state disk, and judging whether the power-off of the solid state disk is normal power-off or not;
in response to the fact that the solid state disk is normally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the success of the application of the write control block, and filling the acquired dummy data into the unfilled block by the write manager.
In a preferred embodiment of the present invention, the method further comprises:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block.
In a preferred embodiment of the present invention, in response to a successful application of the write control block, the writing manager filling the obtained dummy data into the unfilled block includes:
and responding to the successful application of the write control block, and storing the source address of the dummy data and the address of the solid state disk to be written into the write control block.
In a preferred embodiment of the present invention, the method further comprises:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful.
In a preferred embodiment of the present invention, the method further comprises:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager.
In view of the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium stores S31 a computer program that, when executed by a processor, performs the method S32:
in response to the detection that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block;
responding to the detected power-off of the solid state disk, and judging whether the power-off of the solid state disk is normal power-off or not;
in response to the fact that the solid state disk is normally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the success of the application of the write control block, and filling the acquired dummy data into the unfilled block by the write manager.
In a preferred embodiment of the present invention, the method further comprises:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block.
In a preferred embodiment of the present invention, in response to a successful application of the write control block, the writing manager filling the obtained dummy data into the unfilled block includes:
and responding to the successful application of the write control block, and storing the source address of the dummy data and the address of the solid state disk to be written into the write control block.
In a preferred embodiment of the present invention, the method further comprises:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful.
In a preferred embodiment of the present invention, the method further comprises:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for filling dummy in a solid state disk is characterized by comprising the following steps:
in response to the fact that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block;
responding to the detected power-off of the solid state disk, and judging whether the power-off of the solid state disk is normal power-off or not;
in response to the fact that the solid state disk is normally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the success of the application of the write control block, and filling the acquired dummy data into the unfilled block by the write manager.
2. The method of claim 1, further comprising:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block.
3. The method of claim 1, wherein in response to a successful write control block application, the write manager filling the obtained dummy data into the unfilled block comprises:
and responding to the successful application of the write control block, and storing the source address of dummy data and the address of the solid state disk to be written into the write control block.
4. The method of claim 1, further comprising:
in response to a write control block application failure, a write control block is applied via the write manager every time a threshold time elapses until the application is successful.
5. The method of claim 1, further comprising:
in response to the fact that the solid state disk is abnormally powered off, the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and responding to the successful application of the write control block, and filling half of the acquired dummy data into the unfilled block by the write manager.
6. The utility model provides a device of solid state hard drives fill dummy which characterized in that the device includes:
the application module is configured to respond to the fact that the solid state disk is electrified, the data manager applies for a cache control block and stores dummy data in the applied cache control block;
the judging module is configured to respond to the detection that the solid state disk is powered off and judge whether the solid state disk is powered off normally;
the obtaining module is configured to respond to the fact that the solid state disk is determined to be normally powered off, and the write manager obtains dummy data stored in the applied cache control block and applies for a write control block;
and the writing module is configured to respond to the successful application of the writing control block, and the writing manager fills the acquired dummy data into the unfilled block.
7. The apparatus of claim 6, wherein the write module is further configured to:
and releasing the write control block in response to the completion of the write manager filling the acquired dummy data into the unfilled block.
8. The apparatus of claim 6, wherein the write module is further configured to:
and responding to the successful application of the write control block, and storing the source address of dummy data and the address of the solid state disk to be written into the write control block.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202110721830.3A 2021-06-28 2021-06-28 Method, device and equipment for filling dummy into solid state disk and readable medium Active CN113625948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110721830.3A CN113625948B (en) 2021-06-28 2021-06-28 Method, device and equipment for filling dummy into solid state disk and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110721830.3A CN113625948B (en) 2021-06-28 2021-06-28 Method, device and equipment for filling dummy into solid state disk and readable medium

Publications (2)

Publication Number Publication Date
CN113625948A true CN113625948A (en) 2021-11-09
CN113625948B CN113625948B (en) 2023-08-18

Family

ID=78378484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110721830.3A Active CN113625948B (en) 2021-06-28 2021-06-28 Method, device and equipment for filling dummy into solid state disk and readable medium

Country Status (1)

Country Link
CN (1) CN113625948B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265552A (en) * 2021-12-06 2022-04-01 北京得瑞领新科技有限公司 Method and device for processing write block by solid state disk, storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190163409A1 (en) * 2017-10-27 2019-05-30 EMC IP Holding Company LLC Methods and devices for writing data in a disk array in storage system
CN110647476A (en) * 2019-09-29 2020-01-03 苏州浪潮智能科技有限公司 Method, device and equipment for writing data in solid state disk and storage medium
CN111736765A (en) * 2020-05-28 2020-10-02 苏州浪潮智能科技有限公司 Method, device and medium for supervising data block state

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190163409A1 (en) * 2017-10-27 2019-05-30 EMC IP Holding Company LLC Methods and devices for writing data in a disk array in storage system
CN110647476A (en) * 2019-09-29 2020-01-03 苏州浪潮智能科技有限公司 Method, device and equipment for writing data in solid state disk and storage medium
CN111736765A (en) * 2020-05-28 2020-10-02 苏州浪潮智能科技有限公司 Method, device and medium for supervising data block state

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265552A (en) * 2021-12-06 2022-04-01 北京得瑞领新科技有限公司 Method and device for processing write block by solid state disk, storage medium and equipment

Also Published As

Publication number Publication date
CN113625948B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN111367659B (en) Resource management method, equipment and medium for nodes in Kubernetes
US11379155B2 (en) System and method for flash storage management using multiple open page stripes
US10789170B2 (en) Storage management method, electronic device and computer readable medium
US20220334733A1 (en) Data restoration method and related device
CN111581126A (en) Method, device, equipment and medium for saving log data based on SSD
CN111737212A (en) Method and equipment for improving performance of distributed file system
CN107301021B (en) Method and device for accelerating LUN (logical Unit number) by utilizing SSD (solid State disk) cache
CN111240879B (en) SAS card firmware log collection method, system, device and storage medium
CN113625948A (en) Method, device and equipment for filling dummy in solid state disk and readable medium
CN107102879A (en) Information is sent and firmware upgrade method, device, terminal, equipment and storage medium
CN104077250B (en) A kind of connection processing method and device of intelligent terminal and storage equipment
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN110727534B (en) Method, equipment and storage medium for repairing file system
CN117591009A (en) Data management method, storage device and server
CN113535666A (en) Data writing method and device, database system and storage medium
WO2020223862A1 (en) Mounting processing method and apparatus, electronic device, and computer readable storage medium
CN113377278A (en) Solid state disk, garbage recycling and controlling method, equipment, system and storage medium
US9244693B2 (en) System and method for booting multiple servers from snapshots of an operating system installation image while reducing access to unmodified portions of the installation image and reducing latencies between server ports
CN113687798A (en) Method, device and equipment for controlling data reconstruction and readable medium
CN108121580A (en) The implementation method and device of application notification service
CN105867839A (en) Data processing method, storage equipment and electronic equipment
US20210349644A1 (en) Device for managing distributed storage resources and method for managing such storage resources
CN106331036B (en) Server control method and device
CN102541699B (en) Failover information management device, failover control method and storage processing device
CN117591036B (en) Bit occupation data filling method and system based on firmware and chip microkernel

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