# US 2015/0149439 A1 · Analysis system, computer system, and analysis method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0149439 A1
- Document ID: US20150149439A1
- Status: Published application
- Kind: A1
- Application number: 14/404,525
- Filed: 2012-05-31
- Published: 2015-05-28
- Earliest claimed: 2012-05-31
- Assignees: The University of Tokyo; Hitachi, Ltd.
- Inventors: Hideomi Idei; Norifumi Nishikawa; Nobuo Kawamura; Kazuhiko Mogi; Masaru Kitsuregawa; Masashi Toyoda; Kazuo Goda
- Web page: https://patentgrep.com/patent/US20150149439A1

## CPC

- G06F 16/24532: {of parallel queries}
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This analysis system analyzes the behavior of a DBMS in a computer system having a computer which executes tasks in parallel and reads data from a database (DB) when executing a query. This analysis system acquires the number of selected rows corresponding to a key value of an index key used in the query, and calculates a model-based predicted degree of processing parallelism of the processing corresponding to the query. The system acquires, from the storage device, event information on an input-output event with respect to the storage medium when the processing corresponding to the query is executed actually, calculates a measured degree of processing parallelism when the processing corresponding to the query is executed actually, based on the event information, and displays information based on the model-based predicted degree of processing parallelism and the measured degree of processing parallelism.

## Claims

### Claim 1

An analysis system for analyzing behavior of a database management system (DBMS) being configured to dynamically generates tasks for executing operations when processing a query to a database stored in a storage device having a plurality of storage media to execute the dynamically generated tasks in parallel, the system comprising:
a storage resource; and
a processor which is coupled to the storage resource,
the storage resource being configured to store thread number specifying information capable of specifying a largest number of threads for the query in the DBMS, first processing number specifying information capable of specifying a first number of I/O processing that an interface between the DBMS and the storage device can execute in parallel, second processing number specifying information capable of specifying a second number of I/O processing that can be executed in parallel in the storage medium of the storage device, and third processing number specifying information capable of specifying a third number of I/O processing that each storage medium can execute in parallel, and
the processor being configured to:
acquire a number of selected rows corresponding to a key value of an index key for a query from the DBMS;
calculate a model-based predicted degree of processing parallelism which is a degree of processing parallelism predicted based on a model of the processing corresponding to the query, based on the number of selected rows, the largest number of threads specified by the thread number specifying information, the first number of I/O processing specified by the first processing number specifying information, the second number of I/O processing specified by the second processing number specifying information, and the third number of I/O processing specified by the third processing number specifying information;
acquire, from the storage device, event information on an input-output event with respect to the storage medium when the processing corresponding to the query is executed actually;
calculate a measured degree of processing parallelism which is a degree of processing parallelism when the processing corresponding to the query is executed actually, based on the event information; and
perform control of displaying information based on the model-based predicted degree of processing parallelism and the measured degree of processing parallelism.

### Claim 2 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to perform control of displaying a graph so that the model-based predicted degree of processing parallelism and the measured degree of processing parallelism can be compared.

### Claim 3 (depends on 2)

The analysis system according to claim 2,
wherein a computer that executes the DBMS is configured to store input-output time information capable of specifying the time associated with random input-output when reading data, and
wherein the processor is configured to:
acquire the input-output time information from the computer;
determine a change with time in the query, in the model-based predicted degree of processing parallelism, based on the input-output time information;
specify a change with time in the measured degree of processing parallelism based on the event information; and
display a change with time in the model-based predicted degree of processing parallelism and the measured degree of processing parallelism as a graph.

### Claim 4 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to:
specify a number of storage media that stores data corresponding to the query;
specify a smallest value among the largest number of threads, the first number of I/O processing, and the second number of I/O processing, and divide the specified value by the number of storage media to determine the result of division as a candidate model-based predicted degree of processing parallelism; and
determine a smaller value among the candidate model-based predicted degree of processing parallelism and the third number of I/O processing as the model-based predicted degree of processing parallelism.

### Claim 5 (depends on 1)

The analysis system according to claim 1,
wherein the DBMS is configured to divide the query into a plurality of partial queries to execute respective partial queries when the query includes a plurality of partial queries, and
wherein the processor is configured to calculate the model-based predicted degree of processing parallelism and the measured degree of processing parallelism for respective partial queries.

### Claim 6 (depends on 1)

The analysis system according to claim 1,
wherein the model-based predicted degree of processing parallelism and the measured degree of processing parallelism are values indicating the number of tags of the storage medium.

### Claim 7 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to display information capable of specifying a query and a partial query at the time corresponding to the designated position when an optional position on the graph of the model-based predicted degree of processing parallelism is designated.

### Claim 8 (depends on 1)

The analysis system according to claim 1,
wherein the storage medium is a disk device,
wherein the thread number specifying information includes a number of kernel threads in the DBMS that executes the query processing and a number of tasks per kernel thread,
wherein the first processing number specifying information includes a queue length on an I/O path of a computer in which the DBMS operates, a number of ports of the interface and a number of simultaneous I/O processing per port, and information on a network bandwidth,
wherein the second processing number specifying information includes a number of storage controllers of the storage device and a number of simultaneous I/O processing per storage controller, and
wherein the third processing number specifying information includes a number of simultaneous I/O processing per disk device.

### Claim 9 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to:
acquire event information of a plurality of elements involved in the processing corresponding to the query in the computer system;
detect a number of stagnations of an I/O processing during execution of the processing corresponding to the query in the respective elements, based on the event information of the respective elements; and
display the number of stagnations of the element.

### Claim 10 (depends on 9)

The analysis system according to claim 9,
wherein the processor is configured to display the number of stagnations of the element as a time-series graph.

### Claim 11 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to:
obtain the model-based predicted degree of processing parallelism and the measured degree of processing parallelism of the respective storage media and specify whether the measured degree of processing parallelism of each of the storage media falls within a range in which the measured degree of processing parallelism conforms to the model-based predicted degree of processing parallelism; and
display a graph capable of specifying the number of storage media which is out of the range in which the measured degree of processing parallelism conforms to the model-based predicted degree of processing parallelism.

### Claim 12 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to:
obtain the model-based predicted degree of processing parallelism and the measured degree of processing parallelism of the respective storage media and specify whether the measured degree of processing parallelism of each of the storage media falls within a range in which the measured degree of processing parallelism conforms to the model-based predicted degree of processing parallelism; and
display a form of diagram capable of specifying whether the respective storage media are in the range in which the measured degree of processing parallelism conforms to the model-based predicted degree of processing parallelism.

### Claim 13 (depends on 1)

The analysis system according to claim 1,
wherein the processor is configured to:
calculate a non-conformity ratio which is the ratio of a period in which the measured degree of processing parallelism is out of a range in which the measured degree of processing parallelism conforms to the model-based predicted degree of processing parallelism, to an execution period of the processing corresponding to the query, for each of the storage media; and
display information on the plurality of storage media in descending order of the non-conformity ratio.

### Claim 14 (depends on 1)

The analysis system according to claim 1,
wherein the DBMS is configured to generate event information which is a group of records including a task state after change and the time of the change, and
wherein the processor is configured to:
(A) acquire the event information from a computer that executes the DBMS and stores the event information in the storage resource; and
(B) draw a task object which is an object indicating a task based on the event information, and change a display mode of the task object to a display mode corresponding to a task state of the task object.

### Claim 15 (depends on 14)

The analysis system according to claim 14,
wherein the event information includes information indicating a task which is executed to generate each task and information indicating a generation order of one or a plurality of tasks generated by execution of a certain task,
wherein the task object is a node, and
wherein, the processor is configured to draw, in (B), a graph in which an edge indicating a generation relation and a generation order of respective tasks is present between nodes.

### Claim 16 (depends on 14)

The analysis system according to claim 14,
wherein the processor is configured to, in (B):
draw the task object in different modes depending on a task state; and
display detailed information such as information on an object of a DB accessed by a task designated by a user.

### Claim 17 (depends on 14)

The analysis system according to claim 14,
wherein the processor is configured to change, in (B), a display mode of the task object with time according to a change in a task state when all or at least two partial records of the event information are referred in a time-series manner.

### Claim 18 (depends on 14)

The analysis system according to claim 14,
wherein the processor can switch, in (B), between a display mode of displaying all task objects and a display mode of displaying a portion of the task objects at an enlarged scale according to a user instruction.

### Claim 19 (depends on 14)

The analysis system according to claim 14,
wherein a computer that executes the DBMS is configured to store data structure summary information indicating the summary of a data structure of the database,
wherein a record of the event information includes an ID of an access destination page of a task corresponding to the record, and
wherein the processor is configured to:
(C) acquire the data structure summary information from the computer and stores the data structure summary information in the storage resource; and
(D) draw a page object which is an object indicating a page which is an area in which data is stored based on the data structure summary information, and changes a display mode of the page object to a display mode corresponding to a state of a task that accesses the page.

### Claim 20 (depends on 19)

The analysis system according to claim 19,
wherein the page object is a node, and
wherein the processor is configured to draw, in (D), for each data structure of the database, a graph in which an edge indicating a dependency between pages is present between nodes.

### Claim 21 (depends on 19)

The analysis system according to claim 19,
wherein the processor is configured to, in (D):
draw the page object in different modes depending on a page access state; and
display detailed information such as a logical and physical address of a page that is designated by a user.

### Claim 22 (depends on 19)

The analysis system according to claim 19,
wherein the processor is configured to change, in (D), a display mode of the page object with time according to a change in a task state when all or at least two partial records of the event information are referred in a time-series manner.

### Claim 23 (depends on 19)

The analysis system according to claim 19,
wherein the processor can switch, in (D), between a display mode of displaying all page objects and a display mode of displaying a portion of the page objects at an enlarged scale according to a user instruction.

### Claim 24

A computer system comprising:
a computer being configured to execute a database management system (DBMS) which is configured to dynamically generate tasks for executing operations when processing a query to a database stored in a storage device having a plurality of storage media to execute the dynamically generated tasks in parallel; and
an analysis system being configured to analyze behavior of the DBMS, wherein the analysis system includes a storage resource and a processor coupled to the storage resource,
the storage resource being configured to store thread number specifying information capable of specifying a largest number of threads for the query in the DBMS, first processing number specifying information capable of specifying a first number of I/O processing that an interface between the DBMS and the storage device can execute in parallel, second processing number specifying information capable of specifying a second number of I/O processing that can be executed in parallel in the storage medium of the storage device, and third processing number specifying information capable of specifying a third number of I/O processing that each storage medium can execute in parallel, and
the processor being configured to:
acquire a number of selected rows corresponding to a key value of an index key for a query from the DBMS;
calculate a model-based predicted degree of processing parallelism which is a degree of processing parallelism predicted based on a model of the processing corresponding to the query, based on the number of selected rows, the largest number of threads specified by the thread number specifying information, the first number of I/O processing specified by the first processing number specifying information, the second number of I/O processing specified by the second processing number specifying information, and the third number of I/O processing specified by the third processing number specifying information;
acquire, from the storage device, event information on an input-output event with respect to the storage medium when the processing corresponding to the query is executed actually;
calculate a measured degree of processing parallelism which is a degree of processing parallelism when the processing corresponding to the query is executed actually, based on the event information; and
perform control of displaying information based on the model-based predicted degree of processing parallelism and the measured degree of processing parallelism.

### Claim 25

An analysis method for analyzing behavior of a database management system (DBMS) being configured to dynamically generate tasks for executing operations when processing a query to a database stored in a storage device having a plurality of storage media to execute the dynamically generated tasks in parallel, the analysis method comprising:
acquiring a number of selected rows corresponding to a key value of an index key for a query from the DBMS;
calculating a model-based predicted degree of processing parallelism which is a degree of processing parallelism predicted based on a model of the processing corresponding to the query, based on the number of selected rows, a largest number of threads specified by the thread number specifying information, a first number of I/O processing that an interface between the DBMS and the storage device can execute in parallel, a second number of I/O processing that can be executed in parallel in the storage medium of the storage device, and a third number of I/O processing that the storage medium can execute in parallel, acquiring event information on an input-output event with respect to the storage medium when the processing corresponding to the query is executed actually;
calculating a measured degree of processing parallelism which is a degree of processing parallelism when the processing corresponding to the query is executed actually, based on the event information; and
performing control of displaying information based on the model-based predicted degree of processing parallelism and the measured degree of processing parallelism.
