Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and a system for managing a kernel memory of an operating system in a user mode

An operating system and user-mode technology, which is used in user-mode management of kernel memory, embedded systems, and the Internet of Things. The problem is to reduce the possibility of hidden storage channels, reduce the possibility of incorrect implementation, and reduce the memory and system burden.

Active Publication Date: 2019-08-09
GUANGDONG UNIVERSITY OF BUSINESS STUDIES
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the kernel memory allocation granularity of this interface is in units of pages, which is very inflexible, and recording the redefinition data itself is very burdensome on small embedded systems
[0004] The kernel memory management method of the existing operating system is not flexible enough:
[0005] (1) Operating systems such as Linux based on POSIX API do not allow users to manage kernel memory in user mode at all;
[0006] (2) The existing seL4 and other mechanisms that allow redefining pages into kernel memory pages and user memory pages can only manage kernel memory at the page level, and the granularity is too coarse;
[0007] (3) According to the existing seL4 kernel memory management mechanism, if the kernel memory is to create a kernel object, then the kernel object on the same page must be of the same type, which imposes many restrictions on the use of kernel objects in user mode
Moreover, this limits the ability to use large pages to store kernel objects: if large pages are used, the kernel objects on a large page must be of the same type. If these kernel objects cannot be used up, the space of these kernel objects is wasted;
[0008] (4) According to the existing seL4 kernel memory management mechanism, any page may be defined as a kernel memory page or a user memory page, so a large number of data structures and reference counts should be reserved to store these definition information, which is very important for small embedded system creates enormous storage pressure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and a system for managing a kernel memory of an operating system in a user mode
  • A method and a system for managing a kernel memory of an operating system in a user mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The concept, specific structure and technical effects of the present disclosure will be clearly and completely described below in conjunction with the embodiments and drawings, so as to fully understand the purpose, scheme and effect of the present disclosure. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0036] Such as figure 1 Shown is a flow chart of a method for managing operating system kernel memory in user mode according to the present disclosure, combined below figure 1 A method for managing operating system kernel memory in a user mode according to an embodiment of the present disclosure will be described.

[0037] The present disclosure proposes a method for managing operating system kernel memory in user mode, which specifically includes the following steps:

[0038] Step 1, when the user mode program initiates a request to create a kerne...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system for managing a kernel memory of an operating system in a user mode. The method comprises steps that a real starting kernel virtual address and a real terminating kernel virtual address of the kernel object are calculated; and the two addresses are transmitted to the kernel memory registration table module, and a thread kernel object of the user mode program is created within the memory range of the absolute initial address specified by the user, so that the flexibility of managing the kernel memory by the user mode can be greatly improved, and meanwhile, the memory required for realizing the function and the system load are reduced. The kernel memory management strength can be any fine granularity defined by a user, the possibility of incorrectimplementation is greatly reduced, an application program does not need to know a real kernel virtual address, the possibility of existence of a hidden storage channel is reduced, and the method is suitable for a micro-kernel operating system.

Description

technical field [0001] The present disclosure relates to the field of Internet of Things, embedded systems, and operating system technologies, in particular to a method and system for managing operating system kernel memory in a user state, and is especially applicable to the field of managing kernel memory in a user state of a microkernel operating system. Background technique [0002] An important feature of modern microkernels is that their kernel memory is managed by userland. This enables the kernel memory originally in the kernel to be managed by a server with corresponding authorization in the user mode, and its specific management policies can be completed in the user mode, which increases the flexibility of the system. [0003] There are two types of existing kernel memory management techniques. One is managed in kernel mode, and the other is managed in user mode. Existing popular operating systems such as Linux manage kernel memory completely in the kernel state,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/50
CPCG06F9/5016
Inventor 肖银皓
Owner GUANGDONG UNIVERSITY OF BUSINESS STUDIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products