Method and apparatus for starting application program

A technology of application program and startup process, applied in the computer field, can solve the problems of long application program cold start time, slow application program speed, discontinuous reading position, etc. Effects of reducing the number of page errors and improving startup speed and startup efficiency

Active Publication Date: 2012-09-12
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the rapid development of computer technology, users will install various applications. The disk I / O during the application startup process is basically introduced by Page Fault. When the virtual address of the process is not in the working set (Working Set) of the process, Page Fault will occur. The order of Page Fault is generally like this: some pages are read from a certain part of a file, and then some pages may be read from a distance from the same file. Read some pages from another part farther away, then read some pages from a different file, possibly read pages from a directory, and then read some pages from the first file, read The file is discontinuous, and the reading position may also be discontinuous. This jumpy reading greatly slows down the speed of starting the application every time. If the corresponding content is not in the physical memory, it needs to be read from the file and trigger Hard Fault, one of the main reasons for the long cold start time of the application is that there are too many Hard Faults
The Hard Fault is read on demand (16KB or 32KB at a time), and considering other I / O of the system, it may cause the I / O offset to jump on the disk, thus greatly slowing down the speed of each access. The speed reduces the startup efficiency of the application, and the startup speed is one of the most important performance indicators of the application, which directly affects the user's impression of the application experience

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
  • Method and apparatus for starting application program
  • Method and apparatus for starting application program
  • Method and apparatus for starting application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0043] Before introducing the application program startup method and device provided by the present invention, the key terms involved in the present invention are described as follows:

[0044] Page fault: When the virtual page accessed by the current process is not mapped to a valid physical page, and the application program wants to use a virtual memory page saved on the hard disk, the operating system will find the page on the hard disk and transfer it to the physical page. memory before the program can run. If the virtual page is mapped to a physical page in other states in memory, a soft page fault (Soft Fault) occurs, and if the virtual page is mapped to a file on disk, a hard page fault (Hard Fault) occurs.

[0045] Image file:...

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 an apparatus for starting an application program, belonging to the field of computers. The method comprises: loading pre-fetching data corresponding to the application program when receiving an application program starting instruction, wherein the pre-fetching data includes file blocks corresponding to page faults occurred in historical starting process of the application program; and loading code of the application program so as to start the application program. The apparatus comprises a load module of the pre-fetching data and a load module of the code. According to the invention, an application program is started by first loading file blocks corresponding to page faults occurred in historical starting process of the application program and then loading code of the application program, which reduces the number of occurrence times of page faults in starting process of the application program greatly, decreases phenomenon of frequent exchanges of memory pages and files in loading process of the program, and improves starting speed and efficiency of the application program.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for starting an application program. Background technique [0002] With the rapid development of computer technology, users will install various applications. The disk I / O during the application startup process is basically introduced by Page Fault. When the virtual address of the process is not in the working set (Working Set) of the process, Page Fault will occur. The order of Page Fault is generally like this: some pages are read from a certain part of a file, and then some pages may be read from a distance from the same file. Read some pages from another part farther away, then read some pages from a different file, possibly read pages from a directory, and then read some pages from the first file, read The file is discontinuous, and the reading position may also be discontinuous. This jumpy reading greatly slows down the speed of starting the application every t...

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
CPCG06F9/445G06F9/44568G06F11/0721G06F11/079
Inventor 边超朱文焕
Owner TENCENT TECH (SHENZHEN) 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