Patent ID: 8819685

Claim:
A method for adjusting an input/output (I/O) channel on a virtual platform, comprising: counting, by a host, a current average I/O throughput of a plurality of virtual machines (VMs) operating on the host; increasing, by the host, working threads for processing VMs between a plurality of front devices and a plurality of back devices of the VMs when the current average I/O throughput is greater than a first threshold value, wherein the current average I/O throughput of the VMs is less than the first threshold value after the working threads are increased; decreasing, by the host, working threads for processing the VMs between the front devices and back devices of the VMs when the current average I/O throughput is less than a second threshold value, wherein the current average I/O throughput of the VMs is greater than the second threshold value after the working threads are decreased, wherein the first threshold value is greater than the second threshold value; and separately adjusting, by the host, according to working threads for processing the VMs after the increase or decrease, a mapping relationship between queues in the front devices of the VMs and working threads for processing the VMs, and a mapping relationship between queues in the back devices of the VMs and working threads for processing the VMs, wherein a plurality of data transmission channels are formed between the front devices and the back devices of the VMs.