Patent ID: 9460749
Filing Date: 2016-10-04
CPC Classification: G06F,G11B

Claim Text:
1. A method for processing I/O balance, performed by a device, comprising: receiving a storage request message, wherein the storage request message comprises: a data table, an estimated capacity of the data table, a size of a data block corresponding to the data table, and a disk identifier indicating storage of the data table, the data table comprising at least one data file; acquiring database information according to the estimated capacity of the data table, the size of the data block corresponding to the data table and the total number of disks corresponding to the disk identifier, wherein the database information comprises: an estimated capacity of the data table in each disk corresponding to the disk identifier, the number of data files in each disk corresponding to the disk identifier, and a size of the data file; generating a first shell script according to the storage request message and the database information, and creating a database according to the first shell script; when the disk identifier is a data disk identifier, acquiring read I/O information Rni′ in first I/O information of each data disk by using a formula Rni′=(Rni-Rna)/Rna when the disk identifier is a data disk identifier; acquiring write I/O information Wni′ in the first I/O information in each data disk by using a formula Wni′=(Wni-Wna)/Wna; and acquiring a weighted average Pn by using a formula Pn=Krni* |Rni′|+Kwni* |Wni′|, wherein Krni=|Rni′|/(|Rni′|+|Wni′|), Kwni=|Wni′|/(|Rni′|+Wni′|); n indicates a sampling time; i indicates the data disk identifier; Rni indicates read I/O information in first I/O information of the i