Optimization method and device for system performance

A system performance and optimization method technology, applied in the computer field, can solve the problems of not improving system performance, multi-CPU load, large resource consumption, etc., and achieve the effect of reducing interactive resource consumption, context switching and message interaction process

Active Publication Date: 2015-05-20
新奇点智能科技集团有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The purpose of using multithreading in the system is to improve the performance of the system, but if the multithreading is not used properly, it may also increase the process of context switching and message interaction between threads. The more threads there are, the more times the system switches between threads. Increase, not only will not improve system performance, but will consume more resources and generate more CPU load

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
  • Optimization method and device for system performance
  • Optimization method and device for system performance
  • Optimization method and device for system performance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] See figure 1 , Shows a step flowchart of Embodiment 1 of a method for optimizing system performance of the present invention, which may specifically include the following steps:

[0026] Step 101: Associate the interaction resources of the first function module and the second function module by configuring the first message processing interface of the first function module;

[0027] In the embodiment of the present invention, a function module can be used to indicate a module used to implement independent sub-functions in a program. That is, after each functional module completes the corresponding sub-function, these functional modules are combined to form a whole to meet the required functions of the entire program.

[0028] Considering that the functional modules in the program can run as an independent thread, the embodiment of the present invention implements the merging of threads by merging the functional modules, that is, by merging multiple functional modules originall...

Embodiment 2

[0075] The optimization method of the system performance of this embodiment is described in figure 1 On the basis of the illustrated embodiment, the following optional technical solutions may be further included.

[0076] See Figure 4 , Shows a flow chart of the steps of a method for creating a second functional module of the present invention, which may specifically include:

[0077] Step 401: Configure a second initialization interface and a second message processing interface of the second functional module;

[0078] The second initialization interface can be used to initialize the second function module. The initialization of the second function module may specifically include: preparation of an input environment, data resources, system resources, and so on.

[0079] In an application example of the present invention, the following format of the second initialization interface can be provided:

[0080] void module_init(void); (7)

[0081] Among them, module is the name of the module...

Embodiment 3

[0100] To enable those skilled in the art to better understand the present invention, see Figure 5 , Shows a step flow chart of an example of a method for merging the second functional module dpdcp and the first functional module drlc, which may specifically include:

[0101] Step 501: Create a second function module named dpdcp and an identification name of DPDCP and the corresponding current thread, and declare the second function module dpdcp in the process of creating the second function module dpdcp to apply for the second function module dpdcp Interactive resources;

[0102] Wherein, the process of creating a second functional module with a name of dpdcp and an identification name of DPDCP may specifically include: configuring a second initialization interface and a second message processing interface of the second functional module dpdcp, and declaring the second functional module to apply The interactive resources of the second functional module; specifically, it can be im...

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 embodiment of the invention provides an optimization method and device for system performance. The method comprises the steps that interactive resources of a first function module and a second function module are associated by the configuration of a first message processing interface of the first function module; the first function module is merged with a current thread corresponding to the second function module according to the interactive resources, so that when the current thread receives messages sent from other threads from the interactive resources, function modules corresponding to the messages can be recognized according to destination addresses carried by the messages, and the recognized function modules are operated. According to the optimization method and device for the system performance, the processes of context switches and message interaction between the threads are reduced, and the interactive resource waste caused by frequent multi-thread switches is reduced.

Description

Technical field [0001] The invention relates to the field of computer technology, and in particular to a method and device for optimizing system performance. Background technique [0002] With the rapid development of computer hardware, computer system configurations have evolved from single or multiple integrated circuits in the system to multiple hardware threads, multiple cores, multiple devices and / or complete systems on each integrated circuit. However, the continuous advancement of hardware also requires the development of software systems to advance the performance of the entire computing system. [0003] At present, the optimization of software systems is mostly based on application-level optimization. For example, you can use multiple threads to design applications using a parallel programming model. By dividing the application into multiple independent tasks and determining the interdependence between these tasks, task decomposition, data decomposition and data flow dec...

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/50G06F9/48
Inventor 周卓
Owner 新奇点智能科技集团有限公司
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