Kernel-Mode Memory Recovery With Interruption Sequencing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing electronic apparatuses face deadlocks during memory swap operations in kernel mode due to collisions between kernel processes when interruptions occur, leading to errors and instability.
Innovation Solution
The electronic apparatus includes a processor that manages memory recovery by temporarily preventing concurrent access to data during swap operations, prioritizes processes based on priority, and uses compression/decompression to optimize memory usage, thereby reducing the likelihood of collisions and ensuring stable swap operations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If memory swap operations are performed in kernel mode to improve memory recovery efficiency, then the speed of memory recovery is improved, but collisions between kernel processes occur when interruptions are generated, leading to deadlocks and system errors
Solution Approach 1:
The patent introduces a mediator mechanism (interruption registration and handling system) between the swap-in operation and the interruption handler. When a swap-in operation is detected, the system registers an interruption that will be handled after the swap completes, ensuring proper sequencing and preventing deadlocks while maintaining kernel mode efficiency
Solution Approach 2:
The patent performs preliminary actions by detecting swap-in operations in advance and registering appropriate interruptions before they are needed. This allows the system to prepare the necessary handlers and ensure proper ordering of operations, preventing collisions before they occur while maintaining high-speed kernel mode operation
Data Source
AI summary
An electronic apparatus may include a processor configured to store data of a user process related to a user area assigned to a first memory or a system process related to a system area assigned to the first memory in a second memory, in response to a memory recovery event for the first memory, and allow an area of the first memory corresponding to at least one of the user area or the system area to store other data, and perform one of restoration of the data based on the access of the first process and restoration of the data based on an access of the second process and prevent the other one from being performed, in response to identification of the access of the second process during the access of the first process to the data stored in the second memory through the system area.


