Abstract:
A batch data query method and apparatus are provided. According to the method, multiple logical query plan trees corresponding to multiple query statements are obtained. The multiple logical query plan trees are divided into multiple query groups according to operators of each logical query plan tree. Logical query plan trees in each query group have the following relationship: an inter-query write-read dependency relationship, an operator overlap relationship, or an operand overlap relationship. Then, inter-query optimization is performed on the logical query plan trees in each query group, and multiple corresponding physical query plan trees are generated according to the multiple optimized logical query plan trees. Finally, physical queries are executed according to the multiple physical query plan trees, to obtain query results of the multiple query statements.
Abstract:
Embodiments of the present invention provide a memory resource optimization method and apparatus, relate to the computer field, solve a problem that existing multi-level memory resources affect each other, and optimize an existing single partitioning mechanism. A specific solution is: obtaining performance data of each program in a working set by using a page coloring technology, obtaining a category of each program in light of a memory access frequency, selecting, according to the category of each program, a page coloring-based partitioning policy corresponding to the working set, and writing the page coloring-based partitioning policy to an operating system kernel, to complete corresponding page coloring-based partitioning processing. The present invention is used to eliminate or reduce mutual interference of processes or threads on a memory resource in light of a feature of the working set, thereby improving overall performance of a computer.
Abstract:
Embodiments of the present invention provide a memory resource optimization method and apparatus, relate to the computer field, solve a problem that existing multi-level memory resources affect each other, and optimize an existing single partitioning mechanism. A specific solution is: obtaining performance data of each program in a working set by using a page coloring technology, obtaining a category of each program in light of a memory access frequency, selecting, according to the category of each program, a page coloring-based partitioning policy corresponding to the working set, and writing the page coloring-based partitioning policy to an operating system kernel, to complete corresponding page coloring-based partitioning processing. The present invention is used to eliminate or reduce mutual interference of processes or threads on a memory resource in light of a feature of the working set, thereby improving overall performance of a computer.
Abstract:
A method and a device for determining a program performance interference model is described. The method includes: selecting programs from a determined sample program set to form multiple subsets; acquiring a value of performance interference imposed on each program in each subset and a total occupancy rate of a shared resource occupied by all the programs in each subset; dividing all the subsets into multiple analytical units; performing a regression analysis on the value of performance interference on each sample program included in each analytical unit and a total occupancy rate corresponding to a subset in which the sample program is loaded, and acquiring a target function model; acquiring a performance interference model corresponding to a target program according to the target function model. The performance interference model may be used for preventing another program whose mutual interference is relatively strong from running together with the target program.
Abstract:
This application provide an audio playing method, an electronic device, and a system. The method is applied to a first device, and includes: obtaining first data when a first trigger condition is met, where the first trigger condition includes: a first instruction for playing an audio is received, or a connection to a device configured to play an audio is disconnected, and the first data is data obtained by at least one assisting device capable of communicating with the first device; and determining, based on the first data, that an audio playing manner of the first device is a first manner in a plurality of manners, where the plurality of manners include at least one of the following: playing the audio by using a loudspeaker of the first device, playing the audio by using a second device, or stopping playing the audio.
Abstract:
A batch data query method and apparatus are provided. A data query server determines symbol identifiers of operands in N query statements according to operators and the operands in the N query statements, where the symbol identifiers include version numbers of the operands; determines dependency among the N query statements according to the version numbers of the operands in the N query statements; and then, performs inter-query optimization on the N query statements according to the dependency among the N query statements and a preset optimization rule.
Abstract:
A method and a device for determining a program performance interference model is described. The method includes: selecting programs from a determined sample program set to form multiple subsets; acquiring a value of performance interference imposed on each program in each subset and a total occupancy rate of a shared resource occupied by all the programs in each subset; dividing all the subsets into multiple analytical units; performing a regression analysis on the value of performance interference on each sample program included in each analytical unit and a total occupancy rate corresponding to a subset in which the sample program is loaded, and acquiring a target function model; acquiring a performance interference model corresponding to a target program according to the target function model. The performance interference model may be used for preventing another program whose mutual interference is relatively strong from running together with the target program.
Abstract:
Embodiments of the present invention provide a memory resource optimization method and apparatus, relate to the computer field, solve a problem that existing multi-level memory resources affect each other, and optimize an existing single partitioning mechanism. A specific solution is: obtaining performance data of each program in a working set by using a page coloring technology, obtaining a category of each program in light of a memory access frequency, selecting, according to the category of each program, a page coloring-based partitioning policy corresponding to the working set, and writing the page coloring-based partitioning policy to an operating system kernel, to complete corresponding page coloring-based partitioning processing. The present invention is used to eliminate or reduce mutual interference of processes or threads on a memory resource in light of a feature of the working set, thereby improving overall performance of a computer.
Abstract:
A method and an apparatus for allocating a hardware acceleration instruction to a memory controller to balance load of memory controllers, where the method includes, after dividing a plurality of hardware acceleration instructions into different instruction sets according to dependency relationships among the plurality of hardware acceleration instructions, a first mapping relationship between the instruction sets and memory controllers in a computer system is obtained according to a rule that different instruction sets whose hardware acceleration instructions do not have a dependency relationship are allocated to different memory controllers. After adjusting the first mapping relationship according to load of memory controllers in a first memory controller set to obtain a second mapping relationship between the instruction sets and the memory controllers, hardware acceleration instructions in the instruction sets are allocated to memory controllers in a second memory controller set according to the second mapping relationship.
Abstract:
Embodiments of the present invention provide a memory resource optimization method and apparatus, relate to the computer field, solve a problem that existing multi-level memory resources affect each other, and optimize an existing single partitioning mechanism. A specific solution is: obtaining performance data of each program in a working set by using a page coloring technology, obtaining a category of each program in light of a memory access frequency, selecting, according to the category of each program, a page coloring-based partitioning policy corresponding to the working set, and writing the page coloring-based partitioning policy to an operating system kernel, to complete corresponding page coloring-based partitioning processing. The present invention is used to eliminate or reduce mutual interference of processes or threads on a memory resource in light of a feature of the working set, thereby improving overall performance of a computer.