Software Interrupt Time – ‘si’ Time in top
Pardon the interruption...
Join the DZone community and get the full member experience.
Join For FreeCPU consumption in Unix/Linux operating systems is studied using eight different metrics: User CPU time, System CPU time, nice CPU time, Idle CPU time, Waiting CPU time, Hardware Interrupt CPU time, Software Interrupt CPU time, Stolen CPU time. In this article let's study ‘Software Interrupt CPU time’.
What Is Software Interrupt CPU Time?
To understand the ‘software interrupt time’, one must understand ‘software interrupts’ first. Software interrupts can be triggered because of the following events:
- When software run into exceptional conditions such as a divide by zero or accessing unavailable memory.
- When a special instruction in the application code causes an interrupt when the processor executes it.
- Some hardware interrupts might take a long time to complete. In such scenarios, hardware interrupts can be deferred to execute at a later point of time through software interrupts. Software interrupts can be scheduled to run independently or on any CPU in the device or even run concurrently. On the other hand, these flexibilities don’t exist in hardware interrupts.
The amount of time the CPU spends in processing these software interrupt signals is called ‘Software interrupt time’.
How to Find the Software Interrupt CPU Time
Software interrupt CPU time can be found from the following sources:
- You can use web-based root cause analysis tools to report ‘software interrupt’ CPU time. Tool is capable of generating alerts if ‘software interrupt’ CPU time goes beyond the threshold.
- ‘software interrupt’ CPU time is also reported in the Unix/Linux command line tool ‘top’ in the field ‘si’ as highlighted in the below image.
Fig: software interrupt ‘si’ time in top
How to Resolve a High Software Interrupt CPU Time
- Try rebooting the device.
- Make sure you are running on the latest OS version with all patches installed.
Opinions expressed by DZone contributors are their own.
Comments