The invention belongs to the technical field of task scheduling of a storage
system, and discloses a user-mode-oriented storage task self-adaptive scheduling method and
system, and a more efficient task
processing framework is realized by replacing an original kernel thread-based storage task scheduling scheme with a user-mode
coroutine scheduling mechanism. The multi-level priority queues are directly managed in task scheduling, and CPU core binding configuration is carried out, so that the switching
delay of a user mode / kernel mode is reduced, and the task execution
controllability is improved. A dual-threshold self-adaptive scheduling
strategy switching technology is introduced, and a greedy scheduler and a
reinforcement learning scheduler are combined, so that the problem of adaptability of a static scheduling strategy in a dynamic load environment is relieved, performance loss caused by scheduling strategy solidification is avoided, and the self-adaptive capability and
service quality guarantee of a
system under a complex load are improved. Compared with an existing task scheduling method based on a kernel thread, the task scheduling method has the advantages that the overall performance and the
resource utilization rate of a storage system can be remarkably improved while the task execution efficiency and the SLA requirement are guaranteed.