A hybrid memory management method for lightweight operating system of IoT terminal
By adopting a hybrid memory management method in the lightweight operating system of the IoT terminal, using multiple units to prioritize data, diversion processing and classified storage, the problem of insufficient complexity and scalability of hybrid memory management is solved, and high-speed and effective storage of data is achieved.
Patent Information
- Application Number
- CN202211025769.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-08-25
AI Technical Summary
In the prior art, the management method of hybrid memory is complex, and cannot guarantee high-speed and effective storage of data, and lacks scalability. It cannot be effectively adjusted when the data is large, and its adaptability is poor.
By adopting a hybrid memory management method in the lightweight operating system of the IoT terminal, using the access docking unit, storage auditing unit, storage management unit and storage expansion unit, data priority sorting, address identification, header coverage marking, data shunt processing and classified storage, combined with the advantages of non-volatile memory and dynamic random access memory, the classified storage and scalability optimization of conventional data and important data is achieved.
It realizes high-speed and effective storage of large amounts of data, has excellent scalability, avoids data loss after power outage, and improves the speed and adaptability of data storage.
Smart Images

Figure CN115543606B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of memory management, and in particular to a hybrid memory management method for a lightweight operating system of an Internet of Things terminal. Background Art
[0002] In the development process of virtualization software systems, lightweight settings can effectively reduce development costs and development difficulties. When the client system runs on a virtual machine, it is necessary to ensure high-speed and effective storage of data, which makes it difficult to ensure the smooth use of lightweight systems. Conventional storage methods include two major categories: non-volatile memory and volatile memory. A single storage method often cannot achieve optimal storage under actual conditions. For example, the memory management method and system based on heterogeneous hybrid memory described in application number 201410830292.1 detects whether there is an NVM flag in a memory application request and determines whether the memory application request meets the permission requirements, and selects to allocate DRAM memory or NVM memory based on the results of the detection and judgment, and can manage NVM memory and DRAM memory at the same time.
[0003] Based on the retrieval of the above information, it can be seen that hybrid memory has obvious advantages, but the management method of conventional hybrid memory is relatively complicated, cannot guarantee high-speed and efficient storage of data, and lacks scalability. When the data is large, it cannot be effectively adjusted and has poor adaptability. Summary of the invention
[0004] 1. Technical issues to be solved
[0005] In view of the shortcomings of the prior art, the present invention provides a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, which solves the problems that the conventional hybrid memory management method is relatively complex, cannot guarantee high-speed and effective storage of data, lacks scalability, cannot be effectively adjusted when the data is large, and has poor adaptability.
[0006] (II) Technical solution
[0007] To achieve the above object, the present invention provides the following technical solution: a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, specifically comprising the following steps:
[0008] Step 1: Access docking: Establish different docking ports through the access docking unit to dock with the virtual machine and the virtual machine firewall. After the data generated by the virtual machine is verified by the security wall, the data is imported into the storage audit unit;
[0009] Step 2, storage audit: Use the storage audit unit to set the priority of data storage generated by the virtual machine, specifically including the device data in the virtual machine and the browsing data of the device, and implement the software priority sorting. After receiving the data generated by the virtual machine in step 1, the data is address identified, and different levels of marks are added according to the software priority sorting level corresponding to the identified address, as the header overlay mark of the corresponding data;
[0010] Step 3, storage management: The storage management unit establishes a mapping relationship between different levels of tags and the importance of data. After the data with the header cover tag completed in step 2 is transferred to the storage management unit, the header tag of the data is identified. According to the established mapping relationship, the data is separated into important data and regular data, and the important data is stored in a non-volatile memory, and the regular data is temporarily stored as a whole in a dynamic random access memory.
[0011] Step 4, storage expansion: according to the mapping relationship established in step 3, the conventional data in step 3 is transferred to the storage expansion unit, the storage expansion unit is connected to a plurality of extended memories, and classified storage is performed according to the importance corresponding to the head coverage mark in the conventional data;
[0012] Step 5: Primary storage: The device data in the virtual machine in step 2 is directly stored in the primary storage module.
[0013] By adopting the above technical solution, the importance of the corresponding data of the software is identified by setting the software priority sorting, and the data recognition speed is improved by adding a header overlay mark. After establishing the mapping relationship between the importance of the data and the different levels of tags, it is used as a storage management system to realize the classified storage of regular data and important data, which provides convenience for hybrid memory management. At the same time, the classified storage of regular data is carried out in the form of storage expansion, which effectively avoids data loss after power failure and realizes high-speed and efficient storage of large amounts of data, and has excellent scalability.
[0014] The present invention is further configured as follows: the access docking unit is docked with the storage audit unit, the storage audit unit is docked with the storage expansion unit and the storage management unit respectively, and the storage management unit is docked with the storage expansion unit.
[0015] The present invention is further configured as follows: the access docking unit includes a port building module, a security verification module and a data import module;
[0016] The port building module is used to establish different docking ports to connect with the virtual machine and the virtual machine firewall;
[0017] The security verification module is used to perform security verification on the data generated by the virtual machine using a protective wall;
[0018] The data import module is used to import the security-verified data into the storage audit unit.
[0019] By adopting the above technical solution, the management of hybrid memory is directly connected to the virtual machine firewall to implement security audit of the data generated by the virtual machine, thereby ensuring safe and effective data storage.
[0020] The present invention is further configured as follows: the storage audit unit includes an address recognition module, a priority setting module and a mark covering module, the address recognition module is connected to the priority setting module, and the priority setting module is connected to the mark covering module.
[0021] The present invention is further configured as follows: the address identification module is used to perform address identification on the data after receiving the data generated by the virtual machine in the access docking unit;
[0022] The priority setting module is used to set the priority of data storage generated by the virtual machine, specifically including device data in the virtual machine and browsing data of the device, so as to prioritize the software;
[0023] The tag coverage module is used to add tags of different levels according to the software priority level corresponding to the identified address, as the header coverage mark of the corresponding data.
[0024] By adopting the above technical solution, the device to which the data belongs is identified by means of address recognition, thereby ensuring effective coordination between priority setting and hybrid memory management, and using the header overlay identifier as the identification result, the processing difficulty of subsequent storage of important data and regular data in the hybrid memory is reduced, thereby increasing the data storage speed.
[0025] The present invention is further configured as follows: the storage management unit includes an identification recognition module, a data diversion module, a fixed-frame storage module and a variable storage module; the identification recognition module is connected to the data diversion module; and the identification recognition module is connected to the fixed-frame storage module and the variable storage module respectively.
[0026] The present invention is further configured as follows: the identification recognition module is used to establish a mapping relationship between different levels of marks and data importance, receive data transmitted by the storage and review unit, and recognize the header mark of the data;
[0027] The data diversion module is used to divert important data and regular data according to the mapping relationship established by the identification module;
[0028] The freeze-frame storage module acts as a non-volatile memory to store important data, including basic data of devices in the virtual machine and browsing data generated by important devices defined by users;
[0029] The volatile storage module acts as a dynamic random access memory to temporarily store the regular data as a whole. The regular data is the browsing data generated by the device that the user has not performed important device identification.
[0030] By adopting the above technical solution, the data after the header cover mark is added is identified and stored in the form of data diversion, so that the non-volatile memory can be used to protect the storage of important data. At the same time, the advantages of dynamic random access memory are combined to store regular data, thereby realizing effective management of hybrid memory.
[0031] The present invention is further configured as follows: the storage expansion unit includes a primary storage module, a secondary storage module and an N-level storage module, wherein the primary storage module, the secondary storage module and the N-level storage module are all non-volatile memories.
[0032] By adopting the above technical solution and using several non-volatile memories for memory expansion, effective storage of conventional data can be achieved. Moreover, through the setting of non-volatile memories, a large amount of data can be effectively stored while convenient adjustments can be made. While having excellent adaptability, it provides excellent scalability for hybrid memory management and provides smooth software development.
[0033] (III) Beneficial effects
[0034] The present invention provides a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, which has the following beneficial effects:
[0035] (1) The hybrid memory management method of the lightweight operating system of the IoT terminal identifies the importance of the corresponding data of the software by setting the software priority sorting, and improves the data recognition speed by adding a header overlay mark. After establishing the mapping relationship between the importance of the data and the different levels of marks, it is used as a storage management system to realize the classified storage of regular data and important data. While providing convenience for hybrid memory management, it performs classified storage of regular data in the form of storage expansion, effectively avoiding data loss after power failure, and realizing high-speed and effective storage of large amounts of data, with excellent scalability.
[0036] (2) The hybrid memory management method of the lightweight operating system of the IoT terminal directly connects the management of the hybrid memory with the virtual machine firewall to achieve security audit of the data generated by the virtual machine, thereby ensuring the safe and effective storage of data.
[0037] (3) The hybrid memory management method of the lightweight operating system of the IoT terminal uses address recognition to identify the device to which the data belongs, thereby ensuring the effective match between the priority setting and the hybrid memory management, and using the header coverage mark as the recognition result to reduce the processing difficulty for the subsequent storage of important data and regular data in the hybrid memory, thereby improving the data storage speed.
[0038] (4) The hybrid memory management method of the lightweight operating system of the IoT terminal uses data diversion to identify and store the data after the header cover mark is added, thereby realizing the non-volatile memory to protect the storage of important data. At the same time, it combines the advantages of dynamic random access memory to store conventional data and realize effective management of hybrid memory. It uses a number of non-volatile memories to expand the memory to realize effective storage of conventional data. In addition, through the setting of non-volatile memory, it can effectively store a large amount of data and can also be easily adjusted. It has excellent adaptability and provides excellent scalability for the management of hybrid memory, providing smooth guarantee for software development. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a system principle block diagram of the present invention;
[0040] Figure 2 A system principle block diagram of an access docking unit of the present invention;
[0041] Figure 3 It is a system principle block diagram of the storage audit unit of the present invention;
[0042] Figure 4 It is a system principle block diagram of the storage management unit of the present invention;
[0043] In the figure, 1. Access docking unit; 2. Storage audit unit; 3. Storage management unit; 4. Storage expansion unit; 5. Port construction module; 6. Security verification module; 7. Data import module; 8. Address identification module; 9. Priority setting module; 10. Tag coverage module; 11. Identity identification module; 12. Data diversion module; 13. Fixed-frame storage module; 14. volatile storage module; 15. Level 1 storage module; 16. Level 2 storage module; 17. N-level storage module. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] See also Figure 1-4 , the embodiment of the present invention provides a technical solution:
[0046] Embodiment 1
[0047] A hybrid memory management method for a lightweight operating system of an Internet of Things terminal specifically comprises the following steps:
[0048] Step 1: Access docking: establish different docking ports through the access docking unit 1, dock with the virtual machine and the virtual machine firewall, and import the data generated by the virtual machine into the storage audit unit 2 after the security verification of the firewall;
[0049] Step 2, storage audit: Use the storage audit unit 2 to set the priority of the data storage generated by the virtual machine, specifically including the device data in the virtual machine and the browsing data of the device, and implement the software priority sorting. After receiving the data generated by the virtual machine in step 1, the data is address identified, and different levels of marks are added according to the software priority sorting level corresponding to the identified address, as the header overlay mark of the corresponding data;
[0050] Step 3, storage management: establish a mapping relationship between different levels of marks and data importance. After the data with the head cover mark completed in step 2 is transferred to the storage management unit 3, the head mark of the data is identified. According to the established mapping relationship, the data is separated into important data and regular data, and the important data is stored in a non-volatile memory, and the regular data is temporarily stored as a whole in a dynamic random access memory.
[0051] Step 4, storage expansion: According to the mapping relationship established in step 3, the regular data in step 3 is transferred to the storage expansion unit 4. The storage expansion unit 4 is connected to several extended memories and classified and stored according to the importance corresponding to the header coverage mark in the regular data.
[0052] In this embodiment, the hybrid memory is managed by using a header overlay tag, and in combination with an extended memory, a large amount of data can be stored.
[0053] Embodiment 2
[0054] A hybrid memory management system for a lightweight operating system of an Internet of Things terminal comprises an access docking unit 1, a storage audit unit 2, a storage management unit 3 and a storage expansion unit 4, wherein the access docking unit 1 is docked with the storage audit unit 2, the storage audit unit 2 is docked with the storage expansion unit 4 and the storage management unit 3 respectively, and the storage management unit 3 is docked with the storage expansion unit 4. A hybrid memory management method for a lightweight operating system of an Internet of Things terminal specifically comprises the following steps:
[0055] Step 1, access docking: the port building module 5 establishes different docking ports to dock with the virtual machine and the virtual machine firewall. After the security verification module 6 uses the protective wall to perform security verification on the data generated by the virtual machine, the data import module 7 is used to import the security verified data into the storage audit unit 2;
[0056] Step 2, storage audit: The priority setting module 9 sets the priority of the data storage generated by the virtual machine, specifically including the device data in the virtual machine and the browsing data of the device, and implements the software priority sorting. After receiving the data generated by the virtual machine in step 1, the address recognition module 8 identifies the address of the data, and the mark coverage module 10 adds different levels of marks according to the software priority sorting level corresponding to the identified address as the header coverage mark of the corresponding data;
[0057] Step 3, storage management: the identification module 11 establishes a mapping relationship between different levels of marks and the importance of data. After the data with the head covering mark is transmitted to the identification module 11 in step 2, the head mark of the data is identified. The data diversion module 12 performs diversion processing on the important data and the regular data according to the established mapping relationship. The fixed-frame storage module 13 stores the important data as a non-volatile memory, and the volatile storage module 14 performs overall temporary storage of the regular data as a dynamic random access memory.
[0058] Step 4, storage expansion: according to the mapping relationship established in step 3, the conventional data in step 3 is transferred to the secondary storage module 16 and the N-level storage module 17. The primary storage module 15, the secondary storage module 16 and the N-level storage module 17 are extended memories of non-volatile memory properties, and are classified and stored according to the importance corresponding to the header coverage mark in the conventional data;
[0059] Step 5, primary storage: in step 2, the device data in the virtual machine is directly stored in the primary storage module 15 after being marked with a header overwrite mark, so as to reduce the storage consumption of the storage management unit 3 .
[0060] Compared with the first embodiment, this embodiment utilizes a primary storage module 15, a secondary storage module 16 and an N-level storage module 17 with non-volatile memory properties to form a storage expansion unit 4, and directly sets the primary storage module 15 as the storage of basic data of the virtual machine device, thereby effectively reducing the memory occupancy of a large amount of basic data in the virtual machine in the storage management unit 3, ensuring high-speed storage of important data. Once the storage management unit is damaged, the data can be searched in the extended storage unit 4, which can be used as backup storage and also as extended storage of data, with greater flexibility.
[0061] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A hybrid memory management method for a lightweight operating system of an IoT terminal. Features: The specific steps include: Step 1, access docking: different docking ports are established through the access docking unit (1), and the virtual machine and the virtual machine firewall are docked. After the data generated by the virtual machine is verified by the security of the firewall, the data is imported into the storage audit unit (2); Step 2, storage audit: using the storage audit unit (2) to set the priority of the data storage generated by the virtual machine, specifically including the device data in the virtual machine and the browsing data of the device, to implement the software priority sorting, after receiving the data generated by the virtual machine in step 1, the data is address identified, and different levels of marks are added according to the software priority sorting level corresponding to the identified address, as the header overlay mark of the corresponding data; Step 3, storage management: the storage management unit (3) establishes a mapping relationship between different levels of marks and data importance. After the data with the header cover mark completed in step 2 is transmitted to the storage management unit (3), the header mark of the data is identified. According to the established mapping relationship, the data is separated into important data and regular data, and the important data is stored in the non-volatile memory, and the regular data is temporarily stored in the dynamic random access memory. Step 4, storage expansion: according to the mapping relationship established in step 3, the conventional data in step 3 is transferred to the storage expansion unit (4), the storage expansion unit (4) is connected to a plurality of expansion memories, and classified storage is performed according to the importance corresponding to the head coverage mark in the conventional data; Step 5: Primary storage: The device data in the virtual machine in step 2 is directly stored in the storage expansion unit (4).
2. According to claim 1, a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, Features: The access docking unit (1) is docked with the storage audit unit (2), the storage audit unit (2) is docked with the storage expansion unit (4) and the storage management unit (3) respectively, and the storage management unit (3) is docked with the storage expansion unit (4).
3. According to claim 1, a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, Features: The access docking unit (1) comprises a port building module (5), a security verification module (6) and a data import module (7); The port building module (5) is used to establish different docking ports to dock with the virtual machine and the virtual machine firewall; The security verification module (6) is used to perform security verification on the data generated by the virtual machine using a protective wall; The data import module (7) is used to import the data that has passed the security verification into the storage and audit unit (2).
4. According to claim 1, a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, Features: The storage audit unit (2) comprises an address recognition module (8), a priority setting module (9) and a mark covering module (10); the address recognition module (8) is connected to the priority setting module (9), and the priority setting module (9) is connected to the mark covering module (10).
5. According to claim 4, a hybrid memory management method for a lightweight operating system of an Internet of Things terminal, Features: The address recognition module (8) is used to perform address recognition on the data after receiving the data generated by the virtual machine in the access docking unit (1); The priority setting module (9) is used to set the priority of data storage generated by the virtual machine, specifically including device data in the virtual machine and device browsing data, so as to prioritize the software; The tag covering module (10) is used to add tags of different levels according to the software priority ranking level corresponding to the identified address, as the header covering mark of the corresponding data.
6. The hybrid memory management method of a lightweight operating system for an Internet of Things terminal according to claim 1, Features: The storage management unit (3) comprises an identification recognition module (11), a data diversion module (12), a fixed-frame storage module (13) and a variable storage module (14); the identification recognition module (11) is connected to the data diversion module (12); and the identification recognition module (11) is connected to the fixed-frame storage module (13) and the variable storage module (14) respectively.
7. The hybrid memory management method of a lightweight operating system for an Internet of Things terminal according to claim 6, Features: The identification recognition module (11) is used to establish a mapping relationship between different levels of marks and data importance, receive data transmitted by the storage and review unit (2), and recognize the header mark of the data; The data diversion module (12) is used to perform diversion processing on important data and regular data according to the mapping relationship established by the identification recognition module (11); The freeze-frame storage module (13) serves as a non-volatile memory to store important data; The volatile storage module (14) acts as a dynamic random access memory to temporarily store conventional data as a whole.
8. The hybrid memory management method of a lightweight operating system for an Internet of Things terminal according to claim 1, Features: The storage expansion unit (4) comprises a primary storage module (15), a secondary storage module (16) and an N-level storage module (17), wherein the primary storage module (15), the secondary storage module (16) and the N-level storage module (17) are all non-volatile memories.
Citation Information
Patent Citations
Memory Management Methods and Systems Based on Heterogeneous Hybrid Memory
CN105786725B
Mixed memory data backup system and method
CN105183379A
System and method for facilitating cluster-level cache and memory space
CN110795206A