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

A memory setting method and device, electronic equipment, and storage medium

A technology of memory and terminal equipment, which is applied in the computer field and can solve problems such as occupying different physical pages

Active Publication Date: 2021-05-11
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the Windows system, there is also the problem that the contents are the same, but occupy different physical pages.

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 memory setting method and device, electronic equipment, and storage medium
  • A memory setting method and device, electronic equipment, and storage medium
  • A memory setting method and device, electronic equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0045] refer to figure 1 , showing a flow chart of the steps of a memory setting method provided by an embodiment of the present invention, which is applied to a simulator, the simulator runs in a user space of a terminal device, the terminal device adopts a first operating system, and the The emulator uses a second operating system that is heterogeneous with the first operating system, and the method may specifically include the ...

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

An embodiment of the present invention provides a memory setting method, the method comprising: obtaining a memory application instruction generated by a process corresponding to the simulator; and determining a target mapping for the first virtual memory space according to the memory application instruction number of times; determine the remaining mapping times of the first virtual memory space; judge whether the remaining mapping times are zero; if not, use the copy-on-write instruction to map the first virtual memory space to the second virtual memory space, updating the remaining mapping times, and returning to the step of judging whether the remaining mapping times are zero; if so, stopping using the copy-on-write instruction to map the first virtual memory space to the second virtual memory space. It reduces the occupation of the physical memory space by the process, and realizes the simulation application of the KSM technology of the Linux system in the Windows system, without simulating the entire Linux system.

Description

technical field [0001] The invention relates to the field of computers, in particular to a memory setting method and device, electronic equipment, and a storage medium. Background technique [0002] In the memory management of the operating system kernel, physical memory exists in the form of memory pages. Among them, there is a common phenomenon that there are many same contents in the memory, but they occupy different physical pages. For example, there are 10 physical pages whose contents are all 0. Although the contents are all 0, they occupy 10 pages of physical memory, which is obviously a waste. In order to solve this problem, in the Linux operating system, the kernel's memory deduplication mechanism (KSM, Kernel Samepage Merging) can merge the same page content into the same physical page, and only create a separate physical page when a modification occurs. [0003] In the Windows system, there is also the problem that the content is the same, but occupies different...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02
CPCG06F12/0246G06F12/109G06F2212/65
Inventor 刘京洋姚奕涛邹永斌
Owner NETEASE (HANGZHOU) NETWORK CO LTD
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