CN111796996A - Solid state disk log processing method, solid state disk and electronic equipment - Google Patents

Solid state disk log processing method, solid state disk and electronic equipment Download PDF

Info

Publication number
CN111796996A
CN111796996A CN202010635690.3A CN202010635690A CN111796996A CN 111796996 A CN111796996 A CN 111796996A CN 202010635690 A CN202010635690 A CN 202010635690A CN 111796996 A CN111796996 A CN 111796996A
Authority
CN
China
Prior art keywords
log information
solid state
state disk
log
memory
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
Application number
CN202010635690.3A
Other languages
Chinese (zh)
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.)
Shenzhen Dapu Microelectronics Co Ltd
Original Assignee
Shenzhen Dapu Microelectronics 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 Shenzhen Dapu Microelectronics Co Ltd filed Critical Shenzhen Dapu Microelectronics Co Ltd
Priority to CN202010635690.3A priority Critical patent/CN111796996A/en
Publication of CN111796996A publication Critical patent/CN111796996A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of computers, and discloses a solid state disk log processing method, a solid state disk and electronic equipment. The method comprises the following steps: acquiring a log file generated by a processor, analyzing the log file, and generating log information, wherein the log information comprises time information and log content; sending the log information to engineering equipment through a port, so that the engineering equipment sets a level for the log information according to the log content and caches the log information in a cache space; and sending the log information in the cache space to a corresponding memory for storage according to the level. By the mode, an engineer can quickly locate the problems of the solid state disk through the level of the log information, the problem locating efficiency is improved, the log information does not need to be checked one by one, and the time is saved.

Description

Solid state disk log processing method, solid state disk and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a solid state disk log processing method, a solid state disk and electronic equipment.
Background
With the development of computer technology, people have higher and higher requirements on the read-write speed of electronic equipment, and particularly when the electronic equipment is urgently needed to be used for reading and writing, the long-time loading of a mechanical hard disk makes people feel irritated. Therefore, the Solid State Disk (SSD) is a hard Disk made of an array of Solid State electronic memory chips, and thus the read/write speed of the Solid State Disk is much faster than that of a mechanical hard Disk. Along with the popularity of the solid state disk, more and more people begin to pay attention to the quality of the solid state disk, and in order to improve the use experience of users, a solid state disk manufacturer needs to ensure that the solid state disk can normally operate when the solid state disk leaves a factory.
The solid state disk is internally provided with a software system which is used as an independent bottom layer software system and has problems in the operation process, so that when the problems occur, the problems need to be quickly searched and solved. The traditional solid state disk frequently brushes down log information generated by the solid state disk to a storage space, and all logs in the storage space are checked one by one. However, this method of checking all log information takes a lot of time, so that the problem location efficiency of the solid state disk is low, and moreover, all logs are flushed in one storage space, so that the severity of the problem of the solid state disk cannot be distinguished.
Disclosure of Invention
Based on this, it is necessary to provide a solid state disk log processing method, a solid state disk and an electronic device for solving the above technical problems, so that an engineer can quickly locate problems occurring in the solid state disk through the level of log information, the problem location efficiency is improved, the log information does not need to be checked one by one, the time is saved, and the technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a solid state disk log processing method, which is applied to a solid state disk, and the method includes:
acquiring a log file generated by a processor, analyzing the log file, and generating log information, wherein the log information comprises time information and log content;
sending the log information to engineering equipment through a port, so that the engineering equipment sets a level for the log information according to the log content and caches the log information in a cache space;
and sending the log information in the cache space to a corresponding memory for storage according to the level.
In other embodiments, the levels include an anomaly severity level and an anomaly general level;
the sending the log information in the cache space to a corresponding memory for storage according to the level includes:
if the level is an abnormal severity level, the log information in the cache space is directly and synchronously flushed down to a NOR memory;
if the level is an abnormal general level, the log information is cached in the cache space, and the log information is asynchronously flushed down to the NAND memory until the memory space in the cache space is full.
In some other embodiments, the method further comprises:
and monitoring the current state of the log information in real time, and controlling the log information to enter the next link according to the current state.
In some other embodiments, the method further comprises:
receiving an instruction of establishing port connection of the engineering equipment, and establishing communication connection with the engineering equipment according to the instruction;
the sending the log information to the engineering equipment comprises:
and receiving a first request for acquiring the log information sent by the engineering equipment, and sending the log information to the engineering equipment according to the first request.
In some other embodiments, the method further comprises:
and receiving a second request sent by a server for acquiring the log information, and uploading the log information stored in the NOR memory and the NAND memory to the server according to the second request, so that the server sends the log information to a maintenance device.
In some other embodiments, the method further comprises:
and when the storage space of the NOR memory and the storage space of the NAND memory are full, storing by adopting a cyclic coverage writing mode so as to enable the NOR memory and the NAND memory to store newly generated log information, wherein the cyclic coverage writing mode is to replace the log information with the latest storage time with the newly generated log information.
In a second aspect, an embodiment of the present invention further provides a solid state disk, including:
at least one first processor; and
a first memory communicatively coupled to the at least one first processor; wherein,
the first memory stores instructions executable by the at least one first processor to enable the at least one first processor to perform any one of the solid state disk log processing methods described above.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
the solid state disk is described above.
In a fourth aspect, an embodiment of the present invention further provides a non-volatile computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a solid state disk, the solid state disk is caused to perform any one of the solid state disk log processing methods described above.
Compared with the prior art, the invention has the beneficial effects that: different from the situation in the prior art, the solid state disk log processing method, the solid state disk and the electronic device in the embodiment of the invention. The log information is generated by acquiring a log file generated by the processor and parsing the log file, i.e. by adding time information in front of the log file. After the log information is generated, the log information is sent to engineering equipment through a port which is communicated with the engineering equipment, an engineer can set a level for the log information according to the log content in the log information after receiving the log information, and after the engineer sets the level, the log information is sent to a cache space. And after the log information is sent to the cache space, sending the log to different memories for storage according to the level set by an engineer. By the mode, an engineer can quickly locate the problems of the solid state disk through the level of the log information, the problem locating efficiency is improved, the log information does not need to be checked one by one, and the time is saved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is an application scenario before the solid state disk log processing method leaves a factory;
fig. 2 is an application scenario of the solid state disk log processing method after leaving the factory;
FIG. 3 is a flowchart of an embodiment of a solid state disk log processing method applied to a solid state disk according to the present invention;
fig. 4 is a schematic diagram of a hardware structure of a solid state disk according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the invention. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. The terms "first", "second", "third", and the like used in the present invention do not limit data and execution order, but distinguish the same items or similar items having substantially the same function and action.
The solid state disk log processing method provided by the embodiment of the invention is applied to the application scenarios shown in fig. 1 and fig. 2, the application scenario shown in fig. 1 is an application scenario before the solid state disk leaves a factory, the application scenario before the solid state disk leaves the factory includes the solid state disk 10, the engineering device 20 and an engineer, the application scenario shown in fig. 2 is an application scenario after the solid state disk leaves the factory, the application scenario after the solid state disk leaves the factory includes the solid state disk 10, the server 30 and a maintainer, wherein the solid state disk 10 and the engineering device 20 are connected through a port to perform communication, the solid state disk 10 may be installed in any electronic device capable of installing the solid state disk 10, such as a desktop computer, a notebook computer and the like, and the engineering device may be any electronic device having a port communication function, such as a desktop computer, a notebook computer, a tablet computer and. The solid state disk 10 is in communication connection with the server 30, and performs information interaction, for example: the server 30 is connected to the local area network, the wide area network, the wireless network, the Global System for mobile communication (GSM), the third generation mobile communication network, the fourth generation mobile communication network, the fifth generation mobile communication network, and the like in a communication manner, and the server 30 may be a server, such as a rack server, a blade server, a tower server, a rack server, or the like, or a server cluster including a plurality of servers, or a cloud computing service center.
It should be noted that the solid state disk log processing method provided in the embodiment of the present application may be further extended to other suitable application scenarios, and is not limited to the application scenarios described in fig. 1 and fig. 2, where fig. 1 and fig. 2 exemplarily show a solid state disk 10, an engineering device 20, a server 30, an engineer and a maintainer, and in an actual application process, the application environment may further include more solid state disks, engineering devices, servers, engineers and maintainers.
As shown in fig. 3, an embodiment of the present invention provides a solid state disk log processing method, which is applied to a solid state disk, and the method includes:
step S301, acquiring a log file generated by a processor, analyzing the log file, and generating log information, wherein the log information comprises time information and log content.
The method and the device have the advantages that the engineer can know the generation time and the log content of the log information when consulting the log information, so that the engineer can solve problems according to the time and the log content of the log in time. When the solid state disk starts to work, a log file generated by the processor is acquired, and after the log file is acquired, the log file is analyzed according to a preset rule so as to generate log information, for example, the log file is analyzed into a piece of log content, and time information is added to the log content according to the time generated by the log content so as to generate the log information. For example, the analyzed log content is: "Power lost Handled on CPU", that is, the CPU is powered down, but since these log contents are not only once but also do not occur in the same time period, it is necessary to add a time for the CPU to be powered down to the log contents, so as to obtain a complete log information, for example, "xx minutes xx seconds at xx month xx day xx in xx year: power Lose Handled on CPU ", namely xx minute xx seconds when xx month xx day xx in year xx month, CPU has taken place the Power failure and Handled.
In other embodiments, because a software system is run inside the solid state disk, the log file may also be generated by a processor inside the solid state disk, and after the processor inside the solid state disk generates the log file, the log file is directly analyzed, and time information generated by the log content is added to the log content generated by the analysis, so as to generate complete log information.
Step S302, sending the log information to engineering equipment through a port, so that the engineering equipment sets a level for the log information according to the log content and caches the log information in a cache space.
After a problem occurs in the solid state disk, in order to save the time for positioning the problem, an engineer is required to set a level for the log information. After the log information is generated, the solid state disk sends the log information to engineering equipment through a port which establishes communication with the engineering equipment, the engineering equipment sets a level for the log information according to the log content of the log information after receiving the log information, and after an engineer sets the level, the solid state disk caches the log information in a cache space, for example, a cache register. .
In some other embodiments, before the solid state disk sends the log information to the engineering device, the solid state disk needs to establish a communication connection with the engineering device. An engineer connects the engineering equipment with the port of the solid state disk through a port connecting line, and sends a connecting instruction to the solid state disk after the port connecting line is connected, and the solid state disk establishes communication connection with the engineering equipment after receiving the connecting instruction. After the communication connection is established, when an engineer needs to set a level for the log information, the engineer sends a first request for obtaining the log information to the solid state disk through the engineering equipment, and after the solid state disk receives the first request sent by the engineering equipment, the solid state disk sends the log information to the engineering equipment through a port for establishing communication connection with the engineering equipment according to the first request.
Step S303, the log information in the cache space is sent to a corresponding memory to be stored according to the level.
In order to save time for engineers to locate problems with the solid state disk, different levels of log information need to be stored in different memories. When the solid state disk caches the log information in the buffer register, the solid state disk sends different log information to different memories for storage according to the level of the log information set by an engineer.
In some other embodiments, the level of the log information includes an abnormal severity level and an abnormal general level, the abnormal severity level is a level that affects normal operation of the solid state disk software system, and the abnormal general level is a level that does not affect normal operation of the solid state disk software system but affects operation speed of the solid state disk software system.
When the level of the log information set by an engineer is an abnormal serious level, the problem that the normal operation of the solid state disk software system is influenced currently exists in the solid state disk, the log information of the problem needs to be stored in time, and the problem that the log information is lost and cannot be solved in time is prevented. Therefore, for the log information with the log information level of the abnormal severity level in the buffer register, the log information is synchronously flushed to the NOR memory for storage in a synchronous flushing mode, and the synchronous flushing is performed when the log information enters the buffer register and is flushed to the NOR memory for storage. For example, the current log information is: "[ error ] xx year xx month xx day xx minute xx seconds: date lose "," xx years xx month xx day xx minutes xx seconds: date lose "represents that data loss occurs at xx minutes xx seconds when xx month xx is xx in xx years," [ error ] "represents that the level of the current log information is an abnormal severity level, and then the solid state disk synchronously brushes the log information to the NOR memory while the log information passes through the buffer register.
When the level of the log information set by an engineer is an abnormal general level, it indicates that the current solid state disk has no problem of influencing the normal operation of the solid state disk software system, but has a problem of influencing the operation speed of the software system, and the problem does not need to be dealt with immediately. And because the space of the NOR memory is relatively small, the log information of the general level is relatively more, the log information cannot be printed in the NOR memory, in addition, in order to quickly locate the problem, each log file does not need to be consulted, and the log information of the abnormal severe level and the log information of the abnormal general level need to be separately stored, therefore, the log information of the abnormal general level is printed in the NAND memory, meanwhile, in order to reduce the operation times of the NAND memory and avoid influencing IO data of the NAND memory, the log information of the abnormal general level is printed in the NAND memory in an asynchronous brushing mode, and the asynchronous brushing is to firstly store the log information in a buffer register until the space in the buffer register is fully occupied and then print the log information in the NAND memory. For example, the current log information is: "[ Warneng ] xx year xx month xx day xx minute xx seconds: date Repeat "," xx years xx month xx day xx minutes xx seconds: date Repeat represents that a data Repeat problem occurs at the time xx minutes xx seconds at xx month xx days xx in xx years, "[ Warning ]" represents that the level of the current log information is an abnormal general level, and then the log information is firstly stored and cached in a buffer register by a solid state disk while passing through the buffer register until the storage space in the buffer register is full, and then the log information is flushed to a NAND memory for storage.
In other embodiments, the buffer register, the NOR memory, and the NAND memory are all located in the solid state disk, that is, after an engineer sets a level for the log information, the solid state disk directly caches the log information in the buffer register, and for the log information of the abnormal severity level, the log information is synchronously flushed to the NOR memory for storage, and for the log information of the abnormal general level, the log information is flushed to the NAND memory for storage until the buffer register is full.
In some other embodiments, in order to ensure that the solid state disk can normally process the log information, the solid state disk further monitors the current state of the log information in real time, and controls the log information to perform a next link according to the current state of the log information. For example, when the solid state disk monitors that the current state of the log information is that the log information level needs to be set, the log information is sent to engineering equipment through a port which establishes communication with the engineering equipment, so that an engineer sets the level for the log information.
In other embodiments, in order to ensure that the log information is not lost, when the solid state disk is powered down, the solid state disk controls the log information in the buffer register to be flushed to the NAND storage, so that the log information in the buffer register is not lost under the condition of power down.
In other embodiments, after the solid state disk leaves the factory, a port for establishing a communication connection between the solid state disk and the engineering equipment is removed, so that after the solid state disk leaves the factory, a maintenance worker can establish a communication connection with the solid state disk through a server, and thus check log information in the solid state disk. When a maintainer needs to check the log information of the solid state disk, the maintainer establishes communication connection with the solid state disk through a server, and after the communication connection is established, the maintainer sends a second request for obtaining the log information to the solid state disk through the server, after the solid state disk receives the second request, the solid state disk uploads the log information in the NOR memory and the NAND memory to the server according to the second request, and after the server receives the log information, a log information file is generated and sent to the maintainer, so that the maintainer can check the log information in the log information file, and the solid state disk is maintained according to the log information.
In other embodiments, due to the limited storage space of the NOR memory and the NAND memory, when the log information generated by the solid state disk is excessive, that is, when the storage space of the NOR memory and the NAND memory is occupied by the log information, the solid state disk stores the log information in a cyclic overwriting manner, that is, according to the time information of the log information, the newly generated log information is substituted for the log information with the longest storage time. Therefore, the log information stored in the NOR memory and the log information stored in the NAND memory are both relatively new log information, and maintenance personnel can maintain the solid state disk according to the latest log information.
The embodiment of the invention has the advantages that the log file is analyzed through the solid state disk, time information is added into the analyzed log content to generate log information, and after the log information is generated, the log information is sent to the engineering equipment through a port which is in communication connection with the engineering equipment, so that an engineer sets the level of the log information. After the engineer sets the level, the log information is cached in a buffer register and stored in a different memory according to the level of the log information set by the engineer. And when the level of the log information is an abnormal serious level, synchronously brushing the log information to a NOR memory for storage, and when the log information is an abnormal general level, firstly storing the log information in a cache register, and when the storage space of the cache register is full, brushing the log information to the NAND memory for storage. After the solid state disk leaves a factory, a maintainer can establish communication connection with the solid state disk through a server and read log information in the NOR memory and the NAND memory, so that the solid state disk is maintained according to the log information. By the mode, an engineer can quickly locate the problems of the solid state disk through the level of the log information, the problem locating efficiency is improved, the log information does not need to be checked one by one, and the time is saved.
Fig. 4 is a schematic diagram of a hardware structure of a solid state disk provided in an embodiment of the present invention, where the hardware structure 100 of the solid state disk includes:
one or more first processors 101 and a first memory 102, one first processor 101 being taken as an example in fig. 4.
The first processor 101 and the first memory 102 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The first memory 102, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The first processor 101 executes various functional applications and data processing of the solid state disk by running the nonvolatile software program, instructions and modules stored in the first memory 102, that is, the solid state disk log processing method of the above method embodiment is implemented.
The first memory 102 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the data storage area can store data created by the solid state disk and the like. In addition, the first memory 102 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the first memory 102 optionally includes memory remotely located from the first processor 101, which may be connected to a solid state disk via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the first memory 102, and when executed by the one or more first processors, perform the solid state disk log processing method applied to the embodiment of the solid state disk.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Embodiments of the present application provide a non-transitory computer-readable storage medium storing computer-executable instructions, which are executed by one or more processors, such as the one processor 101 in fig. 4, to enable the one or more processors to perform the solid state disk log processing method in any of the above method embodiments.
The server of embodiments of the present invention exists in a variety of forms, including but not limited to:
(1) tower server
The general tower server chassis is almost as large as the commonly used PC chassis, while the large tower chassis is much larger, and the overall dimension is not a fixed standard.
(2) Rack-mounted server
Rack-mounted servers are a type of server that has a standard width of 19 inch racks, with a height of from 1U to several U, due to the dense deployment of the enterprise. Placing servers on racks not only facilitates routine maintenance and management, but also may avoid unexpected failures. First, placing the server does not take up too much space. The rack servers are arranged in the rack in order, and no space is wasted. Secondly, the connecting wires and the like can be neatly stored in the rack. The power line, the LAN line and the like can be distributed in the cabinet, so that the connection lines accumulated on the ground can be reduced, and the accidents such as the electric wire kicking off by feet can be prevented. The specified dimensions are the width (48.26cm ═ 19 inches) and height (multiples of 4.445 cm) of the server. Because of its 19 inch width, a rack that meets this specification is sometimes referred to as a "19 inch rack".
(3) Blade server
A blade server is a HAHD (High Availability High Density) low cost server platform designed specifically for the application specific industry and High Density computer environment, where each "blade" is actually a system motherboard, similar to an individual server. In this mode, each motherboard runs its own system, serving a designated group of different users, without any relationship to each other. Although system software may be used to group these motherboards into a server cluster. In the cluster mode, all motherboards can be connected to provide a high-speed network environment, and resources can be shared to serve the same user group.
(4) Cloud server
The cloud server (ECS) is a computing Service with simplicity, high efficiency, safety, reliability, and flexible processing capability. The management mode is simpler and more efficient than that of a physical server, and a user can quickly create or release any plurality of cloud servers without purchasing hardware in advance. The distributed storage of the cloud server is used for integrating a large number of servers into a super computer, and a large number of data storage and processing services are provided. The distributed file system and the distributed database allow access to common storage resources, and IO sharing of application data files is achieved. The virtual machine can break through the limitation of a single physical machine, dynamically adjust and allocate resources to eliminate single-point faults of the server and the storage equipment, and realize high availability.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A solid state disk log processing method is applied to a solid state disk and is characterized by comprising the following steps:
acquiring a log file generated by a processor, analyzing the log file, and generating log information, wherein the log information comprises time information and log content;
sending the log information to engineering equipment through a port, so that the engineering equipment sets a level for the log information according to the log content and caches the log information in a cache space;
and sending the log information in the cache space to a corresponding memory for storage according to the level.
2. The method of claim 1, wherein the levels include an abnormal severity level and an abnormal general level;
the sending the log information in the cache space to a corresponding memory for storage according to the level includes:
if the level is an abnormal severity level, the log information in the cache space is directly and synchronously flushed down to a NOR memory;
if the level is an abnormal general level, the log information is cached in the cache space, and the log information is asynchronously flushed down to the NAND memory until the memory space in the cache space is full.
3. The method of claim 2, further comprising:
and monitoring the current state of the log information in real time, and controlling the log information to enter the next link according to the current state.
4. The method of claim 3, further comprising:
and when the solid state disk is powered off, the log information in the cache space is sent to the NAND memory.
5. The method of claim 1, further comprising:
receiving an instruction of establishing port connection of the engineering equipment, and establishing communication connection with the engineering equipment according to the instruction;
the sending the log information to the engineering equipment comprises:
and receiving a first request for acquiring the log information sent by the engineering equipment, and sending the log information to the engineering equipment according to the first request.
6. The method of claim 5, further comprising:
and receiving a second request sent by a server for acquiring the log information, and uploading the log information stored in the NOR memory and the NAND memory to the server according to the second request, so that the server sends the log information to a maintenance device.
7. The method of claim 6, further comprising:
and when the storage space of the NOR memory and the storage space of the NAND memory are full, storing by adopting a cyclic coverage writing mode so as to enable the NOR memory and the NAND memory to store newly generated log information, wherein the cyclic coverage writing mode is to replace the log information with the latest storage time with the newly generated log information.
8. A solid state disk, comprising:
at least one first processor; and
a first memory communicatively coupled to the at least one first processor; wherein,
the first memory stores instructions executable by the at least one first processor to enable the at least one first processor to perform the solid state disk log processing method of any one of claims 1-7.
9. An electronic device, comprising:
the solid state disk of claim 8.
10. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a solid state disk, cause the solid state disk to perform the solid state disk log processing method of any one of claims 1 to 7.
CN202010635690.3A 2020-07-03 2020-07-03 Solid state disk log processing method, solid state disk and electronic equipment Pending CN111796996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010635690.3A CN111796996A (en) 2020-07-03 2020-07-03 Solid state disk log processing method, solid state disk and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010635690.3A CN111796996A (en) 2020-07-03 2020-07-03 Solid state disk log processing method, solid state disk and electronic equipment

Publications (1)

Publication Number Publication Date
CN111796996A true CN111796996A (en) 2020-10-20

Family

ID=72810142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010635690.3A Pending CN111796996A (en) 2020-07-03 2020-07-03 Solid state disk log processing method, solid state disk and electronic equipment

Country Status (1)

Country Link
CN (1) CN111796996A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434296A (en) * 2021-07-01 2021-09-24 曙光信息产业股份有限公司 Cache back-brushing method and device, electronic equipment and storage medium
CN114817860A (en) * 2022-05-20 2022-07-29 深圳市金胜电子科技有限公司 Data statistics method and device, solid state disk and medium
CN117971613A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Hard disk monitoring system, method, equipment, storage medium and baseboard management controller

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515827A (en) * 2017-08-21 2017-12-26 湖南国科微电子股份有限公司 Storage method, device and the SSD of the self-defined daily records of PCIE SSD
CN108197218A (en) * 2017-12-28 2018-06-22 湖南国科微电子股份有限公司 A kind of method that SSD key logs are inherited
CN108959589A (en) * 2018-07-11 2018-12-07 中电海康集团有限公司 Accelerate the method for solid-state memory journal file saving/restoring based on STT-MRAM
CN108959526A (en) * 2018-06-28 2018-12-07 郑州云海信息技术有限公司 Blog management method and log management apparatus
CN110377482A (en) * 2019-06-25 2019-10-25 苏州浪潮智能科技有限公司 In a kind of solid state hard disk when operation log display, store method and device
CN110457174A (en) * 2019-05-24 2019-11-15 深圳市金泰克半导体有限公司 Blog management method, device, electronic equipment and storage medium
CN111078515A (en) * 2019-11-25 2020-04-28 深圳忆联信息系统有限公司 SSD layered log recording method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515827A (en) * 2017-08-21 2017-12-26 湖南国科微电子股份有限公司 Storage method, device and the SSD of the self-defined daily records of PCIE SSD
CN108197218A (en) * 2017-12-28 2018-06-22 湖南国科微电子股份有限公司 A kind of method that SSD key logs are inherited
CN108959526A (en) * 2018-06-28 2018-12-07 郑州云海信息技术有限公司 Blog management method and log management apparatus
CN108959589A (en) * 2018-07-11 2018-12-07 中电海康集团有限公司 Accelerate the method for solid-state memory journal file saving/restoring based on STT-MRAM
CN110457174A (en) * 2019-05-24 2019-11-15 深圳市金泰克半导体有限公司 Blog management method, device, electronic equipment and storage medium
CN110377482A (en) * 2019-06-25 2019-10-25 苏州浪潮智能科技有限公司 In a kind of solid state hard disk when operation log display, store method and device
CN111078515A (en) * 2019-11-25 2020-04-28 深圳忆联信息系统有限公司 SSD layered log recording method and device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434296A (en) * 2021-07-01 2021-09-24 曙光信息产业股份有限公司 Cache back-brushing method and device, electronic equipment and storage medium
CN114817860A (en) * 2022-05-20 2022-07-29 深圳市金胜电子科技有限公司 Data statistics method and device, solid state disk and medium
CN117971613A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Hard disk monitoring system, method, equipment, storage medium and baseboard management controller
CN117971613B (en) * 2024-03-29 2024-08-16 苏州元脑智能科技有限公司 Hard disk monitoring system, method, equipment, storage medium and baseboard management controller

Similar Documents

Publication Publication Date Title
CN111796996A (en) Solid state disk log processing method, solid state disk and electronic equipment
US11995037B2 (en) Programmatically choosing preferred storage parameters for files in large-scale distributed storage systems
US9811442B2 (en) Dynamic trace level control
Williams et al. Overdriver: Handling memory overload in an oversubscribed cloud
CN109471770B (en) System management method and device
US9158577B2 (en) Immediately launching applications
US20110022882A1 (en) Dynamic Updating of Failover Policies for Increased Application Availability
CN102708158B (en) PostgreSQL (postgres structured query language) cloud storage filing and scheduling system
CN104462612A (en) Method and device for monitoring database information
US12050778B2 (en) Data restoration method and related device
Nikolaou et al. Modeling the implications of DRAM failures and protection techniques on datacenter TCO
CN112306784A (en) Test method, test device, electronic equipment and test system
CN115167782B (en) Temporary storage copy management method, system, equipment and storage medium
US9411817B2 (en) Programmatically choosing preferred storage parameters for files in large-scale distributed storage systems based on desired file reliability or availability
CN115145733A (en) Resource allocation method, device, server and system
US20190354158A1 (en) Preventing unexpected power-up failures of hardware components
US11531621B2 (en) Selective endpoint isolation for self-healing in a cache and memory coherent system
CN111104301B (en) Method and system for judging barrier user in webpage
CN116955129A (en) Automatic generation of code function and test case mappings
Koutras et al. User‐perceived Availability of a Software Rejuvenation Model with Recovery Time Omission
US9983949B2 (en) Restoration detecting method, restoration detecting apparatus, and restoration detecting program
Paing et al. High availability solution: Resource usage management in virtualized software aging
US9210032B2 (en) Node failure management
CN117234837A (en) Health monitoring method of object storage cluster, related device and storage medium
CN116886709A (en) Management information processing method, device, equipment and machine-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201020

RJ01 Rejection of invention patent application after publication