"top" is a robust, lightweight command-line tool that provides real-time reports on system-wide resource utilization. It is commonly available in various Linux distributions. However, we have observed that it may not accurately report information when executed within a Docker container. This post aims to bring this issue to your attention. CPU Stress Test in docker... Continue Reading →
ping – Unix/Linux command, beginners introduction with examples
'ping' command is used to troubleshoot and diagnose network connectivity issues. It is used to check whether the host is reachable. It’s available on all the Operating Systems. ‘ping’ reports the round-trip time for the messages sent from the source to the destination. How does ‘ping’ work? Fig: Ping Packets Ping command sends a 32... Continue Reading →
dmesg – Unix/Linux command, beginners introduction with examples
'dmesg' (display message) is not a popular Unix/Linux command. However, it provides vital information that can be used for troubleshooting production performance problems. Kernel is the core part of the operating system responsible for the effective functioning of the device. 'dmesg' command prints all the kernel-related log messages in the console. It includes messages related... Continue Reading →
What are the process states in Unix/Linux?
In Unix/Linux operating systems, processes can be in one of the following states: 1. RUNNING & RUNNABLE 2. INTERRRUPTABLE_SLEEP 3. UNINTERRUPTABLE_SLEEP 4. STOPPED 5. ZOMBIE Let's discuss these states in this article. Fig: Process State transition diagram RUNNING & RUNNABLE When the CPU executes a process, it will be in a RUNNING state. When the... Continue Reading →
How to kill process in Unix/Linux?
There are different options to terminate a process in Unix/Linux flavour of operating systems. This article intends to list down those options. kill You can use the 'kill' command to terminate a process by passing the 'process id'. kill {PID} PID - is the 'process Id' of the process that you want to terminate. If... Continue Reading →
How to find process id in Unix/Linux?
Coming soon...
What is ‘Load Average’?
Load average is an age-old metric, which is in existence since the 1970s to indicate whether the system is under heavy/average/low load. It is useful to indicate whether the system’s load is on an increasing trend or a decreasing trend. In this article, let’s learn more about ‘Load Average’. How to understand 'Load Average'? In... Continue Reading →
Load Average – indicator for CPU demand only?
'Load Average' is an age-old metric reported in various operating systems. It's often assumed as a metric to indicate the CPU demand only. However, it is not the case. 'Load Average' not only indicates CPU demand, but also the I/O demand (i.e., network read/write, file read/write, disk read/write). To prove this theory, we conducted this... Continue Reading →
Different CPU times – Unix/Linux ‘top’
CPU consumption in Unix/Linux operating systems are studied using 8 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. Let’s review each of the CPU time in this article. user CPU time & system CPU time... Continue Reading →
nice, renice, top
Coming soon..