Method, apparatus, and terminal for accelerating cold startup of an application

US12093726B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12093726-B2
Application numberUS-202117230737-A
CountryUS
Kind codeB2
Filing dateApr 14, 2021
Priority dateOct 15, 2018
Publication dateSep 17, 2024
Grant dateSep 17, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

This application provides a method and an apparatus, for accelerating cold startup of an application. The method includes after identifying an event that instructs an operating system of a terminal to cold start up an application, obtaining, from a plurality of dimensions, current status information related to the cold startup of the application, where the current status information includes a hardware configuration of the terminal, current load of the operating system of the terminal, resource overheads for cold starting up the application, and duration corresponding to each of a plurality of tasks in a process of cold starting up the application. The method also includes determining, by analyzing the current status information, a plurality of objects that need to be optimized in the current process of cold starting up the application; and then obtaining, based on the determined objects.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for cold starting up an application, comprising: collecting, by a terminal, current status information based on a detected startup event, wherein the startup event instructs an operating system of the terminal to cold start up an application, and the current status information comprises a hardware configuration of the terminal, current load of the operating system, resource overheads for cold starting up the application, and duration corresponding to each of a plurality of tasks in a process of cold starting up the application; determining, based on the current status information, a group of acceleration items corresponding to the application that indicate at least one resource and at least one task that are to be optimized in the current process of cold starting up the application, wherein when the hardware configuration of the terminal is of a first level, the operating system is currently in first level load, the application is of a first resource overheads type, and a long-time-consuming task in the cold startup belongs to a first group of tasks, the application is currently corresponding to a first group of acceleration items; or when the hardware configuration of the terminal is of a second level, the operating system is currently in second level load, the application is of a second resource overheads type, and the long-time-consuming task in the cold startup belongs to a second group of tasks, the application is currently corresponding to a second group of acceleration items; determining one or more optimization policies corresponding to the group of acceleration items, wherein the one or more optimization policies comprise one or more of a first optimization policy, a second optimization policy, or a combination thereof, and the first optimization policy instructs an adjustment of a resource allocated by the operating system to the cold startup, and the second optimization policy accelerates a task in the cold startup; and executing the one or more determined optimization policies in the process of cold starting up the application. 2. The method according to claim 1 , wherein the determining, based on the current status information, the group of acceleration items comprises: analyzing the current status information to obtain evaluation information currently corresponding to the application, wherein the evaluation information currently corresponding to the application comprises the level of the hardware configuration of the terminal, the degree of the current load of the operating system, the type of the resource overheads of the application, and the long-time-consuming task in the cold startup; and determining, based on the evaluation information currently corresponding to the application and a correspondence between evaluation information and an acceleration item, the group of acceleration items currently corresponding to the application. 3. The method according claim 1 , wherein the determining the one or more optimization policies corresponding to the group of acceleration items comprises: determining, based on the group of acceleration items corresponding to the application and a correspondence between an acceleration item and an optimization policy, the plurality of optimization policies corresponding to the group of acceleration items. 4. The method according to claim 1 , wherein the current load of the operating system indicates current usage of a hardware resource of the terminal that is used by the operating system, and the hardware resource comprises at least one of a processing resource, a storage resource, or a network resource; and the resource overheads for cold starting up the application indicate usage of at least one of a processor, a memory, a disk, or network bandwidth of the terminal in the cold startup. 5. The method according to claim 4 , wherein the first optimization policy comprises adjusting the at least one of the processing resource, the storage resource, or the network resource that are allocated to the cold startup. 6. The method according to claim 1 , wherein in the process of cold starting up the application, the plurality of tasks comprise at least one first task and at least one second task, and the duration corresponding to the plurality of tasks comprises respective duration for performing the at least one first task and respective duration for waiting for performing the at least one second task. 7. The method according to claim 1 , wherein the first optimization policy comprises at least one of: boosting an operating frequency of a central processing unit (CPU) of the terminal, prolonging a time of the CPU frequency boost of the terminal, adjusting an energy consumption parameter of the CPU of the terminal, migrating the process of cold starting up the application to a kernel of another CPU for execution, releasing memory space corresponding to the cold startup process of the application in advance, freezing or clearing at least one another process, or adjusting read/write bandwidth or network bandwidth that is allocated to the at least one another process, wherein the at least one another process is a process of at least one application, other than the application, that is run in the operating system; and the second optimization policy comprises at least one of the following optimization policies: enabling a Nagle algorithm on a transmission control protocol (TCP) connection corresponding to the application, using the processing resource by a thread having a greater importance than one or more other threads in the process corresponding to the cold startup, reading a file page required for cold starting up the application in advance, performing class verification in advance, decoding a picture in advance, or loading a basic database in advance. 8. A terminal for cold starting up an application, comprising: a processing circuit; and a storage medium, storing an instruction, wherein the processing circuit is configured to run the instruction stored in the storage medium, to implement operations, comprising: collecting, current status information based on a detected startup event, wherein the startup event instructs an operating system of the terminal to cold start up an application, and the current status information comprises a hardware configuration of the terminal, current load of the operating system, resource overheads for cold starting up the application, and duration corresponding to each of a plurality of tasks in a process of cold starting up the application, determining, based on the current status information, a group of acceleration items corresponding to the application that indicate at least one resource and at least one task that are to be optimized in the current process of cold starting up the application, wherein when the hardware configuration of the terminal is of a first level, the operating system is currently in first level load, the application is of a first resource overheads type, and a long-time-consuming task in the cold startup belongs to a first group of tasks, the application is currently corresponding to a first group of acceleration items; or when the hardware configuration of the terminal is of a second level, the operating system is currently in second level load, the application is of a second resource overheads type, and the long-time-consuming task in the cold startup belongs to a second group of tasks, the application is currently corresponding to a second group of acceleration items; determining one or more optimization policies corresponding to the group of acceleration items, wherein the one or more optimization policies comprise one or more of a first optimization policy, a second optimization policy, or a combination thereof, and the first optimi

Assignees

Inventors

Classifications

  • via adapters, e.g. between incompatible applications · CPC title

  • considering hardware capabilities · CPC title

  • Configuring for program initiating, e.g. using registry, configuration files · CPC title

  • using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12) · CPC title

  • Object-oriented method invocation or resolution · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12093726B2 cover?
This application provides a method and an apparatus, for accelerating cold startup of an application. The method includes after identifying an event that instructs an operating system of a terminal to cold start up an application, obtaining, from a plurality of dimensions, current status information related to the cold startup of the application, where the current status information includes a …
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F9/44505. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 17 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).