# US 2022/0291982 A1 · Methods and systems for intelligent sampling of normal and erroneous application traces

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

- Number: US 2022/0291982 A1
- Document ID: US20220291982A1
- Status: Published application
- Kind: A1
- Application number: 17/374,682
- Filed: 2021-07-13
- Published: 2022-09-15
- Earliest claimed: 2021-03-02
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Arnak Poghosyan; Ashot Nshan Harutyunyan; Naira Movses Grigoryan; Clement Pang; George Oganesyan; Karen Avagyan
- Web page: https://patentgrep.com/patent/US20220291982A1

## CPC

- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 11/0709: {in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- G06F 11/0781: {Error filtering or prioritizing based on a policy defined by the user or on a policy defined by a hardware/software module, e.g. according to a severity level}
- G06F 11/0787: {Storage of error reports, e.g. persistent data storage, storage using memory protection}
- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 2201/815: Virtual
- G06F 2201/865: Monitoring of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Computer-implemented methods and systems described herein perform intelligent sampling of application traces generated by an application. Computer-implemented methods and systems determine different sampling rates based on frequency of occurrence of normal traces and erroneous traces of the application. The sampling rates for low frequency normal and erroneous traces are larger than the sampling rates for high frequency normal and erroneous traces. The relatively larger sampling rates for low frequency trace ensures that low frequency traces are sampled in sufficient numbers and are not passed over during sampling of the application traces. The sampled normal and erroneous traces are stored in a data storage device.

## Claims

### Claim 1

A method stored in one or more data storage devices and executed using one or more processors of a computer system for sampling a set of traces of an application executed in a distributed computing system, the method comprising:
retrieving a set of trace data associated with the application from a data storage device;
determining sampling rates for sampling normal traces in the set and for sampling erroneous traces in the set, wherein the different sampling rates are inversely proportional to the frequency of occurrence of the normal traces and erroneous traces;
sampling the traces using the sampling rates to obtain sampled normal traces and sampled erroneous traces, wherein less frequently occurring normal traces are sampled at higher sampling rates than more frequently occurring normal traces and less frequently occurring erroneous traces are sampled at higher sampling rates than more frequently occurring erroneous traces; and
storing the sampled traces in a data storage device.

### Claim 2 (depends on 1)

The method of claim 1 wherein determining the sampling rates comprises:
sorting the traces according to trace type to obtain one or more groups of traces, each group of traces having a different associated trace type; and
for each group of traces.
partitioning the group of traces into normal traces and erroneous traces,
determining a frequency of occurrence of normal traces in the group,
determining a frequency of occurrence of erroneous traces in the group,
constructing a normal trace histogram of the normal traces,
constructing an erroneous trace histogram of the erroneous traces,
determining a frequency of occurrence of normal traces in each bin of the normal trace histogram,
determining a frequency of occurrence of normal traces in each bin of the erroneous trace histogram,
determining a normal hybrid sampling rate for each bin of the normal histogram based on the frequency of occurrence of normal traces in each bin, the frequency of occurrence of the normal traces, and
determining an erroneous hybrid sampling rate for each bin of the normal histogram based on the frequency of occurrence of normal traces in each bin, the frequency of occurrence of the normal traces.

### Claim 3 (depends on 1)

The method of claim 1 wherein determining the sampling rates comprises:
sorting the traces according to trace type to obtain one or more groups of traces, each group of traces having a different associated trace type;
receiving a sampling level via a graphical user interface;
determining a trace-type sampling parameter based on the user-selected sampling level; and
for each group of traces,
partitioning the group of traces into normal traces and erroneous traces;
determining a frequency of occurrence of normal traces in the group of traces,
determining a normal trace-type sampling rate based on the frequency of occurrence of normal traces,
determining a frequency of occurrence of erroneous traces in the group of traces,
determining an erroneous trace-type sampling rate based on the frequency of occurrence of erroneous traces.

### Claim 4 (depends on 1)

The method of claim 1 wherein determining the sampling rates comprises:
constructing a histogram of traces based on the durations, each bin of the histogram corresponding to a time interval and containing traces with durations in the time interval;
determining a frequency of occurrence of normal traces in each bin of the histogram;
for each bin of the histogram,
determining a duration-sampling rate based on the frequency of occurrence of traces in the bin and the duration-sampling parameter:
determining a frequency of occurrence of traces in a lower bin;
computing a short duration sampling rate from the frequency of occurrence of traces in the lower bin;
determining a frequency of occurrence of traces in an upper bin; and
computing a long duration sampling rate from the frequency of occurrence of traces in the upper bin.

### Claim 5 (depends on 1)

The method of claim 1 wherein determining the sampling rates comprises:
partitioning the set of trace data into normal traces and erroneous traces:
determining a frequency of occurrence of the normal traces:
determining a normal trace sampling rate based on the frequency of occurrence of the normal traces;
determining a frequency of occurrence of the erroneous traces; and
determining a erroneous trace sampling rate based on the frequency of occurrence of the erroneous traces.

### Claim 6 (depends on 1)

The method of claim 1 wherein determining the sampling rates comprises:
partitioning the set of trace data into normal traces and erroneous traces;
determining a frequency of occurrence of the normal traces;
determining a frequency of occurrence of the erroneous traces; and
determining a normal trace sampling rate based on the frequency of occurrence of the normal traces, frequency of occurrence of the erroneous traces, an overall sampling rate, and erroneous trace sampling rate.

### Claim 7 (depends on 1)

The method of claim 1 wherein sampling the traces using the sampling rates comprises sampling normal traces with a normal trace sampling rate, wherein the normal trace sampling rate is inversely proportional to a frequency of occurrence of the normal traces.

### Claim 8 (depends on 1)

The method of claim 1 wherein sampling the traces using the sampling rates comprises sampling erroneous traces with an erroneous trace sampling rate, wherein the erroneous trace sampling rate is inversely proportional to a frequency of occurrence of the erroneous traces.

### Claim 9 (depends on 1)

The method of claim 1 further comprises:
performing troubleshooting on the sampled erroneous traces to identify a performance problem with the application; and
executing remedial measures to correct the performance problem.

### Claim 10

A computer system for sampling application traces of an application executed in a distributed computer system, the system comprising:
one or more processors:
one or more data storage devices: and
machine-readable instructions stored in the one or more data storage devices that when executed using the one or more processors controls the system to perform operations comprising:
retrieving a set of trace data associated with the application from a data storage device;
determining sampling rates for sampling normal traces in the set and for sampling erroneous traces in the set, wherein the different sampling rates are inversely proportional to the frequency of occurrence of the normal traces and erroneous traces:
sampling the traces using the sampling rates to obtain sampled normal traces and sampled erroneous traces, wherein less frequently occurring normal traces are sampled at higher sampling rates than more frequently occurring normal traces and less frequently occurring erroneous traces are sampled at higher sampling rates than more frequently occurring erroneous traces; and
storing the sampled traces in a data storage device.

### Claim 11 (depends on 10)

The computer system of claim 10 wherein determining the sampling rates comprises:
sorting the traces according to trace type to obtain one or more groups of traces, each group of traces having a different associated trace type; and
for each group of traces,
partitioning the group of traces into normal traces and erroneous traces,
determining a frequency of occurrence of normal traces in the group,
determining a frequency of occurrence of erroneous traces in the group
constructing a normal trace histogram of the normal traces,
constructing an erroneous trace histogram of the erroneous traces,
determining a frequency of occurrence of normal traces in each bin of the normal trace histogram,
determining a frequency of occurrence of normal traces in each bin of the erroneous trace histogram,
determining a normal hybrid sampling rate for each bin of the normal histogram based on the frequency of occurrence of normal traces in each bin, the frequency of occurrence of the normal traces, and
determining an erroneous hybrid sampling rate for each bin of the normal histogram based on the frequent of occurrence of normal traces in each bin, the frequency of occurrence of the normal traces.

### Claim 12 (depends on 10)

The computer system of claim 10 wherein determining the sampling rates comprises:
sorting the traces according to trace type to obtain one or more groups of traces, each group of traces having a different associated trace type;
receiving a sampling level via a graphical user interface;
determining a trace-type sampling parameter based on the user-selected sampling level; and
for each group of traces,
partitioning the group of traces into normal traces and erroneous traces;
determining a frequency of occurrence of normal traces in the group of traces,
determining a normal trace-type sampling rate based on the frequency of occurrence of normal traces,
determining a frequency of occurrence of erroneous traces in the group of traces,
determining an erroneous trace-type sampling rate based on the frequency of occurrence of erroneous traces.

### Claim 13 (depends on 10)

The computer system of claim 10 wherein determining the sampling rates comprises:
constructing a histogram of traces based on the durations, each bin of the histogram corresponding to a time interval and containing traces with durations in the time interval;
determining a frequency of occurrence of normal traces in each bin of the histogram:
for each bin of the histogram,
determining a duration-sampling rate based on the frequency of occurrence of traces in the bin and the duration-sampling parameter;
determining a frequency of occurrence of traces in a lower bin;
computing a short duration sampling rate from the frequency of occurrence of traces in the lower bin;
determining a frequency of occurrence of traces in an upper bin; and
computing a long duration sampling rate from the frequency of occurrence of traces in the upper bin.

### Claim 14 (depends on 10)

The computer system of claim 10 wherein determining the sampling rates comprises:
partitioning the set of trace data into normal traces and erroneous traces;
determining a frequency of occurrence of the normal traces;
determining a normal trace sampling rate based on the frequency of occurrence of the normal traces;
determining a frequency of occurrence of the erroneous traces; and
determining a erroneous trace sampling rate based on the frequency of occurrence of the erroneous traces.

### Claim 15 (depends on 10)

The computer system of claim 10 wherein determining the sampling rates comprises:
partitioning the set of trace data into normal traces and erroneous traces;
determining a frequency of occurrence of the normal traces;
determining a frequency of occurrence of the erroneous traces; and
determining a normal trace sampling rate based on the frequency of occurrence of the normal traces, frequency of occurrence of the erroneous traces, an overall sampling rate, and erroneous trace sampling rate.

### Claim 16 (depends on 10)

The computer system of claim 10 wherein sampling the traces using the sampling rates comprises sampling normal traces with a normal trace sampling rate, wherein the normal trace sampling rate is inversely proportional to a frequency of occurrence of the normal traces.

### Claim 17 (depends on 10)

The computer system of claim 10 wherein sampling the traces using the sampling rates comprises sampling erroneous traces with an erroneous trace sampling rate, wherein the erroneous trace sampling rate is inversely proportional to a frequency of occurrence of the erroneous traces.

### Claim 18 (depends on 10)

The computer system of claim 10 further comprises:
performing troubleshooting on the sampled erroneous traces to identify a performance problem with the application; and
executing remedial measures to correct the performance problem.

### Claim 19

A non-transitory computer-readable medium encoded with machine-readable instructions that when executed by one or more processors of a computer system perform operations comprising:
retrieving a set of trace data associated with the application from a data storage device;
determining sampling rates for sampling normal traces in the set and for sampling erroneous traces in the set, wherein the different sampling rates are inversely proportional to the frequency of occurrence of the normal traces and erroneous traces:
sampling the traces using the sampling rates to obtain sampled normal traces and sampled erroneous traces, wherein less frequently occurring normal traces are sampled at higher sampling rates than more frequently occurring normal traces and less frequently occurring erroneous traces are sampled at higher sampling rates than more frequently occurring erroneous traces; and
storing the sampled traces in a data storage device.

### Claim 20 (depends on 19)

The medium of claim 19 wherein determining the sampling rates comprises:
sorting the traces according to trace type to obtain one or more groups of traces, each group of traces having a different associated trace type; and
for each group of traces,
partitioning the group of traces into normal traces and erroneous traces,
determining a frequency of occurrence of normal traces in the group,
determining a frequency of occurrence of erroneous traces in the group,
constructing a normal trace histogram of the normal traces,
constructing an erroneous trace histogram of the erroneous traces,
determining a frequency of occurrence of normal traces in each bin of the normal trace histogram,
determining a frequency of occurrence of normal traces in each bin of the erroneous trace histogram,
determining a normal hybrid sampling rate for each bin of the normal histogram based on the frequency of occurrence of normal traces in each bin, the frequency of occurrence of the normal traces, and
determining an erroneous hybrid sampling rate for each bin of the normal histogram based on the frequency of occurrence of normal traces in each bin, the frequency of occurrence of the normal traces.

### Claim 21 (depends on 19)

The medium of claim 19 wherein determining the sampling rates comprises:
sorting the traces according to trace type to obtain one or more groups of traces, each group of traces having a different associated trace type;
receiving a sampling level via a graphical user interface;
determining a trace-type sampling parameter based on the user-selected sampling level; and
for each group of traces,
partitioning the group of traces into normal traces and erroneous traces;
determining a frequency of occurrence of normal traces in the group of traces,
determining a normal trace-type sampling rate based on the frequency of occurrence of normal traces,
determining a frequency of occurrence of erroneous traces in the group of traces,
determining an erroneous trace-type sampling rate based on the frequency of occurrence of erroneous traces.

### Claim 22 (depends on 19)

The medium of claim 19 wherein determining the sampling rates comprises:
constructing a histogram of traces based on the durations, each bin of the histogram corresponding to a time interval and containing traces with durations in the time interval;
determining a frequency of occurrence of normal traces in each bin of the histogram;
for each bin of the histogram,
determining a duration-sampling rate based on the frequency of occurrence of traces in the bin and the duration-sampling parameter;
determining a frequency of occurrence of traces in a lower bin;
computing a short duration sampling rate from the frequency of occurrence of traces in the lower bin;
determining a frequency of occurrence of traces in an upper bin; and
computing a long duration sampling rate from the frequency of occurrence of traces in the upper bin.

### Claim 23 (depends on 19)

The medium of claim 19 wherein determining the sampling rates comprises:
partitioning the set of trace data into normal traces and erroneous traces;
determining a frequency of occurrence of the normal traces;
determining a normal trace sampling rate based on the frequency of occurrence of the normal traces;
determining a frequency of occurrence of the erroneous traces; and
determining a erroneous trace sampling rate based on the frequency of occurrence of the erroneous traces.

### Claim 24 (depends on 19)

The medium of claim 19 wherein determining the sampling rates comprises:
partitioning the set of trace data into normal traces and erroneous traces;
determining a frequency of occurrence of the normal traces;
determining a frequency of occurrence of the erroneous traces; and
determining a normal trace sampling rate based on the frequency of occurrence of the normal traces, frequency of occurrence of the erroneous traces, an overall sampling rate, and erroneous trace sampling rate.

### Claim 25 (depends on 19)

The medium of claim 19 wherein sampling the traces using the sampling rates comprises sampling normal traces with a normal trace sampling rate, wherein the normal trace sampling rate is inversely proportional to a frequency of occurrence of the normal traces.

### Claim 26 (depends on 19)

The medium of claim 19 wherein sampling the traces using the sampling rates comprises sampling erroneous traces with an erroneous trace sampling rate, wherein the erroneous trace sampling rate is inversely proportional to a frequency of occurrence of the erroneous traces.

### Claim 27 (depends on 19)

The medium of claim 19 further comprises:
performing troubleshooting on the sampled erroneous traces to identify a performance problem with the application; and
executing remedial measures to correct the performance problem.
