The invention provides a
system operation lagging construction method and device, equipment, a medium and a program product. Relates to the technical field of
system performance testing. The method comprises the steps that the CPU thread number and a watchdog threshold value of a current
system are obtained; on the basis of the CPU thread number and the watchdog threshold value, the duration of the target thread executing busy waiting operation is calculated through a preset formula; initializing a
spin lock of a kernel mode, and creating target threads of which the number is the same as that of the CPU threads, so that the target threads execute preset
processing logic to construct system operation jamming; the preset
processing logic comprises the following steps: periodically obtaining a
spin lock; responding to the situation that the
spin lock is not obtained, and continuing to execute the spin lock obtaining operation; and in response to obtaining the spin lock, executing a busy waiting operation. According to the method, CPU resources are continuously occupied through kernel spin lock competition, and a real system jamming scene is simulated. The busy waiting operation duration is dynamically calculated, it is ensured that the single-thread lock
holding time is slightly lower than a watchdog threshold value, and
crash of a system triggering unrecoverable is avoided.