Balanced share control method and device for virtual central processing units (VCPUs) among cascaded multi-core central processing units (CPUs)
暂无分享,去创建一个
The invention discloses a balanced share control method and a balanced share control device for virtual central processing units (VCPUs) among cascaded multi-core central processing units (CPUs). The method comprises the following steps of: determining the number of VCPUs which participate in service processing in each multi-core CPU according to a message processing speed of the VCPUs in each ofthe cascaded multi-core CPUs, wherein the number of the VCPUs which participate in the service processing in the multi-core CPUs in the preceding stage and the backward stage is in inverse proportionto the message processing speed of the VCPUs in the two multi-core CPUs; when the multi-core CPU in the preceding stage receives a message, selecting a VCPU for message processing from the VCPUs, which participate in the service processing, in the multi-core CPU in the preceding stage according to a message characteristic value; selecting a VCPU from the VCPUs, which participate in the service processing, in the multi-core CPU in the backward stage, and outputting indication information of the selected VCPU in the backward stage and the message processed by the VCPU in the preceding stage to the multi-core CPU in the backward stage, wherein the VCPU in the backward stage selected by the VCPUs in the preceding stage at the moment is different from the VCPU in the backward stage selected bythe VCPUs in the preceding stage at the previous time; and selecting the corresponding VCPU to process the message output by the multi-core CPU in the preceding stage by the multi-core CPU in the backward stage according to the indication information of the VCPU. By the invention, the whole performance of the cascaded multi-core CPUs can be improved.