The application belongs to the technical field of computer storage, and particularly relates to a method for improving fairness of a Lustre HSM task, which aims to solve the problem that a long-term occupation of a Coordinator
queue by a first-started HSM archiving task causes a late service of a later-started task. The method exposes the processed message count of each operation type by modifying the HSM Agent, and estimates the
queue depth based on the difference between the total number of sent messages and the processed number of messages on the
client side. When the depth exceeds a first threshold value, the sending is suspended, and the sending is resumed when the depth falls below a second threshold value, so as to realize adaptive flow control. All concurrent tasks independently execute the mechanism, and cooperatively maintain the controllable global
queue length. The application does not need to modify the Lustre kernel or the Coordinator, and only needs to adapt the user-mode Agent and the
client script, so that the multi-task concurrent fairness and the overall
throughput of the
system can be significantly improved, and the application has high compatibility and deployment convenience.