Linux Perf: A Powerful Tool for System Performance Monitoring and Analysis

Linux Perf: A Powerful Tool for System Performance Monitoring and Analysis

When you feel like your Linux server is crawling like a snail, or your program is running as slow as a PowerPoint presentation, don’t rush to complain. Today, let’s talk about perf, this tool can help us identify bottlenecks in the system and see which little rascal is lagging behind. What is Perf? Perf is … Read more

Essential Linux Books for Beginners to Experts

Essential Linux Books for Beginners to Experts

When it comes to Linux, many students’ first impression is: “Linux is too difficult, I haven’t even figured out microcontrollers, how can I understand Linux?” Actually, that’s not the case. You can learn Linux without any hardware background. Due to the vastness of the system, its development is divided into Linux application development and Linux … Read more

Essential Linux System Monitoring: Master CPU, Memory, and Disk Usage

Essential Linux System Monitoring: Master CPU, Memory, and Disk Usage

Memory, CPU, bandwidth, and disk usage are common aspects to monitor in Linux operations. Understanding how to check this information is a necessary skill. Below are several commonly used commands. General CPU and Memory top: Usage command: top Top Half %us Indicates the CPU usage rate of user space programs (not scheduled by nice) %sy … Read more

11 Essential Performance Analysis Tools for Linux

11 Essential Performance Analysis Tools for Linux

Click the top “LinuxLearn This Way” to follow, star, or pin it for the latest updates. First delivery guaranteed. Editor: Linux Sister | Source: Linux Should Be Learned This Way Link: https://bbs.huaweicloud.com/blogs/421580 Previous post: The efficient log printing tool we’ve used for two years is really amazing! Hello everyone, I’m Linux Sister. Command Summary: <span>uptime</span> … Read more

Three Commands for Remote File Download in Linux (scp/ftp/wget)

Three Commands for Remote File Download in Linux (scp/ftp/wget)

1、scp命令 scp /home/work/source.txt [email protected]:/home/work/ #Copy the local source.txt file to the /home/work directory on the machine 192.168.0.10 scp [email protected]:/home/work/source.txt /home/work/ #Copy the source.txt file from the machine 192.168.0.10 to the local /home/work directory scp [email protected]:/home/work/source.txt [email protected]:/home/work/ #Copy the source.txt file from the machine 192.168.0.10 to the /home/work directory on the machine 192.168.0.11 scp -r /home/work/sourcedir … Read more

How to Set Process Priority in Linux

How to Set Process Priority in Linux

1. Introduction The previous article discussed how to check process priority; this one explains how to set process priority. There are two methods for setting process priority: Command line; Source code; 2. Command Line Method main.c: #include <stdio.h> int main(int argc, char *argv[]) { while(1) { ; } return 0; } Compile: gcc -o proc-pri … Read more

What To Do When A Process’s CPU Usage Exceeds 100% In Linux?

What To Do When A Process's CPU Usage Exceeds 100% In Linux?

1. Reasons for CPU Usage Over 100% in top CommandIn Linux systems, a process’s CPU usage exceeding 100% in the top command can have multiple reasons.(1) Factors Related to Multi-Core Processors 1. Characteristics of Multi-Core CPUs – For multi-core processor systems, the top command divides CPU usage by the number of cores and displays it … Read more

Linux File Search Tools: Locate vs Find

Linux File Search Tools: Locate vs Find

1. Locate 1. Performance Overview Queries the pre-built file index database on the system /var/lib/mlocate/mlocate.db Note: If this file is deleted, locate will not work. You need to manually update the database (updatedb) or restart the system for locate to function again. Relies on a pre-built index: The index is constructed automatically during idle times … Read more

Starting Embedded Linux Systems with Buildroot – Part 2

Starting Embedded Linux Systems with Buildroot - Part 2

This series will create my first runnable embedded Linux system based on the Buildroot repository provided by Microchip. Change Buildroot configuration based on target hardware This series of articles will demonstrate using the Microchip SAMA5D2-XULT development board. This chapter explains based on the buildroot-external-microchip-linux4microchip-2024.10/configs/sama5d2_xplained_headless_defconfig configuration file: Preparation – SAMA5D2 MPU Linux Boot Process Power on … Read more

Understanding the Linux Top Command

Understanding the Linux Top Command

<span>top</span> is a very powerful real-time system monitoring tool in Linux that allows you to dynamically view the system’s operating status, including the usage of resources such as CPU, memory, and processes. 1. Starting top To start top, simply enter the following command in the terminal: top 2. Overview of the top Interface The top … Read more