The Linux operating system is a well-liked option for servers. It is a highly dependable and secure operating system that is open-source and free. Additionally, it is simple to customize and works with the majority of hardware and applications. Numerous functions, including web hosting, virtualization, file and print services, and database management, are performed on Linux servers. Applications for the Internet of Things (IoT), big data analytics, and cloud computing all employ Linux servers. Linux servers may run on a variety of hardware and provide scalability and flexibility. They are also renowned for their performance, security, and stability. Linux servers are affordable, making them a preferred option for companies of all sizes.
On the Linux operating system, some commands can help to get information on resource usage and details.
CPU
- lscpu
- top
- mpstat
- vmstat
- SAR
- Htop
- Neon
Memory
- top
- free
- dmidecode
- /proc/meminfo is less
Disk
- sysstat
- iostat
- Performance Counters for the Linux OS
System
- CPU User: The amount of time spent executing non-kernel programs (including enjoyable time). time spent on the CPU as a percentage.
- CPU System: The amount of time used to execute kernel code. time spent on the CPU as a percentage.
- CPU Idle: Idle time on the CPU. Before Linux 2.5.41, IO-wait time was included in this. time spent on the CPU as a percentage.
- Interruptions Count: The number of interruptions every second, including the clock, is known as the interruptions count.
- Context Switch Rate: The frequency of context transitions.
- Context Switch Count: The number of context switches made by each CPU each second.
- Processes Runnable: The number of processes that are awaiting execution.
- Processes Runnable per CPU: The quantity of processes each CPU has available for execution.
- Processes Sleeping: The number of processes resting soundly.
- Processes Swapped: The number of running processes that have been switched out. Although this field is calculated, Linux never uses desperate swaps.
- Swap in: Amount of RAM that was swapped in from disk (/s)
- Swap out: Memory transferred to disc in the specified amount of time (/s)
Memory
- Whole Memory: The whole amount of RAM that is usable (i.e., physical RAM less a few reserved bits and the kernel binary code).
- Memory Used: Total memory used minus free memory.
- Memory Free: The total (overall stat) of LowFree and HighFree.
- Memory Buffered: Storage of memory in a buffer cache. metric today is largely meaningless.
- Memory Cache: Memory in the disc cache, excluding SwapCache, is referred to as the memory cache.
- User Memory: Memory consumed by the user, excluding caches and buffers. Memory Total – Memory Free – Memory Buffered – Memory Cache = User Memory.
- % User Memory: The proportion of memory that is being used (% User Memory = User Memory / Total Memory * 100)
- Total Swap: Total physical swap memory capacity.
- Swap Free: Total free swap memory is referred to as swap-free.
- Swap Total – Swap Free: Swap Used.
Disk (per device)
- Disc Read Request Merged: The number of read requests that are combined and sent to the device every second.
- Disc Write Request Merged: The quantity of merged write requests sent to the device each second.
- Disc Read The rate at which the device receives read requests.
- Disc Write The rate at which the device receives requests to write data.
- Disk Read (sector): The number of sectors reads from the device per second is known as the disc read (sector).
- Disc Write (sector): The rate at which a device is written using sectors.
- Disk Read (KB): The number of kilobytes reads from the device per second is known as the disc read (KB).
- Disc Write (KB): The amount of data written to the drive in kilobytes each second.
- Disc Request Size: The typical size of requests sent to the device, measured in sectors.
- Queue Length: The typical length of the queue for requests sent to the device.
- IO Wait The typical amount of time (in milliseconds) required for an I/O request to be fulfilled by the device. This comprises the amount of time requests are held in a queue and the time it takes to process them.
- Disc Service Time: The typical response time (measured in milliseconds) for requests for I/O made of the hardware.
- IO CPU Time: The portion of CPU time used to send I/O requests to the device (the device’s bandwidth utilization). When this number approaches 100%, device saturation occurs.
Processes (per process)
Each process has access to the counters in the processes section. Select the process identification in the counter definition window outside of the wizard. The selection button opens a picker for the process identification.
- Process Memory Usage: Resident size (kb) in terms of process memory usage. the physical memory that a task hasn’t swapped out.
- Process CPU Time: The task share of the Total CPU time spent on CPU tasks since the last update.
Network (per interface)
The network section counters are accessible by the interface. Select the interface name in the counter definition box outside of the wizard. The Fill button accesses a network interface selector.
- Incoming Bytes/s: The amount of data received by the network interface per second in terms of incoming bytes/s.
- Incoming packets: The number of packets that the network interface receives every second is known as incoming packets.
- incoming packet errors/s: The number of bad packets received by the network interface per second in terms of incoming packet errors/s.
- Incoming Packets Dropped/s: Number of Incoming Packets Dropped/s: The number of packets that the network interface drops per second.
- Incoming Packet Error %: The percentage of broken packets received by the network interface is known as the “Incoming Packet Error %” formula (Incoming Packet Error % = Incoming Packet Errors / Incoming Packets *100 ).
- Outgoing Bytes/s – The number of bytes that the network interface sends every second is known as Outgoing Bytes/s.
- Outgoing packets/s: The number of packets that the network interface sends every second is known as outgoing packets/s.
- Outgoing Packet Errors/s: Outgoing Packet Errors/s: The rate at which the network interface generates bad packets.
- Outgoing Packets Dropped/s: Number of outgoing packets sent by the network interface that are lost every second.
- Outgoing Packet Errors: The percentage of packets sent across the network interface that contain errors is known as “Outgoing Packet Error %” (Outgoing Packet Error % = Outgoing Packet Errors/Outgoing Packets *100).
- Packet Collisions: The number of packet collisions identified by the network interface.
TCP
- Incoming Segments: Segments Arriving Per Second The number of TCP segments arriving each second.
- Outgoing segments/s: The number of TCP segments sent every second is known as outgoing segments/s.
- Retransmitted segments/s: Number of TCP segments retransmitted every second, measured in retransmitted segments/s.
- % Rebroadcast Segments: Rebroadcast Segments / Outgoing Segments *100 = % Rebroadcast Segments, which is the percentage of rebroadcast segments.