Prefetching starting method and prefetching starting device of operating system

An operating system and prefetching technology, applied in the computer field, can solve problems such as too many files, long startup time, and low startup speed, so as to reduce redundant data, prefetch small amount of data, and reduce page errors The effect of the number of times

Active Publication Date: 2013-12-04
TENCENT CLOUD COMPUTING BEIJING CO LTD
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] However, the granularity of prefetching in the prefetching technical scheme of the existing operating system is a file. When the operating system is started, the prefetched files are too many and too large, and the data that actually occurs page faults for disk I / O is read on demand. It does not require complete file data, and a large amount of file data is redundant data, so this existing technology not only wastes space, but also affects some useful pages being swapped out to the disk, so its startup speed is also slow relatively low, longer start-up time

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
  • Prefetching starting method and prefetching starting device of operating system
  • Prefetching starting method and prefetching starting device of operating system
  • Prefetching starting method and prefetching starting device of operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0028] figure 1 It is a flow chart of the prefetch startup method of the operating system in the present invention. see figure 1 , the method mainly includes:

[0029] Step 101: When receiving an instruction to start the operating system, load the prefetch data corresponding to the operating system from the disk into the memory, the prefetch data includes the corresponding page faults that occurred during the historical startup process of the operating system read file blocks;

[0030] Step 102, load the code of the operating system, so as to start the operating system.

[0031] In one scenario, another important factor that causes the operating system to start at a low speed in the prior art is that page faults perform on-demand I / O reading from the disk, which will cause the I / O offset to jump on the disk, thus The startup spee...

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 prefetching starting method and a prefetching starting device of an operating system. The prefetching starting method includes that a prefetching data loading module loads prefetching data corresponding to the operating system from a disk into an internal storage after receiving a command of starting the operating system, wherein the prefetching data include file blocks correspondingly read by page mistakes generated during historical starting of the operating system, and a code loading module loads a code of the operating system to start the operating system. By the prefetching starting method and the prefetching starting device, starting speed of the operating system can be increased.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for prefetching and starting an operating system. Background technique [0002] Boot time is an important performance parameter of the operating system, which greatly affects the user's work efficiency. During the startup process of the operating system, when the execution reaches a certain place and its corresponding virtual address is not in the working set of the process (Working Set), that is, when the virtual page accessed by the current process is not mapped to a valid physical page, it will happen Page Fault. Among the page faults that occur, if the virtual page is mapped to a physical page in other states in memory, a soft page fault (Soft Fault) occurs, if the virtual page is mapped to the image file on the disk , that is, the corresponding content is not in the physical memory and needs to be read from the image file, then a hard page fault (Hard Fault) oc...

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 Applications(China)
IPC IPC(8): G06F9/445
Inventor 边超朱文焕
Owner TENCENT CLOUD COMPUTING BEIJING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products