Linux Character Device Driver Example

Linux Character Device Driver Example

globalmem Looking at Linux device driver development details, the chapter on character device drivers provides test code and application programs that are very helpful for beginners. The reason for writing this article is that I noticed I had not yet written about character devices, despite having previously published articles. As for the role of the … Read more

Is It Possible to Rewrite the Linux Kernel in Rust?

Is It Possible to Rewrite the Linux Kernel in Rust?

It is well known that Linux is the representative of the C language. However, times have changed, and Rust is on the rise, gaining more and more support, gradually taking on the role of the system language for Linux. At the 2020 Linux Plumbers Conference, developers seriously considered the idea of using Rust for inline … Read more

Is It Too Early to Replace C/C++ with Rust?

Is It Too Early to Replace C/C++ with Rust?

Follow “Script Home ”, together with millions of developers Source丨51CTO Technology Stack (ID: blog51cto) Written by丨Qianshan If reprinted, please contact the original public account Rust has been quite busy recently. First, Microsoft’s CTO publicly stated: “It’s time to use Rust to replace C/C++ for creating new projects!” Then Linus Torvalds indicated that, barring any accidents, … Read more

Linux Kernel Performance Optimization: Secrets to Speeding Up Your System

Linux Kernel Performance Optimization: Secrets to Speeding Up Your System

In today’s digital age, the Linux system is widely used in servers, cloud computing, big data, and many other fields due to its strong stability, openness, and flexibility. However, with the continuous growth of business volume and the increasing complexity of application scenarios, the performance of the Linux kernel faces tremendous challenges. Even minor performance … Read more

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