In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what are the factors that lead to the slow running of Linux and how to solve the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe that you will gain something after reading this article that leads to the slow running of Linux, and how to solve it.
Before we figure out how to speed up Linux computers, we need to know what methods can help us find services that start at boot, processes running at higher or lower priorities, CPU health, whether memory is filled with too much data, and check that the swap memory area is full. Finally, we also need to check to see if the hard drive is working properly.
Your Linux computer may be slow for the following reasons:
Many unnecessary services are started or initialized by init programs at boot time. There are many memory-consuming applications on the computer, such as LibreOffice (old) hard drives that fail, or hard drives that fail to keep up with modern applications.
Before we figure out how to speed up Linux computers, we need to know what methods can help us find services that start at boot, processes running at higher or lower priorities, CPU health, whether memory is filled with too much data, and check that the swap memory area is full. Finally, we also need to check to see if the hard drive is working properly.
1. Check CPU information
If you want to speed up a slow Linux computer, the first step is to check the CPU information. The main reason your computer is time-consuming to run LibreOffice may be that CPU is far from fast enough to run heavyweight applications.
Open the terminal and run one of the following commands:
Cat / proc/cpuinfolscpu
The above command displays detailed information about CPU, such as vendor_id, model name, CPU MHZ, cache size, microcode, and bogomips.
There are a few important details about CPU information that can be explained in detail.
Bogomips:bogo means bogus, and MIPS means millions of instructions per second. It is a stand-alone program that displays system performance. Model_name: indicates the manufacturer, model, and speed of the CPU. In this article, we have Intel (R) Cy Young (R) CPU with a speed of 1.73GHz. CPU MHZ (megahertz): used to measure the transmission speed of channels, buses, and clocks in computers. In this article, the transmission speed is 1733.329GHz.
You may not realize that Intel Cy Young 1.73GHz CPU is an old processor with very low processing power. In this case, the CPU transmission speed of this computer is obviously lower than that of a computer with multicore 2.8GHz CPU. This may be why our Linux computers are slow to run heavyweight applications.
Solution.
If CPU is old and slow, the only solution is to get a new one. This is an aspect to pay attention to when buying a new processor.
Check the services started at boot time
There are different ways to check the services started at boot time. You can use any of the following commands.
This command lists the services that are started at boot:
Service--status-all
This command lists the services that are started at boot. It is compatible with CentOS, Fedora, and Redhat:
Chkconfig-list
The command also lists the services that are started at boot:
Initctl list
Initctl is a daemon control tool that allows system administrators to communicate and interact with Upstart daemons.
If your system uses systemd, you can use the following command to find the service running at boot time:
Sudo systemctl list-unit-files-- state = enabled
Solution.
For Linux distributions that use systemd, you can use the systemctl command to manage the service so that it does not run at boot time.
3. Check the CPU load
In addition to checking the services started at boot, you can also check whether the processor / CPU is overloaded by the process. You can use the command top to check the CPU load.
The top command ranks the processes with the highest resource usage on top. As you can see from the screenshot below, you can see which process / application is abusing CPU and use the kill command to terminate it if necessary.
Solution.
If you run too many applications (foreground or background) and CPU is not up to standard, it's best to close unused applications. In addition, any applications you do not use are prohibited from running in the background.
In addition, you can use preload to load commonly used applications. Preload is a daemon that runs in the background and analyzes applications that run frequently.
Open the terminal and run the following command:
Sudo apt-get install preload
For Fedora and CentOS users, the following commands are available:
Sudo yum install preload
Preload runs in the background. Therefore, there is no need to adjust it. Preload loads some of the commonly used applications into memory, ensuring that they load faster.
Fourth, check the free memory space
Memory is usually used to store common applications. You can use the free command to check memory information, such as free space available in memory. Less memory space can also affect computer performance.
Solution.
Either upgrade memory or replace memory-consuming applications with lightweight applications. Applications such as LibreOffice consume a lot of memory. You can use AbiWord instead of LibreOffice.
5. Check whether the hard drive is overused
The hard drive indicator is flashing all the time, but you don't know what it's doing? Mysterious input / output is likely to be a problem, so there is a top-like tool: iotop, which is designed to help diagnose such problems.
Open the terminal and enter the command:
Sudo apt install iotop
For Fedora and CentOS users, the following commands are available:
Sudo yum install iotop
The value of a normal idle system is basically zero, but there are a few small spikes when the data is written, as shown in the following screenshot:
However, if you run disk-intensive utilities such as find, you can see the name and throughput clearly listed by iotop.
Now you can easily find out which program is using Icano, who is running it, data reading speed, and more.
This is the end of the article on "what are the factors that lead to the slow running of Linux and how to solve it?" Thank you for reading! I believe you all have a certain understanding of the knowledge of "what are the factors that lead to the slow running of Linux and how to solve it". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.