CN116679880A - Optimization processing method and device for writing large file of solid state disk and computer equipment - Google Patents
Optimization processing method and device for writing large file of solid state disk and computer equipment Download PDFInfo
- Publication number
- CN116679880A CN116679880A CN202310676018.2A CN202310676018A CN116679880A CN 116679880 A CN116679880 A CN 116679880A CN 202310676018 A CN202310676018 A CN 202310676018A CN 116679880 A CN116679880 A CN 116679880A
- Authority
- CN
- China
- Prior art keywords
- writing
- large file
- point
- writing point
- command
- 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.)
- Pending
Links
- 239000007787 solid Substances 0.000 title claims abstract description 33
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000005457 optimization Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 14
- 230000003321 amplification Effects 0.000 abstract description 6
- 238000003199 nucleic acid amplification method Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 8
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0616—Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to an optimization processing method, a device, computer equipment and a storage medium for writing a large file in a solid state disk, wherein the method comprises the following steps: judging whether the current writing point is in an SLC cache area or not; if the current writing point is in the SLC cache area, acquiring a writing command of the SSD; judging whether a large file writing point exists currently or not; if the large file writing point exists currently, continuously judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point, and if not, writing into the original user data writing point; if the large file writing point does not exist at present, continuing to judge whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point. The application can avoid extra write amplification under the scene that the large file and other writing exist simultaneously, thereby improving the performance and the service life of the SSD.
Description
Technical Field
The application relates to the technical field of solid state disks, in particular to an optimization processing method and device for writing large files in a solid state disk, computer equipment and a storage medium.
Background
SSDs (solid state drives) and their widespread use in various applications, have now gradually replaced traditional HDDs (mechanical hard drives) in the PC market, providing users with a better experience in terms of reliability and performance. Currently, the mainstream SSD manufacturers all use TLC (Triple Level Cell) as a storage medium. Meanwhile, in order to improve the read-write performance, a part of TLC NAND is set to SLC (Single Level Cell) mode and used as SLC Cache (SLC Cache). After being set to SLC mode, NAND capacity is only one third of TLC mode, but has higher read-write performance. The reading performance of SLC mode is generally more than 2 times of that of TLC mode.
In the prior art, because the space of the SLC Cache is limited, the write-in of the SLC Cache is generally switched to the write-in TLC area after the large file is identified, so that the large file data is prevented from being moved from the SLC Cache to the TLC area, and extra write amplification is caused, thereby influencing the performance and the service life of the solid state disk. The general detection mode is to detect an external input command, and if the external input command is continuous writing, the external input command enters a TLC writing state. However, in the large file writing state, once other writing exists at the same time, the traditional scheme can consider that the large file writing state is ended, and writing to the SLC cache is changed, so that subsequent extra writing amplification is caused, and further the performance and the service life of the solid state disk are affected.
Disclosure of Invention
Based on the foregoing, it is necessary to provide an optimization processing method, an apparatus, a computer device and a storage medium for writing a large file in a solid state disk.
An optimization processing method for writing a large file in a solid state disk, the method comprises the following steps:
judging whether the current writing point is in an SLC cache area or not;
if the current writing point is in the SLC cache area, acquiring a writing command of the SSD;
judging whether a large file writing point exists currently or not;
if the large file writing point exists currently, continuously judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point, and if not, writing into the original user data writing point;
if the large file writing point does not exist at present, continuing to judge whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point.
In one embodiment, the step of creating a large file write point further includes:
the start of the large file writing point is a start logic address of a writing command for triggering the creation of the large file writing point, and the range size of the large file writing point can be customized.
In one embodiment, after the step of writing the write command to the large file write point, the method further includes:
checking whether the writing quantity of the writing point of the large file reaches the range size of the writing point, and closing the writing point of the large file if the writing quantity of the writing point of the large file reaches the range size of the writing point.
In one embodiment, the method further comprises:
comparing the current time with the latest writing time of the writing point of the big file at regular time, and judging whether the time difference exceeds a preset threshold value;
and if the time difference value exceeds the threshold value, closing the large file writing point, and judging that the large file writing point does not exist later, and if the time difference value does not exceed the threshold value, not processing.
An optimized processing device for writing a solid state disk large file, the device comprising:
the first judging module is used for judging whether the current writing point is in the SLC cache area or not;
the command acquisition module is used for acquiring a write command of the SSD if the current write point is in the SLC cache area;
the second judging module is used for judging whether a large file writing point exists currently or not;
the third judging module is used for continuously judging whether the logic address of the writing request belongs to the range of the large file writing point if the large file writing point exists currently, writing the writing command into the large file writing point if the logic address belongs to the range of the large file writing point, and writing the writing command into the original user data writing point if the logic address does not belong to the range of the large file writing point;
and the fourth judging module is used for continuously judging whether the current writing command belongs to continuous large file writing if the large file writing point does not exist currently, creating the large file writing point if the large file writing point belongs to the continuous large file writing command, and writing the large file writing point to the original user data writing point if the large file writing point does not belong to the continuous large file writing command.
In one embodiment, the fourth determining module is further configured to:
the start of the large file writing point is a start logic address of a writing command for triggering the creation of the large file writing point, and the range size of the large file writing point can be customized.
In one embodiment, the apparatus further comprises an inspection module for:
checking whether the writing quantity of the writing point of the large file reaches the range size of the writing point, and closing the writing point of the large file if the writing quantity of the writing point of the large file reaches the range size of the writing point.
In one embodiment, the apparatus further comprises a timeout shutdown module for:
comparing the current time with the latest writing time of the writing point of the big file at regular time, and judging whether the time difference exceeds a preset threshold value;
and if the time difference value exceeds the threshold value, closing the large file writing point, and judging that the large file writing point does not exist later, and if the time difference value does not exceed the threshold value, not processing.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the methods described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the methods described above.
According to the optimization processing method, the device, the computer equipment and the storage medium for writing the large file of the solid state disk, whether the large file writing point exists currently or not is judged; if the large file writing point exists currently, continuously judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point, and if not, writing into the original user data writing point; if the large file writing point does not exist at present, continuing to judge whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point. According to the application, the large file can be directly written into the TLC area under the scene that the large file and other writing exist simultaneously, so that extra writing amplification under the scene is avoided, and further the performance and the service life of the SSD are improved.
Drawings
FIG. 1 is a flow diagram of a conventional SSD large file write process;
FIG. 2 is a flow chart of an optimization processing method for writing a large file into a solid state disk in one embodiment;
FIG. 3 is a flow diagram of an optimized SSD big file write process in one embodiment;
FIG. 4 is a flow diagram of a SSD large file write point timeout shutdown in one embodiment;
FIG. 5 is a block diagram of an optimization processing device for writing a large file to a solid state disk in one embodiment;
FIG. 6 is a block diagram of an apparatus for optimizing writing of a solid state disk file in another embodiment;
FIG. 7 is a block diagram of an apparatus for optimizing writing of a solid state disk large file according to still another embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As shown in fig. 1, which is a flow chart of the conventional SSD big file writing process, first, it is determined whether the current writing point is in the SLC cache area, if not, the current user data writing point (TLC area) is directly written. If the current writing point is the SLC cache area, the writing command of the SSD is obtained, and whether the writing command is a continuous large file writing command is judged. (one implementation of the judgment condition is that the command size is 128KB and the logical addresses of a plurality of previous writing commands are continuous.) if the command is not a continuous large file writing command, the command is directly written into the current user data writing point (SLC cache area). If the large file write command is continued, the user data write point is switched to normal (TLC zone).
Therefore, in the conventional scheme, when the large file is written, once other writing is performed at the same time, the writing point is switched back to the SLC cache area after the large file is judged to be written.
Based on the above, the scheme provides an optimization processing method for writing the large file of the solid state disk, which aims to avoid the extra write amplification generated in the scene.
In one embodiment, as shown in fig. 2, there is provided a method for optimizing writing of a solid state disk large file, the method comprising:
step 202, judging whether the current writing point is in an SLC cache area;
step 204, if the current writing point is in the SLC cache area, obtaining a writing command of the SSD;
step 206, judging whether a large file writing point exists currently;
step 208, if there is a large file writing point, continuing to judge whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point, and if not, writing into the original user data writing point;
step 210, if there is no large file writing point, continuing to determine whether the current writing command belongs to continuous large file writing, if so, creating a large file writing point, and if not, writing to the original user data writing point.
In this embodiment, an optimization processing method for writing a large file in a solid state disk is provided, specifically, when an SSD performs user writing of user data into an SLC cache area, write commands of the SSD are checked one by one, and whether a large file writing point exists currently is determined.
If the large file writing point exists currently, judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point (namely, TLC area), and if not, writing into the original user data writing point (namely, SLC cache area).
If the large file writing point does not exist currently, judging whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point (namely, SLC cache area).
In one embodiment, the step of creating a large file write point further comprises: the start of the large file write point is a start logical address of a write command triggering creation of the large file write point, and the range size of the large file write point can be customized.
The start of the range is the starting logical address of the write command triggering the creation of the large file write point, and the size of the range can be customized. Specifically, for example, a fixed value, or the available size of the physical block allocated by the write point.
In the above embodiment, by judging whether or not there is a large file writing point already at present; if the large file writing point exists currently, continuously judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point, and if not, writing into the original user data writing point; if the large file writing point does not exist at present, continuing to judge whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point. According to the scheme, the large file can be directly written into the TLC area under the scene that the large file and other writing exist simultaneously, so that extra writing amplification under the scene is avoided, and further the performance and the service life of the SSD are improved.
In one embodiment, the step of writing the write command to the large file write point further comprises, after:
checking whether the writing quantity of the writing point of the large file reaches the range size of the writing point, and closing the writing point of the large file if the writing quantity of the writing point of the large file reaches the range size of the writing point.
Specifically, referring to the flowchart of the optimized SSD big file writing process shown in fig. 3, the method includes the following steps:
and 3.1, judging whether the current writing point is in the SLC cache area, if not, directly writing the current user data writing point (TLC area).
And 3.2, if the current writing point is the SLC cache area, acquiring a writing command of the SSD, and judging whether the writing point of the large file exists currently or not.
And 3.3, if the large file writing point exists currently, judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point (namely, TLC area), and if not, writing into the original user data writing point (namely, SLC cache area).
And 3.4, if the large file writing point does not exist currently, judging whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point (namely, SLC cache area).
3.5, creating a large file write point, the start of the range is the start logical address of the write command triggering the creation of the large file write point, and the size of the range can be customized, for example, a fixed value, or the available size of the physical block allocated by the write point.
And 3.6, after writing to the large file writing point, checking whether the writing quantity of the large file writing point is equal to the range size of the writing point, and if so, closing the large file writing point.
In one embodiment, the method further comprises:
comparing the current time with the latest writing time of the writing point of the big file at regular time, and judging whether the time difference exceeds a preset threshold value;
and if the time difference value exceeds the threshold value, closing the large file writing point, and judging that the large file writing point does not exist later, and if the time difference value does not exceed the threshold value, not processing.
Specifically, as shown in fig. 4, a flow chart of the overtime closing of the writing point of the SSD big file includes the following steps:
and comparing the current time with the latest writing time of the large file writing point at regular time, if the time difference exceeds a threshold value, considering that the large file writing is finished, closing the large file writing point, and if the time difference does not exceed the threshold value, performing no processing.
In this embodiment, if the writing quantity of the writing point of the large file is equal to the size of the writing point range, or the writing command belonging to the writing point of the large file is not received within a certain time, the writing of the large file is considered to be finished, and the writing point of the large file is closed.
It should be understood that, although the steps in the flowcharts of fig. 1-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided an optimizing processing apparatus 500 for writing a large file in a solid state disk, the apparatus including:
a first determining module 501, configured to determine whether a current writing point is in an SLC cache area;
the command obtaining module 502 is configured to obtain a write command of the SSD if the current write point is in the SLC cache area;
a second judging module 503, configured to judge whether a large file writing point exists currently;
a third judging module 504, configured to continuously judge whether a logical address of a write request belongs to a range of a large file write point if a large file write point already exists currently, write a write command to the large file write point if the logical address belongs to the range of the large file write point, and write the write command to an original user data write point if the logical address does not belong to the range of the large file write point;
and the fourth judging module 505 is configured to continuously judge whether the current writing command belongs to continuous large file writing if the large file writing point does not exist currently, create the large file writing point if the current writing command belongs to continuous large file writing, and write to the original user data writing point if the current writing command does not belong to continuous large file writing.
In one embodiment, the fourth determining module 505 is further configured to:
the start of the large file writing point is a start logic address of a writing command for triggering the creation of the large file writing point, and the range size of the large file writing point can be customized.
In one embodiment, as shown in fig. 6, there is provided an optimizing processing apparatus 500 for writing a solid state hard disk large file, where the apparatus further includes a checking module 506, where the checking module is configured to:
checking whether the writing quantity of the writing point of the large file reaches the range size of the writing point, and closing the writing point of the large file if the writing quantity of the writing point of the large file reaches the range size of the writing point.
In one embodiment, as shown in fig. 7, there is provided an optimizing processing apparatus 500 for writing a solid state hard disk large file, where the apparatus further includes a timeout closing module 507, where the timeout closing module is configured to:
comparing the current time with the latest writing time of the writing point of the big file at regular time, and judging whether the time difference exceeds a preset threshold value;
and if the time difference value exceeds the threshold value, closing the large file writing point, and judging that the large file writing point does not exist later, and if the time difference value does not exceed the threshold value, not processing.
For specific limitation of the optimizing processing device for writing the solid state disk large file, reference may be made to the limitation of the optimizing processing method for writing the solid state disk large file in the above description, and the description is omitted here.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize an optimized processing method for writing the solid state disk large file.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method embodiments above when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the above method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described embodiment methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (10)
1. An optimization processing method for writing a large file in a solid state disk, the method comprises the following steps:
judging whether the current writing point is in an SLC cache area or not;
if the current writing point is in the SLC cache area, acquiring a writing command of the SSD;
judging whether a large file writing point exists currently or not;
if the large file writing point exists currently, continuously judging whether the logic address of the writing request belongs to the large file writing point range, if so, writing the writing command into the large file writing point, and if not, writing into the original user data writing point;
if the large file writing point does not exist at present, continuing to judge whether the current writing command belongs to continuous large file writing, if so, creating the large file writing point, and if not, writing to the original user data writing point.
2. The method for optimizing writing of a large file to a solid state disk according to claim 1, wherein the step of creating a large file writing point further comprises:
the start of the large file writing point is a start logic address of a writing command for triggering the creation of the large file writing point, and the range size of the large file writing point can be customized.
3. The method for optimizing writing of a solid state disk large file according to claim 2, further comprising, after the step of writing the write command to the large file writing point:
checking whether the writing quantity of the writing point of the large file reaches the range size of the writing point, and closing the writing point of the large file if the writing quantity of the writing point of the large file reaches the range size of the writing point.
4. The method for optimizing writing of a solid state disk large file according to any one of claims 1 to 3, wherein the method further comprises:
comparing the current time with the latest writing time of the writing point of the big file at regular time, and judging whether the time difference exceeds a preset threshold value;
and if the time difference value exceeds the threshold value, closing the large file writing point, and judging that the large file writing point does not exist later, and if the time difference value does not exceed the threshold value, not processing.
5. An optimizing processing device for writing a large file of a solid state disk, which is characterized by comprising the following components:
the first judging module is used for judging whether the current writing point is in the SLC cache area or not;
the command acquisition module is used for acquiring a write command of the SSD if the current write point is in the SLC cache area;
the second judging module is used for judging whether a large file writing point exists currently or not;
the third judging module is used for continuously judging whether the logic address of the writing request belongs to the range of the large file writing point if the large file writing point exists currently, writing the writing command into the large file writing point if the logic address belongs to the range of the large file writing point, and writing the writing command into the original user data writing point if the logic address does not belong to the range of the large file writing point;
and the fourth judging module is used for continuously judging whether the current writing command belongs to continuous large file writing if the large file writing point does not exist currently, creating the large file writing point if the large file writing point belongs to the continuous large file writing command, and writing the large file writing point to the original user data writing point if the large file writing point does not belong to the continuous large file writing command.
6. The optimizing processing device for writing a large file to a solid state disk according to claim 5, wherein the fourth judging module is further configured to:
the start of the large file writing point is a start logic address of a writing command for triggering the creation of the large file writing point, and the range size of the large file writing point can be customized.
7. The device for optimizing writing of a solid state disk large file according to claim 6, further comprising a checking module for:
checking whether the writing quantity of the writing point of the large file reaches the range size of the writing point, and closing the writing point of the large file if the writing quantity of the writing point of the large file reaches the range size of the writing point.
8. The apparatus for optimizing writing of a solid state hard disk large file according to any one of claims 5 to 7, wherein the apparatus further comprises a timeout closing module configured to:
comparing the current time with the latest writing time of the writing point of the big file at regular time, and judging whether the time difference exceeds a preset threshold value;
and if the time difference value exceeds the threshold value, closing the large file writing point, and judging that the large file writing point does not exist later, and if the time difference value does not exceed the threshold value, not processing.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310676018.2A CN116679880A (en) | 2023-06-08 | 2023-06-08 | Optimization processing method and device for writing large file of solid state disk and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310676018.2A CN116679880A (en) | 2023-06-08 | 2023-06-08 | Optimization processing method and device for writing large file of solid state disk and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116679880A true CN116679880A (en) | 2023-09-01 |
Family
ID=87785108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310676018.2A Pending CN116679880A (en) | 2023-06-08 | 2023-06-08 | Optimization processing method and device for writing large file of solid state disk and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116679880A (en) |
-
2023
- 2023-06-08 CN CN202310676018.2A patent/CN116679880A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10310930B2 (en) | Solid state disk using method and apparatus | |
CN110597457A (en) | Solid state disk, control method of solid state disk and controller | |
CN114253483B (en) | Command-based write cache management method and device, computer equipment and storage medium | |
CN111026678B (en) | Cache design method and device based on solid state disk and computer equipment | |
US20110107056A1 (en) | Method for determining data correlation and a data processing method for a memory | |
US8527690B2 (en) | Optimization of non-volatile solid-state memory by moving data based on data generation and memory wear | |
CN117234879A (en) | Cold and hot data identification test method and device based on solid state disk | |
CN113010111A (en) | SSD access acceleration method and device, computer equipment and storage medium | |
CN116679880A (en) | Optimization processing method and device for writing large file of solid state disk and computer equipment | |
US20190163534A1 (en) | Memory system and operating method thereof | |
US11169926B2 (en) | Memory system and memory controller capable of minimizing latency required to complete an operation within a limited powr budget and operating method of memory controller | |
CN110750215A (en) | Method and device for improving random reading performance of solid state disk and computer equipment | |
CN112433959A (en) | Method and device for realizing data storage processing, computer storage medium and terminal | |
CN114327274B (en) | Mapping table loading checking method and device based on solid state disk and computer equipment | |
CN114185620B (en) | Method and device for realizing acceleration of SSD firmware loading, computer equipment and storage medium | |
CN114047880B (en) | NAND write power consumption optimization method and device for multi-Pass programming and computer equipment | |
CN117687575A (en) | Optimization processing method and device for QLC solid state disk open data block | |
US11899976B2 (en) | Solid state storage device and write control method with different write modes therof | |
CN118035001A (en) | TRIM data power-on recovery method and device based on QLC solid state disk | |
US20230305952A1 (en) | Memory system and operating method of a controller of the memory system | |
CN116974485A (en) | RAID (redundant array of independent disks) Party temporary storage method and device based on HMB (hidden Markov random field) and computer equipment | |
CN117251108A (en) | SLC cache allocation method and device based on solid state disk and computer equipment | |
CN115509447A (en) | Method and device for realizing dynamic SLC mechanism of solid state disk and computer equipment | |
CN117785049A (en) | Method and device for optimizing Write Zero command under abnormal power failure | |
CN116013398A (en) | Nand Flash health degree detection method and device and computer equipment |
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 |