Method, device, equipment and medium for saving log data based on SSD

文档序号:1270906 发布日期:2020-08-25 浏览:25次 中文

阅读说明:本技术 一种基于ssd的日志数据保存方法、装置、设备和介质 (Method, device, equipment and medium for saving log data based on SSD ) 是由 赵宝林 于 2020-05-08 设计创作,主要内容包括:本发明公开了一种基于SSD的日志数据保存方法,包括:将日志数据中运行态的元数据配置为在SSD的内存物理地址中连续存放;为内存物理地址中元数据连续存放的区域划分预设数量的Buffer缓冲区,使所有的Buffer缓冲区具有预设循环顺序;按照预设循环顺序存入读写过程中产生的元数据的更新数据;定义日志数据的内存逻辑地址与物理地址的映射表;响应于一个Buffer缓冲区存满,对Buffer缓冲区中的数据执行NAND写操作,并对SSD中未写入NAND的元数据执行预设长度的NAND写操作;响应于NAND写操作完成,将相应的Buffer缓冲区排在预设循环顺序最后等待存储元数据的更新数据。本发明还公开了一种装置、设备和介质。本发明提出的方案可以减少元数据保存的复杂性。(The invention discloses a log data storage method based on SSD, which comprises the following steps: configuring running-state metadata in the log data to be continuously stored in a memory physical address of the SSD; dividing a preset number of Buffer buffers for areas where metadata in physical addresses of the memory are continuously stored, and enabling all the Buffer buffers to have a preset circulation sequence; storing the updating data of the metadata generated in the reading and writing process according to a preset cyclic sequence; defining a mapping table of a memory logical address and a physical address of log data; responding to the fact that one Buffer area is full, performing NAND writing operation on data in the Buffer area, and performing NAND writing operation with preset length on metadata which is not written into NAND in the SSD; and in response to the completion of the NAND writing operation, arranging the corresponding Buffer in a preset circulation sequence to wait for the storage of the updating data of the metadata. The invention also discloses a device, equipment and a medium. The scheme provided by the invention can reduce the complexity of metadata storage.)

1. A log data saving method based on SSD is characterized by comprising the following steps:

configuring running-state metadata in the log data to be continuously stored in a memory physical address of the SSD;

dividing a preset number of Buffer buffers for the area where the metadata are continuously stored in the physical memory address, so that all the Buffer buffers have a preset cycle sequence;

storing the updating data of the metadata generated in the reading and writing process according to the preset cyclic sequence;

defining a mapping table of a memory logical address and the physical address of log data;

responding to the fullness of one Buffer, performing NAND write operation on data in the Buffer, and performing NAND write operation with preset length on the metadata which is not written with the NAND in the SSD;

and in response to the NAND writing operation is completed, arranging the corresponding Buffer at the last of the preset cycle sequence to wait for storing the updating data of the metadata.

2. The SSD-based log data saving method of claim 1, the method further comprising:

responding to a received memory access request, and judging whether the memory access request is a log access request or not;

and responding to the judgment that the memory access request is a log access request, accessing the mapping table, converting the address of the access request into the physical address, and returning data accessed according to the converted physical address to an accessor.

3. The SSD-based log data saving method of claim 1, the method further comprising:

checking whether a conflict exists in response to receiving the address mapping modification request;

in response to a conflict, the conflicting mapping item is looked up and brought back to the SSD.

4. The SSD-based log data saving method of claim 1, the method further comprising:

in a power-on process, the SSD performs a bad block scanning operation on the NAND;

and according to the bad block scanning operation, selecting a plurality of good blocks in the NAND as alternative replacement blocks when the bad blocks appear in the RAID group.

5. The SSD-based log data saving method of claim 1, wherein the performing a NAND write operation on data in the Buffer in response to one of the Buffer buffers being full, and performing the NAND write operation of a preset length on the metadata in the SSD that is not written with the NAND further comprises:

and configuring the Buffer area and the preset length as positive integer multiples of the NAND minimum writing unit.

6. An SSD-based log data retention apparatus, the apparatus comprising:

the continuous storage module is configured to configure running-state metadata in the log data to be continuously stored in a memory physical address of the SSD;

a Buffer configuration module, configured to divide a preset number of Buffer buffers for an area where the metadata is continuously stored in the physical address of the memory, so that all the Buffer buffers have a preset cycle sequence;

the updating data storage module is configured to store the updating data of the metadata generated in the reading and writing process according to the preset cyclic sequence;

the mapping module is configured to define a mapping table of the memory logical address and the physical address of the log data;

a NAND write operation module configured to, in response to one of the Buffer buffers being full, perform a NAND write operation on data in the Buffer and perform the NAND write operation of a preset length on the metadata that is not written in the NAND in the SSD;

a sorting module configured to, in response to completion of the NAND write operation, arrange the corresponding Buffer at the end of the preset loop sequence waiting for storage of the update data of the metadata.

7. The SSD-based log data saving device of claim 6, wherein the device further comprises a request determining module configured to:

responding to a received memory access request, and judging whether the memory access request is a log access request or not;

and responding to the judgment that the memory access request is a log access request, accessing the mapping table, converting the address of the access request into the physical address, and returning data accessed according to the converted physical address to an accessor.

8. The SSD-based log data retention apparatus of claim 6, further comprising a conflict checking module configured to:

checking whether a conflict exists in response to receiving the address mapping modification request;

in response to a conflict, the conflicting mapping item is looked up and brought back to the SSD.

9. A computer device, comprising:

at least one processor; and

memory storing a computer program operable on the processor, wherein the processor, when executing the program, performs the method of any of claims 1-5.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.

Technical Field

The present invention relates to the field of computer storage technologies, and in particular, to a method, an apparatus, a device, and a medium for saving log data based on an SSD.

Background

With the development and wide application of technologies such as internet, cloud computing, internet of things, big data and the like, in human life, massive data can be generated at any time and any time, the massive data needs to be processed and stored, and the high-speed development of the information technology puts higher requirements on the performance of a storage system. Solid state disks are widely used because of their fast read/write speed and low energy consumption.

The current solid state disk is more and more widely used, the requirements on the performance and the capacity of the solid state disk are higher, and with the development of a flash memory technology and the improvement of the performance of a main control chip, the related technology of the solid state disk is continuously updated, so that the application requirements can be met as far as possible.

The current scene of solid state disk use becomes more and more complicated, and the requirement to solid state disk is also more and more high, no matter from performance or stability, all has strict standard, and the most important one side is exactly the uniformity of performance, namely, in the use of solid state disk, is the sudden change that does not allow read-write performance, and this will lead to the state of solid state disk that application can't be foreseen to bring unnecessary trouble for the operation of application. How to ensure the consistency of the performance of the solid state disk becomes an important issue for solid state disk firmware research.

In the current design of the Solid State disk, due to the inherent characteristics of the FTL (Flash Translation Layer), the increase of the physical capacity is accompanied by the increase of the demand for other hardware units, and in the firmware design of the SSD, how to manage the metadata to ensure the normal operation of the SSD (Solid State Drive) becomes a key problem in the SSD firmware design.

In a general SSD firmware implementation, the Journal data is basically stored in a manner of adding an update amount to an original amount, and is stored in a multi-backup manner, and is stored separately for different metadata types, which may result in better security, but according to the NAND characteristics, the stability of an SLC (Single Level Cell, Single layer Cell storage technology) block is much higher than that of a TLC (triple Level Cell, three layer Cell storage technology) block, which has well ensured data correctness on this aspect, so the multi-backup and type-distinguishing manner not only causes resource waste, but also increases the complexity of firmware design.

Disclosure of Invention

In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, a device and a medium for saving SSD-based log data (journal data).

Based on the above purpose, an aspect of the present invention provides a log data saving method based on SSD, which includes:

configuring running-state metadata in the log data to be continuously stored in a memory physical address of the SSD;

dividing a preset number of Buffer buffers for areas where metadata in physical addresses of the memory are continuously stored, and enabling all the Buffer buffers to have a preset circulation sequence;

storing the updating data of the metadata generated in the reading and writing process according to a preset cyclic sequence;

defining a mapping table of a memory logical address and a physical address of log data;

responding to the fact that one Buffer area is full, performing NAND writing operation on data in the Buffer area, and performing NAND writing operation with preset length on metadata which is not written into NAND in the SSD;

and in response to the completion of the NAND writing operation, arranging the corresponding Buffer in a preset circulation sequence to wait for the storage of the updating data of the metadata.

In some embodiments of the SSD-based log data saving method of the invention, the method further comprises:

responding to the received memory access request, and judging whether the memory access request is a log access request or not;

and responding to the judgment that the memory access request is a log access request, accessing the mapping table, converting the address of the access request into a physical address, and returning data accessed according to the converted physical address to an accessor.

In some embodiments of the SSD-based log data saving method of the invention, the method further comprises:

checking whether a conflict exists in response to receiving the address mapping modification request;

in response to a conflict, the conflicting mapping entry is looked up and brought back to the SSD.

In some embodiments of the SSD-based log data saving method of the invention, the method further comprises:

in the power-on process, the SSD executes bad block scanning operation on the NAND;

and according to the bad block scanning operation, selecting good blocks in a plurality of NANDs as alternative replacement blocks when the bad blocks appear in the RAID group.

In some embodiments of the SSD-based log data saving method of the present invention, in response to one Buffer being full, performing a NAND write operation on data in the Buffer, and performing a NAND write operation of a preset length on metadata that is not written with a NAND in the SSD further includes:

the Buffer and the preset length are configured to be positive integer multiples of the NAND minimum write unit.

In another aspect of the embodiments of the present invention, there is also provided a log data storage device based on an SSD, including:

the continuous storage module is configured to configure the running-state metadata in the log data to be continuously stored in the memory physical address of the SSD;

the Buffer configuration module is configured to divide a preset number of Buffer buffers for areas where metadata in the physical address of the memory is continuously stored, so that all the Buffer buffers have a preset cycle sequence;

the updating data storage module is configured to store updating data of the metadata generated in the reading and writing process according to a preset cyclic sequence;

the mapping module is configured to define a mapping table of memory logical addresses and physical addresses of log data;

the NAND writing operation module is configured to respond to the fact that one Buffer is full, perform NAND writing operation on data in the Buffer, and perform NAND writing operation with preset length on metadata which is not written into NAND in the SSD;

a sorting module configured to, in response to completion of the NAND write operation, sort the corresponding Buffer buffers in a preset loop order to wait for the updated data of the storage metadata at the end.

In some embodiments of the SSD-based log data storage device of the present invention, the device further comprises a request judging module configured to:

responding to the received memory access request, and judging whether the memory access request is a log access request or not;

and responding to the judgment that the memory access request is a log access request, accessing the mapping table, converting the address of the access request into a physical address, and returning data accessed according to the converted physical address to an accessor.

In some embodiments of the SSD-based log data retention device of the present invention, the device further comprises a conflict checking module configured to:

checking whether a conflict exists in response to receiving the address mapping modification request;

in response to a conflict, the conflicting mapping entry is looked up and brought back to the SSD.

In another aspect of the embodiments of the present invention, there is also provided a computer device, including:

at least one processor; and

and the memory is used for storing a computer program which can run on the processor, and the processor executes the log data saving method based on the SSD when executing the program.

In another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored, and is characterized in that when being executed by a processor, the computer program executes the foregoing SSD-based log data saving method.

The invention has at least the following beneficial technical effects: the invention adopts a uniform metadata storage mode, reduces the complexity of metadata storage and the complexity of metadata recovery, greatly reduces the difficulty of SSD firmware design, improves the high-tech universality and maintainability of modules, reduces the consumption of NAND resources and reduces the cost.

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 shows a schematic block diagram of an embodiment of an SSD-based log data retention method in accordance with the present invention;

FIG. 2 is a diagram illustrating a data storage method in a DDR according to the prior art;

FIG. 3 is a schematic diagram illustrating a metadata continuous storage manner in DDR according to an embodiment of the SSD-based log data saving method of the present invention;

FIG. 4 is a schematic diagram illustrating a storage manner in which metadata is continuously stored and metadata types are not distinguished in a DDR according to an embodiment of the SSD-based log data saving method of the present invention;

FIG. 5 is a diagram illustrating a storage manner of update data in a DDR according to the prior art;

FIG. 6 is a schematic diagram illustrating a Buffer partition manner according to an embodiment of the SSD-based log data saving method of the present invention;

FIG. 7 is a schematic diagram illustrating the manner of NAND writing according to an embodiment of the SSD-based log data retention method of the present invention;

FIG. 8 is a schematic diagram illustrating an address mapping state of an embodiment of an SSD-based log data retention method according to the present invention;

FIG. 9 shows a flowchart of determining an access request according to an embodiment of an SSD-based log data retention method of the present invention;

fig. 10 shows a flowchart of modifying DDR address mapping according to an embodiment of the SSD-based log data saving method 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.

It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it is understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted.

In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a log data saving method based on SSD. Fig. 1 is a schematic diagram illustrating an embodiment of an SSD-based log data saving method according to the present invention. In the embodiment shown in fig. 1, the method comprises at least the following steps:

s100, configuring running-state metadata in log data to be continuously stored in a memory physical address of the SSD;

s200, dividing a preset number of Buffer buffers for areas where metadata in the physical memory address are continuously stored, and enabling all the Buffer buffers to have a preset circulation sequence;

s300, storing the updating data of the metadata generated in the reading and writing process according to a preset circulation sequence;

s400, defining a mapping table of a memory logical address and a physical address of log data;

s500, responding to the fact that one Buffer area is full, performing NAND writing operation on data in the Buffer area, and performing NAND writing operation with preset length on metadata which is not written with NAND in the SSD;

s600, in response to the completion of the NAND writing operation, arranging the corresponding Buffer in a preset cycle sequence and waiting for storing the updating data of the metadata.

In the design of a Solid State Drive (SSD) in the prior art, metadata in an operating State is stored in a DDR (Double Data Rate) memory, and in some embodiments of the present invention, all metadata need to be continuously stored in the DDR, which facilitates continuity and simplicity when the metadata is stored; in order to achieve the continuity of metadata storage, there is a difficulty in that when the SSD disk is used by a user, random access is performed, and the metadata is also randomly updated, and in the DDR, the data storage manner is as shown in fig. 2, where metadata used in the running state is represented by Meta, where different types of metadata are represented by Meta a, Meta B, Meta C, Meta D, and Meta E, and Other data except metadata of Journal are represented by Other data. First in some embodiments of the invention, all of the Metas need to be placed together in physical memory, as shown in FIG. 3. This eliminates the need to distinguish the type of Meta, as shown in FIG. 4. The method changes a plurality of discontinuous physical addresses into continuous ones, and can adopt a hardware scheme or a software scheme, wherein the hardware scheme can realize access acceleration, and the software scheme realizes autonomous controllability. Since the use of blocks is continuous (in some embodiments, the use of pages must guarantee strictly continuous increase from 0), only the start address needs to be saved, and the size of the Journal data mapping table is reduced. However, in the Journal module storage process, the Meta is only a part of the metadata, and the data update of the metadata generated in the read-write process is random, and if only the Meta area is stored, the metadata cannot be stored at one time, because the data volume is too large, the super capacitor of the enterprise-level SSD is insufficient in electricity, and the power-off time is too long, so that the disk abnormality occurs; currently, in some prior art, data update generated in random read and write process is called Delta, and the storage mode in DDR is shown in fig. 5. In the general prior art, each kind of metadata is divided into a plurality of Delta areas in SSD, such as Delta1, Delta2, Delta3, and Delta4 in fig. 5, when one of the Delta areas is full, it is written into NAND (in order to be able to recover during power-on) together with a part of its corresponding Meta area, so that the updating change speed of each kind of metadata is different, which results in different generation speeds of Delta. A preset number of Buffer buffers are divided for an area where metadata is continuously stored in a physical address of the SSD memory, as shown in fig. 6, where the Buffer buffers are abbreviated as buffers, and different Buffer buffers are distinguished by serial numbers. The addresses are all physical addresses, and then a mapping table of DDR logical addresses and the physical addresses is defined. The Buffer is designed in order to ensure that it is used in a preset order, and in some embodiments of the present invention, the Buffer is defined as 4 and is specified to be recycled in the order of 1 → 2 → 3 → 4 → 1. In other embodiments, the number of Buffer buffers may be configured according to actual applications. When Buf1 is full, a NAND write of Meta data of length L starting with Buf1 will be initiated, as shown in fig. 7, where Meta1, Meta2, Meta3, Meta4, etc. are all metadata that are divided in order of length L for Meta shown in fig. 6. Referring to fig. 7, in which some prior art embedded systems have simple address mapping functions, but once a mapping item is configured, no modification is allowed, in some embodiments of the present invention, Buffer addresses are required to be mapped to new locations continuously, and the address mapping will have the state shown in fig. 8 in continuous storage. That is, when Buf1 is full, and after writing NAND together with Meta1, Buf1 will be mapped to a new address, as shown in fig. 8 before mapping to Meta5, so that when Buf 2-4 write NAND, Buf1 will be used again, and then write NAND together with Meta5, and so on. When the power is turned on next time, the initial address information is read up, and then the data in the NAND are read to the corresponding positions of the DDR in sequence.

According to some embodiments of the SSD-based log data saving method of the invention, the method further comprises:

responding to the received memory access request, and judging whether the memory access request is a log access request or not;

and responding to the judgment that the memory access request is a log access request, accessing the mapping table, converting the address of the access request into a physical address, and returning data accessed according to the converted physical address to an accessor.

In some embodiments of the present invention, as shown in fig. 9, when a DDR access request is received, it is determined whether the access request is a Journal access. If the access is Journal, the self-defined mapping table is accessed. And according to the address mapping, converting the request address into a physical address, and returning the data accessed by the converted address to the visitor. If the access request is judged not to be Journal access, address mapping is not carried out, the request address is directly used as an access address, and then data accessed by the access address is returned to the visitor.

According to some embodiments of the SSD-based log data saving method of the invention, the method further comprises:

checking whether a conflict exists in response to receiving the address mapping modification request;

in response to a conflict, the conflicting mapping entry is looked up and brought back to the SSD.

In some embodiments of the invention, as shown in FIG. 10, when a request to modify DDR address mapping is received, check if there is a conflict, when there is a conflict, look up the conflict mapping entry, return the address mapping modification status and bring back the mapping entry. And when no conflict exists, applying for a new mapping item and adding the mapping item into the mapping table, and returning the address mapping modification state and bringing back the mapping item.

According to some embodiments of the SSD-based log data saving method of the invention, the method further comprises:

in the power-on process, the SSD executes bad block scanning operation on the NAND;

and according to the bad block scanning operation, selecting good blocks in a plurality of NANDs as alternative replacement blocks when the bad blocks appear in the RAID group.

In some embodiments of the invention, the metadata is not stored using a multi-backup approach, but rather using a RAID5 approach. Generally, in the case of multiple backups, the backup is at least 1+1, that is, one copy of metadata occupies two blocks, while in the case of RAID5, an N +1 manner may be adopted, so that N copies of metadata occupy only N +1 blocks, so that the usage amount of blocks is reduced to the original (N +1)/N × 2, and in general, N is 15, so that the usage amount of blocks becomes 53.3%; however, in the SSD system, the NAND status is unpredictable, and we may choose 16 blocks to form a RAID group, but if 1 or more bad blocks are included, the bad blocks cannot store data, and because we use the continuous storage method to place data, the bad blocks may not store some data correctly. RAID in some prior art techniques avoids data loss by skipping bad blocks to ensure that data is not preserved into the bad blocks. In some embodiments of the present invention, to solve the problem, we need to introduce a bad block replacement block, and solve the problem in a software manner. In the power-on process, bad block scanning is carried out on the SSD, then a Journal module identifies bad blocks and good blocks in 16 blocks according to the scanning result, a small part of the good blocks are used as alternatives, in some embodiments, 4 good blocks are selected as alternative blocks in an alternative group, and when a bad block appears in the RAID group, part of the blocks are selected from the alternative group for replacement, so that a dynamic alternative rule is realized, and the RAID can be normally used.

According to some embodiments of the SSD-based log data saving method of the present invention, in response to one Buffer being full, performing a NAND write operation on data in the Buffer, and performing a NAND write operation of a preset length on metadata not written with a NAND in the SSD further includes:

the Buffer and the preset length are configured to be positive integer multiples of the NAND minimum write unit.

In some embodiments of the present invention, when Buf1 is full, a NAND write of length L starting with Buf1 will be initiated, this L being limited by the operating unit limitations of the NAND, in some embodiments we will use RAID5 so that the length of L can be expanded to multiple sizes of 16k, (16k being the smallest write unit of the NAND); here, it is necessary to fix the size of the Buffer and the size of Meta after being divided, which can be determined according to the write unit size L of the NAND.

Since the storage is continuous in the metadata running state, the Journal module only needs to acquire the start address and the end address of the metadata region, and then stores the whole region, wherein the page size of one SLC block is 16k (i.e. the standard of all current NAND manufacturers), so that a plurality of SLC pages may be used in the storage, and one RAID stripe can store N × 16k in the case of using RAID 5;

when the Journal stores the metadata, the first metadata address with the size of N × 16k is sent to the NAND writing module to complete NAND storage of the data (so as to facilitate recovery at the next power-on time), the stored first address is stored, the metadata with the size of N × 16k is sent to the NAND writing module continuously, and the writing process is repeated in sequence until the whole metadata area is stored in the NAND.

In another aspect of the embodiments of the present invention, an embodiment of an SSD-based log data storage device is provided. The device includes:

the continuous storage module is configured to configure the running-state metadata in the log data to be continuously stored in the memory physical address of the SSD;

the Buffer configuration module is configured to divide a preset number of Buffer buffers for areas where metadata in the physical address of the memory is continuously stored, so that all the Buffer buffers have a preset cycle sequence;

the updating data storage module is configured to store updating data of the metadata generated in the reading and writing process according to a preset cyclic sequence;

the mapping module is configured to define a mapping table of memory logical addresses and physical addresses of log data;

the NAND writing operation module is configured to respond to the fact that one Buffer is full, perform NAND writing operation on data in the Buffer, and perform NAND writing operation with preset length on metadata which is not written into NAND in the SSD;

a sorting module configured to, in response to completion of the NAND write operation, sort the corresponding Buffer buffers in a preset loop order to wait for the updated data of the storage metadata at the end.

According to some embodiments of the SSD-based log data storage device of the present invention, the device further comprises a request judging module configured to:

responding to the received memory access request, and judging whether the memory access request is a log access request or not;

and responding to the judgment that the memory access request is a log access request, accessing the mapping table, converting the address of the access request into a physical address, and returning data accessed according to the converted physical address to an accessor.

According to some embodiments of the SSD-based log data retention device of the present invention, the device further comprises a conflict checking module configured to:

checking whether a conflict exists in response to receiving the address mapping modification request;

in response to a conflict, the conflicting mapping entry is looked up and brought back to the SSD.

In view of the above object, another aspect of the embodiments of the present invention further provides a computer device, including: at least one processor; and a memory storing a computer program executable on the processor, the processor executing the SSD-based log data saving method when executing the program.

In another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored, and is characterized in that when being executed by a processor, the computer program executes the foregoing SSD-based log data saving method.

Likewise, those skilled in the art will appreciate that all of the embodiments, features and advantages set forth above with respect to the SSD-based log data retention method according to the present invention apply equally to the apparatus, the computer device and the medium according to the present invention. For the sake of brevity of the present disclosure, no repeated explanation is provided herein.

It should be particularly noted that, the steps in the foregoing SSD-based log data storage method, apparatus, device and medium may be mutually intersected, replaced, added or deleted, and therefore, these reasonable permutation and combination transformations of the SSD-based log data storage method, apparatus, device and medium should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.

Finally, it should be noted that, as one of ordinary skill in the art can appreciate, all or part of the processes of the methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the program of the SSD-based log data saving method may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods as described above. The storage medium of the program 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 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.

Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, 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), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.

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.

The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.

The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.

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.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:映射关系处理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类