Method and apparatus for starting application program

A technology of application program and startup process, applied in the computer field, can solve problems such as long application program cold start time, slow application program speed, discontinuous reading position, etc., so as to reduce frequent exchange of memory pages and exchange files, and reduce the number of pages Number of error occurrences, effects of improving startup speed and startup efficiency

Active Publication Date: 2014-06-11
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF6 Cites 0 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 it is executed somewhere and its corresponding 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

[0036] 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.

[0037] 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:

[0038] 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.

[0039] 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 present invention, pertaining to the field of computer technologies, discloses an application startup method and apparatus. The method includes: loading, upon receiving an instruction for starting up an application program, prefetch data corresponding to the application program, where the prefetch data includes at least one file block corresponding to at least one page fault occurred during a history startup process of the application program; and loading code of the application program to start up the application program. The apparatus includes: a prefetch data loading module and a code loading module. According to the present invention, the number of page faults occurred during the startup process of the application program because a process cannot be mapped to a valid physical page when accessing a virtual page is greatly reduced. Further, since before the code of the application program is loaded, instead of all file blocks during the initial startup of the application program, only the file block(s) corresponding to page fault(s) is loaded, frequent memory page flipping and file flipping during the loading process of the application program are mitigated, and startup speed and startup efficiency of the application program are improved.

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 it is executed somewhere and its corresponding 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 slow...

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): G06F9/445
CPCG06F9/44568G06F9/445G06F11/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