The application discloses a
virtual machine vcpu thread special-purpose scheduler based on a
linux kernel and KVM, and the main body is VMSCH, characterized in that: the VMSCH is a
virtual machine vcpu scheduler, the VMSCH priority is between an RT scheduling strategy and a CFS scheduling strategy, the priority is 99, and the RT priority is adjusted from 1-99 to 1-98, the VMSCH only manages the scheduling of vcpu threads and does not manage other threads. In the application, the
duty cycle of vcpu exclusive pcpu can be dynamically configured, and it is unnecessary to configure at
booting, so that the flexibility of the scheme of isolating pcpu for vcpu use by using isolate is avoided, pcpu resource waste caused by
bandwidth limitation and idle state of the RT scheduling strategy is avoided, and the application has
CPU architecture independence, and after implementation, any
CPU architecture, such as X86, ARM and Loongson, can be naturally supported, so that the application has extremely wide application range.