CN110309008B - Method and system for storing memory data in case of system abnormality - Google Patents
Method and system for storing memory data in case of system abnormality Download PDFInfo
- Publication number
- CN110309008B CN110309008B CN201810232379.7A CN201810232379A CN110309008B CN 110309008 B CN110309008 B CN 110309008B CN 201810232379 A CN201810232379 A CN 201810232379A CN 110309008 B CN110309008 B CN 110309008B
- Authority
- CN
- China
- Prior art keywords
- data
- original system
- space
- memory
- kdump
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/073—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/142—Reconfiguring to eliminate the error
-
- 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)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据存储技术领域,尤其是涉及系统异常时内存数据的保存方法及系统。The invention relates to the technical field of data storage, in particular to a method and system for storing memory data when the system is abnormal.
背景技术Background technique
随着网络技术的成熟,互联网、云计算技术的发展,计算机被广泛应用。当计算机运行时,由于程序或计算等错误,会出现系统崩溃、宕机、死锁等情况,如果重启或关机,会导致内存数据丢失,不仅不利于问题定位和解决,还存在数据丢失带来的巨大损失。Linux提供了kdump功能,在发生系统崩溃、宕机或死锁时,可切换到kdump的内核,保存内存运行状态,供工程师分析。With the maturity of network technology and the development of Internet and cloud computing technology, computers are widely used. When the computer is running, due to program or calculation errors, there will be system crashes, downtime, deadlocks, etc. If it is restarted or shut down, memory data will be lost, which is not conducive to problem location and solution, but also causes data loss. huge loss. Linux provides the kdump function. When a system crash, downtime or deadlock occurs, it can switch to the kdump kernel to save the memory running status for analysis by engineers.
现有技术方案为Linux源码中的kdump模块,Linux启动时,在内存运行一个kdump的内核,当前Linux系统发生崩溃、宕机或死锁时,立即切换到kdump的内核,收集内存运行状态,保存为vmcore文件。该方案主要存在以下缺点:第一、系统崩溃、宕机或死锁时,Linux系统日志仍记录在日志缓存区,未保存到Linux系统的messages文件中,一旦重启或关机,缓存中的内容会丢失。第二、kdump收集的是通用信息,对用户应用所产生的数据信息,如果残留在内存,一旦重启或关机,则会丢失。第三、当用户应用向磁盘阵列写数据,为提高写入速度,会使用写缓存,一旦发生系统崩溃、宕机或死锁,重启或关机,会导致写缓存中的用户数据丢失。The existing technical scheme is the kdump module in the Linux source code. When Linux starts, a kdump kernel is run in memory. When the current Linux system crashes, crashes or deadlocks, it immediately switches to the kdump kernel, collects the memory running status, and saves for the vmcore file. This scheme mainly has the following disadvantages: first, when the system crashes, shuts down or deadlocks, the Linux system log is still recorded in the log buffer area, and is not saved in the messages file of the Linux system. Once restarted or shut down, the content in the cache will be lost lost. Second, kdump collects general information. If the data information generated by the user application remains in the memory, it will be lost once it is restarted or shut down. Third, when the user application writes data to the disk array, in order to improve the writing speed, the write cache will be used. Once the system crashes, crashes or deadlocks, restarts or shuts down, the user data in the write cache will be lost.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供系统异常时内存数据的保存方法及系统,以解决当出现系统崩溃、宕机或死锁时,内存中部分数据丢失的问题。In view of this, the purpose of the present invention is to provide a method and system for storing memory data when the system is abnormal, so as to solve the problem of partial data loss in the memory when the system crashes, crashes or deadlocks.
第一方面,本发明实施例提供了一种系统异常时内存数据的保存方法,其中,包括:In the first aspect, the embodiment of the present invention provides a method for saving memory data when the system is abnormal, which includes:
通过对原系统进行配置,在内存中预留地址空间,并将所述原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至所述地址空间中;By configuring the original system, an address space is reserved in the memory, and the log buffer data and user application buffer data cached in the original system are stored in the address space;
将所述原系统切换至kdump系统,所述kdump系统挂载所述原系统的分区,基于所述地址空间,将所述日志缓存区数据和所述用户应用缓存区数据分别保存至所述原系统中匹配的所述分区中;Switching the original system to the kdump system, the kdump system mounts the partition of the original system, and based on the address space, saves the log buffer data and the user application buffer data to the original In the said partition that matches in the system;
对所述原系统进行分区,预留物理空间,并通过对所述原系统进行配置,在内存中预留缓存空间;Partitioning the original system, reserving physical space, and reserving cache space in memory by configuring the original system;
将所述物理空间中标志位有效的第一用户数据写入磁盘阵列;writing the first user data with valid flag bits in the physical space into the disk array;
将实时产生的第二用户数据写入缓存空间后,按照优化策略写入所述磁盘阵列;After writing the second user data generated in real time into the cache space, write it into the disk array according to the optimization strategy;
将所述原系统切换至所述kdump系统,将所述第二用户数据保存至所述物理空间中,并将所述第二用户数据的标志位设置为有效。Switching the original system to the kdump system, saving the second user data in the physical space, and setting the flag bit of the second user data to valid.
结合第一方面,本发明实施例提供了第一方面的第一种可能的实施方式,其中,所述通过对原系统进行配置,在内存中预留地址空间,并将所述原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至所述地址空间中,包括:In combination with the first aspect, the embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein, by configuring the original system, an address space is reserved in the memory, and the original system is cached The log buffer data and user application buffer data are stored in the address space, including:
通过对所述原系统的启动管理器文件grub.conf进行配置,在内存中预留得到所述地址空间;By configuring the startup manager file grub.conf of the original system, the address space is reserved in memory;
获取所述原系统的日志缓存区的结构体和用户应用数据缓存区的结构体;Acquiring the structure of the log buffer of the original system and the structure of the user application data buffer;
在发生系统异常的情况下,调用运行时恐慌函数panic,并通过所述日志缓存区的结构体将所述日志缓存区数据保存至所述地址空间;In the case of a system exception, call the runtime panic function panic, and save the log buffer data to the address space through the structure of the log buffer;
以及,通过所述用户应用数据缓存区的结构体将所述用户应用缓存区数据保存至所述地址空间。And, saving the data in the user application buffer area to the address space through the structure of the user application data buffer area.
结合第一方面,本发明实施例提供了第一方面的第二种可能的实施方式,其中,所述将所述原系统切换至kdump系统,所述kdump系统挂载所述原系统的分区,基于所述地址空间,将所述日志缓存区数据和所述用户应用缓存区数据分别保存至所述原系统中匹配的所述分区中,包括:In combination with the first aspect, the embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein the switching of the original system to the kdump system, the kdump system mounts the partition of the original system, Based on the address space, saving the log buffer data and the user application buffer data to the matching partitions in the original system respectively, including:
将所述地址空间进行映射,得到所述原系统具有访问权限的内存虚拟地址;Mapping the address space to obtain a memory virtual address that the original system has access to;
将所述原系统切换至所述kdump系统,所述kdump系统挂载所述原系统的所述分区;Switching the original system to the kdump system, the kdump system mounts the partition of the original system;
通过所述内存虚拟地址对所述日志缓存区数据和所述用户应用缓存区数据进行读取并分别保存至匹配的所述分区中。The data in the log buffer area and the data in the user application buffer area are read through the memory virtual address and stored in the matching partitions respectively.
结合第一方面,本发明实施例提供了第一方面的第三种可能的实施方式,其中,所述对所述原系统进行分区,预留物理空间,并通过对所述原系统进行配置,在内存中预留缓存空间,包括:In combination with the first aspect, the embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the original system is partitioned, physical space is reserved, and by configuring the original system, Reserve cache space in memory, including:
对所述原系统进行分区,并根据缓存大小预留相匹配的所述物理空间;Partitioning the original system, and reserving the matching physical space according to the cache size;
通过对所述原系统的启动管理器文件grub.conf进行配置,在内存中预留得到所述缓存空间。The cache space is reserved in memory by configuring the boot manager file grub.conf of the original system.
结合第一方面,本发明实施例提供了第一方面的第四种可能的实施方式,其中,所述将所述物理空间中标志位有效的第一用户数据写入磁盘阵列,包括:With reference to the first aspect, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein writing the first user data with valid flag bits in the physical space into the disk array includes:
通过用户应用获取所述物理空间中所记录数据的标志位;Acquire the flag bit of the data recorded in the physical space through the user application;
判断所述标志位是否有效;judging whether the flag bit is valid;
如果有效,则通过所述用户应用进行校验并将对应的所述第一用户数据写入所述磁盘阵列;If valid, verifying through the user application and writing the corresponding first user data into the disk array;
如果无效,则不进行处理。If invalid, no processing is performed.
结合第一方面,本发明实施例提供了第一方面的第五种可能的实施方式,其中,所述将所述原系统切换至所述kdump系统,将所述第二用户数据保存至所述物理空间中,并将所述第二用户数据的标志位设置为有效,包括:With reference to the first aspect, this embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein the switching the original system to the kdump system, and saving the second user data to the In the physical space, and setting the flag bit of the second user data to be valid, including:
在发生系统异常的情况下,调用运行时恐慌函数panic,并将所述原系统切换至所述kdump系统;In the case of a system exception, call the runtime panic function panic, and switch the original system to the kdump system;
基于所述kdump系统,将所述缓存空间中的所述第二用户数据写入所述物理空间中,并将所述第二用户数据的标志位设置为有效。Based on the kdump system, write the second user data in the cache space into the physical space, and set the flag bit of the second user data to valid.
第二方面,本发明实施例还提供一种系统异常时内存数据的保存系统,其中,包括:In the second aspect, the embodiment of the present invention also provides a storage system for memory data when the system is abnormal, which includes:
第一预留空间单元,用于通过对原系统进行配置,在内存中预留地址空间,并将所述原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至所述地址空间中;The first reserved space unit is configured to reserve an address space in the memory by configuring the original system, and save the log buffer data and user application buffer data cached in the original system into the address space ;
第一数据保存单元,用于将所述原系统切换至kdump系统,所述kdump系统挂载所述原系统的分区,基于所述地址空间,将所述日志缓存区数据和所述用户应用缓存区数据分别保存至所述原系统中匹配的所述分区中;The first data storage unit is configured to switch the original system to the kdump system, the kdump system mounts the partition of the original system, and caches the log buffer data and the user application based on the address space The zone data is respectively stored in the matching partitions in the original system;
第二预留空间单元,用于对所述原系统进行分区,预留物理空间,并通过对所述原系统进行配置,在内存中预留缓存空间;The second reserved space unit is used to partition the original system, reserve physical space, and reserve cache space in memory by configuring the original system;
第一写入单元,用于将所述物理空间中标志位有效的第一用户数据写入磁盘阵列;The first writing unit is configured to write the first user data with valid flag bits in the physical space into the disk array;
第二写入单元,用于将实时产生的第二用户数据写入缓存空间后,按照优化策略写入所述磁盘阵列;The second writing unit is configured to write the second user data generated in real time into the cache space, and then write it into the disk array according to an optimization strategy;
第二数据保存单元,用于将所述原系统切换至所述kdump系统,将所述第二用户数据保存至所述物理空间中,并将所述第二用户数据的标志位设置为有效。The second data saving unit is configured to switch the original system to the kdump system, save the second user data in the physical space, and set the flag bit of the second user data to valid.
结合第二方面,本发明实施例提供了第二方面的第一种可能的实施方式,其中,所述第一预留空间单元包括:With reference to the second aspect, the embodiment of the present invention provides a first possible implementation manner of the second aspect, wherein the first reserved space unit includes:
通过对所述原系统的grub.conf进行配置,在内存中预留得到所述地址空间;By configuring the grub.conf of the original system, the address space is reserved in memory to obtain the address space;
获取所述原系统的日志缓存区的结构体和用户应用数据缓存区的结构体;Acquiring the structure of the log buffer of the original system and the structure of the user application data buffer;
在发生系统异常的情况下,调用panic,并通过所述日志缓存区的结构体将所述日志缓存区数据保存至所述地址空间;In the case of a system exception, call panic, and save the log buffer data to the address space through the structure of the log buffer;
以及,通过所述用户应用数据缓存区的结构体将所述用户应用缓存区数据保存至所述地址空间。And, saving the data in the user application buffer area to the address space through the structure of the user application data buffer area.
结合第二方面,本发明实施例提供了第二方面的第二种可能的实施方式,其中,所述第一数据保存单元包括:With reference to the second aspect, this embodiment of the present invention provides a second possible implementation manner of the second aspect, wherein the first data storage unit includes:
将所述地址空间进行映射,得到所述原系统具有访问权限的内存虚拟地址;Mapping the address space to obtain a memory virtual address that the original system has access to;
将所述原系统切换至所述kdump系统,所述kdump系统挂载所述原系统的所述分区;Switching the original system to the kdump system, the kdump system mounts the partition of the original system;
通过所述内存虚拟地址对所述日志缓存区数据和所述用户应用缓存区数据进行读取并分别保存至匹配的所述分区中。The data in the log buffer area and the data in the user application buffer area are read through the memory virtual address and stored in the matching partitions respectively.
本发明实施例带来了以下有益效果:本发明提供了系统异常时内存数据的保存方法及系统,包括:通过对原系统进行配置,在内存中预留地址空间,并将原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至地址空间中;将原系统切换至kdump系统,kdump系统挂载原系统的分区,基于地址空间,将日志缓存区数据和用户应用缓存区数据分别保存至原系统中匹配的分区中;对原系统进行分区,预留物理空间,并通过对原系统进行配置,在内存中预留缓存空间;将物理空间中标志位有效的第一用户数据写入磁盘阵列;将实时产生的第二用户数据写入缓存空间后,按照优化策略写入磁盘阵列;将原系统切换至kdump系统,将第二用户数据保存至物理空间中,并将第二用户数据的标志位设置为有效。本发明可以解决当出现系统崩溃、宕机或死锁时,内存中部分数据丢失的问题。The embodiments of the present invention bring the following beneficial effects: the present invention provides a method and system for storing memory data when the system is abnormal, including: by configuring the original system, reserving an address space in the memory, and storing the data cached in the original system The log buffer data and user application buffer data are saved in the address space; the original system is switched to the kdump system, and the kdump system mounts the partition of the original system, and based on the address space, the log buffer data and user application buffer data are saved separately to the matching partition in the original system; partition the original system, reserve physical space, and reserve cache space in the memory by configuring the original system; write the first user data with valid flags in the physical space to Disk array; after writing the second user data generated in real time into the cache space, write it into the disk array according to the optimization strategy; switch the original system to the kdump system, save the second user data in the physical space, and save the second user data The flag bit is set to be valid. The invention can solve the problem of partial data loss in the internal memory when the system crashes, downtime or deadlock occurs.
本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例一提供的系统异常时内存数据的保存方法流程图;FIG. 1 is a flowchart of a method for storing memory data when the system is abnormal provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的系统异常时messages信息数据的保存方法流程图;2 is a flowchart of a method for saving messages information data when the system is abnormal provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的系统异常时用户数据的保存方法流程图;3 is a flowchart of a method for saving user data when the system is abnormal provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的系统异常时内存数据的保存系统示意图。FIG. 4 is a schematic diagram of a system for saving memory data when the system is abnormal according to Embodiment 4 of the present invention.
图标:icon:
100-第一预留空间单元;200-第一数据保存单元;300-第二预留空间单元;400-第一写入单元;500-第二写入单元;600-第二数据保存单元。100-first reserved space unit; 200-first data storage unit; 300-second reserved space unit; 400-first writing unit; 500-second writing unit; 600-second data storage unit.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
目前,Linux提供了kdump功能,在发生系统崩溃、宕机或死锁时,可切换到kdump的内核,保存内存运行状态,供工程师分析。但是,该方案主要存在以下缺点:第一、系统崩溃、宕机或死锁时,Linux系统日志仍记录在日志缓存区,未保存到Linux系统的messages文件中,一旦重启或关机,缓存中的内容会丢失。第二、kdump收集的是通用信息,对用户应用所产生的数据信息,如果残留在内存,一旦重启或关机,则会丢失。第三、当用户应用向磁盘阵列写数据,为提高写入速度,会使用写缓存,一旦发生系统崩溃、宕机或死锁,重启或关机,会导致写缓存中的用户数据丢失。Currently, Linux provides the kdump function. When a system crash, downtime or deadlock occurs, it can switch to the kdump kernel to save the memory running status for engineers to analyze. However, this scheme mainly has the following disadvantages: first, when the system crashes, downtime or deadlocks, the Linux system log is still recorded in the log buffer area, and is not saved in the messages file of the Linux system. Content will be lost. Second, kdump collects general information. If the data information generated by the user application remains in the memory, it will be lost once it is restarted or shut down. Third, when the user application writes data to the disk array, in order to improve the writing speed, the write cache will be used. Once the system crashes, crashes or deadlocks, restarts or shuts down, the user data in the write cache will be lost.
基于此,本发明实施例提供的系统异常时内存数据的保存方法及系统,可以解决当出现系统崩溃、宕机或死锁时,内存中部分数据丢失的问题。Based on this, the method and system for storing memory data when the system is abnormal provided by the embodiments of the present invention can solve the problem of partial data loss in the memory when the system crashes, crashes or deadlocks occur.
为便于对本实施例进行理解,首先对本发明实施例所公开的系统异常时内存数据的保存方法进行详细介绍。In order to facilitate the understanding of this embodiment, firstly, the method for saving memory data when the system is abnormal disclosed in the embodiment of the present invention is introduced in detail.
实施例一:Embodiment one:
图1为本发明实施例一提供的系统异常时内存数据的保存方法流程图。FIG. 1 is a flowchart of a method for saving memory data when a system is abnormal according to Embodiment 1 of the present invention.
本实施例提供的方案为:当出现系统异常(包括系统崩溃、系统宕机或系统死锁)时,将系统或用户应用残留在内存中的重要数据或信息收集并保存下来,以使这部分数据不会因系统重启或关机而导致丢失。这里的数据分为两方面:需要写入Linux文件系统的messages信息数据(系统日志messages或用户数据),以及需要写入磁盘阵列的用户数据。The solution provided by this embodiment is: when there is a system abnormality (including system crash, system downtime or system deadlock), collect and save the important data or information left in the memory by the system or user application, so that this part Data will not be lost due to system restart or shutdown. The data here is divided into two aspects: messages information data (system log messages or user data) that needs to be written into the Linux file system, and user data that needs to be written into the disk array.
如图1所示,对系统异常时内存数据的保存方法进行了描述,其中步骤S110~步骤S120为保护需要写入Linux文件系统的messages信息数据的实现方案,步骤S130~步骤S160为保护需要写入磁盘阵列的用户数据的实现方案。系统异常时内存数据的保存方法包括:As shown in Figure 1, the method for saving memory data when the system is abnormal is described, in which steps S110 to S120 are the implementation scheme for protecting the messages information data that needs to be written into the Linux file system, and steps S130 to S160 are for protecting the messages that need to be written. The implementation scheme of user data entering the disk array. The storage methods of memory data when the system is abnormal include:
步骤S110,通过对原系统(原系统即为Linux系统)进行配置,在内存中预留地址空间M,并将原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至地址空间M中;Step S110, by configuring the original system (the original system is the Linux system), reserve the address space M in the memory, and save the log buffer data and user application buffer data cached in the original system to the address space M ;
步骤S120,将原系统切换至kdump系统,kdump系统挂载原系统的分区,基于地址空间M,将日志缓存区数据和用户应用缓存区数据分别保存至原系统中匹配的分区中;Step S120, switching the original system to the kdump system, the kdump system mounts the partitions of the original system, and based on the address space M, saves the log buffer data and the user application buffer data to the matching partitions in the original system;
步骤S130,对原系统进行分区,预留物理空间Z,并通过对原系统进行配置,在内存中预留缓存空间N;Step S130, partitioning the original system, reserving a physical space Z, and reserving a cache space N in memory by configuring the original system;
步骤S140,将物理空间Z中标志位有效的第一用户数据写入磁盘阵列;Step S140, writing the first user data whose flag bit is valid in the physical space Z into the disk array;
步骤S150,将实时产生的第二用户数据写入缓存空间N后,按照优化策略写入磁盘阵列;Step S150, after writing the second user data generated in real time into the cache space N, write it into the disk array according to the optimization strategy;
步骤S160,将原系统切换至kdump系统,将第二用户数据保存至物理空间Z中,并将第二用户数据的标志位设置为有效。另外,在原系统重启后,将重复执行步骤S140~步骤S160,即重复读取物理空间Z中的数据标志位,并将标志位有效的数据写入磁盘阵列,这样可以保证写入缓存中的数据不丢失。Step S160, switch the original system to the kdump system, save the second user data in the physical space Z, and set the flag bit of the second user data to valid. In addition, after the original system is restarted, steps S140 to S160 will be repeated, that is, the data flags in the physical space Z will be read repeatedly, and the data with valid flags will be written into the disk array, so that the data written in the cache can be guaranteed not lost.
可见,上述实施例所提供的方案,在Linux系统发生系统崩溃、宕机或死锁时,通过以下两方面对内存数据进行保护:It can be seen that, in the scheme provided by the foregoing embodiments, when a system crash, downtime or deadlock occurs in the Linux system, the memory data is protected through the following two aspects:
一方面,在内存先预留地址空间M,在发生系统崩溃,切换kdump的流程中,增加如下处理:将Linux系统的messages缓存区的数据或用户应用残留缓存区的数据先保存在预留的地址空间M中,切换到kdump系统后,挂载原系统分区,再将地址空间M中的数据写入匹配的原系统的messages或原系统的用户应用中。On the one hand, the address space M is reserved first in the memory. In the process of switching kdump when the system crashes, the following processing is added: first save the data in the messages buffer of the Linux system or the data in the residual buffer of the user application in the reserved In the address space M, after switching to the kdump system, mount the original system partition, and then write the data in the address space M into the matching messages of the original system or user applications of the original system.
另一方面,在原系统分区预留物理空间Z,内存预留缓存空间N;为提高性能用户数据先写入缓存空间N,再以优化策略写入磁盘阵列。当发生系统崩溃时,切换到kdump系统,并将缓存空间N的数据写入物理空间Z,设置数据标志位为有效。原系统重启后,读取物理空间Z上记录的数据标志位,若为有效,则将物理空间Z的数据写入磁盘阵列。On the other hand, the physical space Z is reserved in the original system partition, and the cache space N is reserved in the memory; in order to improve performance, user data is first written into the cache space N, and then written into the disk array with an optimized strategy. When a system crash occurs, switch to the kdump system, write the data in the cache space N into the physical space Z, and set the data flag to be valid. After the original system restarts, read the data flag recorded on the physical space Z, and if it is valid, write the data in the physical space Z to the disk array.
实施例二:Embodiment two:
图2为本发明实施例二提供的系统异常时messages信息数据的保存方法流程图。FIG. 2 is a flowchart of a method for saving messages information data when the system is abnormal according to Embodiment 2 of the present invention.
参照图2,在发生系统异常时,保护需要写入Linux文件系统的messages信息数据的实现方案包括如下步骤,其中,步骤S210~步骤S230为对在系统异常时内存数据的保存方法中步骤S110的展开描述,步骤S240~步骤S260为对步骤S120的展开描述。With reference to Fig. 2, when system abnormality takes place, the implementation plan of protecting the messages information data that needs to be written into the Linux file system includes the following steps, wherein, step S210~step S230 are to step S110 in the preservation method of internal memory data when system abnormality Expanded description, steps S240 to S260 are expanded descriptions of step S120.
步骤S210,通过对原系统的grub.conf(启动管理器文件)进行配置,在内存中预留得到地址空间M。具体的,在原系统配置grub.conf文件,通过配置memmap参数从内存中预留一块地址空间M。然后,启用原系统的kdump功能。Step S210, by configuring the grub.conf (boot manager file) of the original system, the address space M is reserved in the memory. Specifically, configure the grub.conf file in the original system, and reserve an address space M from the memory by configuring the memmap parameter. Then, enable the kdump function of the original system.
步骤S220,获取原系统的日志缓存区的结构体和用户应用数据缓存区的结构体。具体的,从内核获取原系统日志缓存区的地址指针、总长度、起始index、终止index的结构体,以及获取用户应用数据缓存区的地址指针、大小的结构体。Step S220, acquiring the structure of the original system's log buffer and the structure of the user application data buffer. Specifically, obtain the structure of the address pointer, total length, start index, and end index of the original system log buffer area from the kernel, and obtain the structure of the address pointer and size of the user application data buffer area.
步骤S230,在发生系统异常的情况下,调用panic(运行时恐慌函数),并通过日志缓存区的结构体将日志缓存区数据保存至地址空间;以及,通过用户应用数据缓存区的结构体将用户应用缓存区数据保存至地址空间。Step S230, in the case of a system exception, call panic (panic function at runtime), and save the log buffer data to the address space through the structure of the log buffer; and, save the data in the log buffer to the address space through the structure of the user application data buffer The user application buffer data is saved to the address space.
步骤S240,将地址空间进行映射,得到原系统具有访问权限的内存虚拟地址。具体的,将预留的地址空间M的起始地址通过ioremap_nocache方式映射为Linux系统可访问的内存虚拟地址。In step S240, the address space is mapped to obtain a memory virtual address that the original system has access rights to. Specifically, the start address of the reserved address space M is mapped to a memory virtual address accessible by the Linux system through the ioremap_nocache method.
步骤S250,将原系统切换至kdump系统,kdump系统挂载原系统的分区。具体的,将日志缓存区数据和用户应用缓存区数据保存至地址空间完成后再由Linux机制切换kdump系统;切换到kdump系统后,通过mount方式将原系统的分区挂载上来。In step S250, the original system is switched to the kdump system, and the kdump system mounts the partitions of the original system. Specifically, the log buffer data and user application buffer data are saved to the address space, and then the kdump system is switched by the Linux mechanism; after switching to the kdump system, the partition of the original system is mounted through the mount method.
步骤S260,通过内存虚拟地址对日志缓存区数据和用户应用缓存区数据进行读取并分别保存至匹配的分区中,比如原系统分区的messages文件或用户应用数据中。Step S260, read the log buffer data and the user application buffer data through the memory virtual address and store them in matching partitions, such as the messages file of the original system partition or the user application data.
实施例三:Embodiment three:
图3为本发明实施例三提供的系统异常时用户数据的保存方法流程图。FIG. 3 is a flowchart of a method for saving user data when the system is abnormal according to Embodiment 3 of the present invention.
参照图3,在发生系统异常时,保护需要写入磁盘阵列的用户数据的实现方案包括如下步骤,其中,步骤S310~步骤S320为对在系统异常时内存数据的保存方法中步骤S130的展开描述,步骤S330~步骤S350为对步骤S140的展开描述,步骤S370~步骤S380为对步骤S160的展开描述。Referring to FIG. 3 , when a system abnormality occurs, the implementation plan for protecting user data that needs to be written into the disk array includes the following steps, wherein steps S310 to S320 are an expanded description of step S130 in the storage method for internal memory data when the system is abnormal , step S330 to step S350 are expanded descriptions of step S140, and steps S370 to step S380 are expanded descriptions to step S160.
步骤S310,对原系统进行分区,并根据缓存大小预留相匹配的物理空间;Step S310, partitioning the original system, and reserving matching physical space according to the cache size;
步骤S320,通过对原系统的grub.conf进行配置,在内存中预留得到缓存空间;即:配置原系统的grub.conf文件,通过配置memmap参数从内存预留一块空间N作为数据写缓存。然后,启用原系统的kdump功能。Step S320, by configuring the grub.conf of the original system, reserve a cache space in the memory; that is, configure the grub.conf file of the original system, and reserve a space N from the memory as a data write cache by configuring the memmap parameter. Then, enable the kdump function of the original system.
步骤S330,通过用户应用获取物理空间Z中所记录数据的标志位;Step S330, obtaining the flag bit of the data recorded in the physical space Z through the user application;
步骤S340,判断标志位是否有效;如果有效,则执行步骤S350;如果无效,则不进行处理,并进入步骤S360;Step S340, judging whether the flag bit is valid; if valid, then execute step S350; if invalid, then do not process, and enter step S360;
步骤S350,通过用户应用进行校验并将对应的第一用户数据写入磁盘阵列;Step S350, verifying through the user application and writing the corresponding first user data into the disk array;
步骤S360,将实时产生的第二用户数据写入缓存空间后,按照优化策略写入磁盘阵列;Step S360, after writing the second user data generated in real time into the cache space, write it into the disk array according to the optimization strategy;
步骤S370,在发生系统异常的情况下,调用panic,并将原系统切换至kdump系统;Step S370, in the case of a system abnormality, call panic, and switch the original system to the kdump system;
步骤S380,基于kdump系统,将缓存空间N中的第二用户数据写入物理空间Z中,并将第二用户数据的标志位设置为有效。Step S380, based on the kdump system, write the second user data in the cache space N into the physical space Z, and set the flag bit of the second user data as valid.
另外,原系统重启后,再重复上述步骤S320~步骤S380,可保证写缓存数据不丢失。In addition, after the original system is restarted, the above steps S320 to S380 are repeated to ensure that the write cache data is not lost.
实施例四:Embodiment four:
图4为本发明实施例四提供的系统异常时内存数据的保存系统示意图。FIG. 4 is a schematic diagram of a system for saving memory data when the system is abnormal according to Embodiment 4 of the present invention.
本发明实施例还提供了系统异常时内存数据的保存系统,用于实现上述实施例所提供的系统异常时内存数据的保存方法。参照图4,系统异常时内存数据的保存系统包括如下单元:The embodiment of the present invention also provides a system for storing memory data when the system is abnormal, which is used to realize the method for storing memory data when the system is abnormal provided in the above embodiments. Referring to Figure 4, the memory data storage system when the system is abnormal includes the following units:
第一预留空间单元100,用于通过对原系统进行配置,在内存中预留地址空间,并将原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至地址空间中;The first reserved space unit 100 is configured to reserve an address space in the memory by configuring the original system, and save the log buffer data and user application buffer data cached in the original system into the address space;
第一数据保存单元200,用于将原系统切换至kdump系统,kdump系统挂载原系统的分区,基于地址空间,将日志缓存区数据和用户应用缓存区数据分别保存至原系统中匹配的分区中;The first
第二预留空间单元300,用于对原系统进行分区,预留物理空间,并通过对原系统进行配置,在内存中预留缓存空间;The second
第一写入单元400,用于将物理空间Z中标志位有效的第一用户数据写入磁盘阵列;The
第二写入单元500,用于将实时产生的第二用户数据写入缓存空间后,按照优化策略写入磁盘阵列;The
第二数据保存单元600,用于将原系统切换至kdump系统,将第二用户数据保存至物理空间中,并将第二用户数据的标志位设置为有效。The second
进一步的,第一预留空间单元100包括:Further, the first reserved space unit 100 includes:
通过对原系统的grub.conf进行配置,在内存中预留得到地址空间;By configuring the grub.conf of the original system, the address space is reserved in the memory;
获取原系统的日志缓存区的结构体和用户应用数据缓存区的结构体;Obtain the structure of the log buffer of the original system and the structure of the user application data buffer;
在发生系统异常的情况下,调用panic,并通过日志缓存区的结构体将日志缓存区数据保存至地址空间;In the case of a system exception, call panic, and save the data in the log buffer to the address space through the structure of the log buffer;
以及,通过用户应用数据缓存区的结构体将用户应用缓存区数据保存至地址空间。And, save the data in the user application buffer area to the address space through the structure of the user application data buffer area.
进一步的,第一数据保存单元200包括:Further, the first
将地址空间进行映射,得到原系统具有访问权限的内存虚拟地址;Map the address space to obtain the memory virtual address that the original system has access to;
将原系统切换至kdump系统,kdump系统挂载原系统的分区;Switch the original system to the kdump system, and the kdump system mounts the partition of the original system;
通过内存虚拟地址对日志缓存区数据和用户应用缓存区数据进行读取并分别保存至匹配的分区中。Read the data in the log buffer area and the data in the user application buffer area through the memory virtual address and save them in matching partitions respectively.
本发明实施例带来了以下有益效果:本发明提供了系统异常时内存数据的保存方法及系统,包括:通过对原系统进行配置,在内存中预留地址空间,并将原系统中缓存的日志缓存区数据和用户应用缓存区数据保存至地址空间中;将原系统切换至kdump系统,kdump系统挂载原系统的分区,基于地址空间,将日志缓存区数据和用户应用缓存区数据分别保存至原系统中匹配的分区中;对原系统进行分区,预留物理空间,并通过对原系统进行配置,在内存中预留缓存空间;将物理空间中标志位有效的第一用户数据写入磁盘阵列;将实时产生的第二用户数据写入缓存空间后,按照优化策略写入磁盘阵列;将原系统切换至kdump系统,将第二用户数据保存至物理空间中,并将第二用户数据的标志位设置为有效。本发明可以解决当出现系统崩溃、宕机或死锁时,内存中部分数据丢失的问题。The embodiments of the present invention bring the following beneficial effects: the present invention provides a method and system for storing memory data when the system is abnormal, including: by configuring the original system, reserving an address space in the memory, and storing the data cached in the original system The log buffer data and user application buffer data are saved in the address space; the original system is switched to the kdump system, and the kdump system mounts the partition of the original system, and based on the address space, the log buffer data and user application buffer data are saved separately to the matching partition in the original system; partition the original system, reserve physical space, and reserve cache space in the memory by configuring the original system; write the first user data with valid flags in the physical space to Disk array; after writing the second user data generated in real time into the cache space, write it into the disk array according to the optimization strategy; switch the original system to the kdump system, save the second user data in the physical space, and save the second user data The flag bit is set to valid. The invention can solve the problem of partial data loss in the internal memory when the system crashes, downtime or deadlock occurs.
本发明实施例所提供的系统,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,系统实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principles and technical effects of the system provided by the embodiments of the present invention are the same as those of the foregoing method embodiments. For brief description, for the parts not mentioned in the system embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
本发明实施例还提供一种电子设备,包括存储器、处理器,存储器中存储有可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述实施例提供的系统异常时内存数据的保存方法的步骤。The embodiment of the present invention also provides an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, the storage of the memory data when the system is abnormal provided by the above embodiment is realized. method steps.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器运行时执行上述实施例的系统异常时内存数据的保存方法的步骤。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the method for storing memory data when the system is abnormal in the foregoing embodiments are executed.
在本发明的描述中,需要说明的是,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for description purposes only, and should not be understood as indicating or implying relative importance.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them, and the scope of protection of the present invention is not limited thereto, although referring to the foregoing The embodiment has described the present invention in detail, and those of ordinary skill in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of the present invention within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810232379.7A CN110309008B (en) | 2018-03-20 | 2018-03-20 | Method and system for storing memory data in case of system abnormality |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810232379.7A CN110309008B (en) | 2018-03-20 | 2018-03-20 | Method and system for storing memory data in case of system abnormality |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110309008A CN110309008A (en) | 2019-10-08 |
| CN110309008B true CN110309008B (en) | 2023-06-20 |
Family
ID=68073851
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810232379.7A Active CN110309008B (en) | 2018-03-20 | 2018-03-20 | Method and system for storing memory data in case of system abnormality |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110309008B (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105242981A (en) * | 2015-10-30 | 2016-01-13 | 浪潮电子信息产业股份有限公司 | Configuration method of Kdump and computer device |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7509521B2 (en) * | 2004-08-23 | 2009-03-24 | Microsoft Corporation | Memory dump generation with quick reboot |
| US10949415B2 (en) * | 2011-03-31 | 2021-03-16 | International Business Machines Corporation | Logging system using persistent memory |
| US9218234B2 (en) * | 2012-04-27 | 2015-12-22 | Marvell World Trade Ltd. | Memory dump and analysis in a computer system |
| US9026860B2 (en) * | 2012-07-31 | 2015-05-05 | International Business Machines Corpoation | Securing crash dump files |
| CN103809989B (en) * | 2012-11-08 | 2017-07-11 | 英华达(南京)科技有限公司 | The method that operating system occurs reading complete kernel daily record under core collapse case |
| CN105204977A (en) * | 2014-06-30 | 2015-12-30 | 中兴通讯股份有限公司 | System exception capturing method, main system, shadow system and intelligent equipment |
| CN106571954B (en) * | 2016-10-24 | 2020-01-07 | 上海斐讯数据通信技术有限公司 | Method and device for detecting abnormal restart reason of AP (access point) equipment |
-
2018
- 2018-03-20 CN CN201810232379.7A patent/CN110309008B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105242981A (en) * | 2015-10-30 | 2016-01-13 | 浪潮电子信息产业股份有限公司 | Configuration method of Kdump and computer device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110309008A (en) | 2019-10-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10289555B1 (en) | Memory read-ahead using learned memory access patterns | |
| JP6310061B2 (en) | Selective retention of application program data migrated from system memory to non-volatile data storage | |
| US10387313B2 (en) | Method and system for ensuring reliability of cache data and metadata subsequent to a reboot | |
| CA2523761C (en) | Using external memory devices to improve system performance | |
| CN108459826B (en) | Method and device for processing IO (input/output) request | |
| US9244839B2 (en) | Methods and apparatus for supporting persistent memory | |
| US20150039837A1 (en) | System and method for tiered caching and storage allocation | |
| US10049036B2 (en) | Reliable distributed messaging using non-volatile system memory | |
| CN105677580A (en) | Method and device for accessing cache | |
| US9760480B1 (en) | Enhanced logging using non-volatile system memory | |
| US9767015B1 (en) | Enhanced operating system integrity using non-volatile system memory | |
| US9940023B2 (en) | System and method for an accelerator cache and physical storage tier | |
| CN103064797B (en) | Data processing method and virtual machine management platform | |
| US12061557B2 (en) | Method for storing L2P table, system, device, and medium | |
| CN115543532A (en) | Processing method and device for missing page exception, electronic equipment and storage medium | |
| CN103049392A (en) | Method and device for achieving cache catalogue | |
| WO2015196378A1 (en) | Method, device and user equipment for reading/writing data in nand flash | |
| CN112346647A (en) | Data storage method, apparatus, device and medium | |
| WO2025123859A1 (en) | Erasure code data updating method and apparatus | |
| US11249914B2 (en) | System and methods of an efficient cache algorithm in a hierarchical storage system | |
| CN110309008B (en) | Method and system for storing memory data in case of system abnormality | |
| WO2025021047A1 (en) | Command processing method, log processing method, and storage device | |
| CN110928890B (en) | Data storage method and device, electronic equipment and computer readable storage medium | |
| CN110119641B (en) | Disk protection method and system based on Linux and computer readable storage medium | |
| US9513824B2 (en) | Control method, control device, and recording medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |