Why does the linux system become slow and slow? let me restart it. this is often used and effective. As the most intimate partner of programmers, you can treat it more gentle. Www.2cto.com in the linux release, the kernel is very stable and there are very few bugs, so it is okay... why is the linux system slowing down? "the system is getting slow, let me restart it." This is often used and the effective method is really rude. As the most intimate partner of programmers, you can treat it more gentle. Www.2cto.com in the linux release, the kernel is very stable and there are very few bugs, so it is usually caused by an application that slows down the system. As long as you find out which applications are causing it, kill it. The top tool that comes with linux cpu usage can display the current cpu usage in real time. $ Top $ pkill-9 chrome # assume that the cpu usage of the chrome process is 100% less than that of windows, and there are no dead attackers everywhere. The SIGKILL signal can easily kill the process. Since then, the cpu has finally lived a bit of life in Nongfu Spring, and the cpu fan is also quiet. Memory usage of www.2cto.com when an application needs to read and write swap partitions frequently due to memory leakage or memory abuse, or when OOM Killer automatically clears some processes, the system will become very slow, just like after a few people control a house, even if they only want to share the room they just need, it is a big challenge. $ Free-m # check swap partition usage $ ps-eo pid, % mem, cmd -- sort % mem $ pkill-9 chrome, chrome's memory abuse/leakage is completely recycled and allocated to other required processes, so it will never accept the one-bedroom location from the masses. IO usage generally refers to frequent read/write operations on disks, such as copying a large number of small files and executing scheduled tasks such as updatedb, which may also cause freezing of the system. Similar to top, iotop can display the current io read/write status in real time. $ Sudo emerge iotop # install iotop $ sudo iotop # The New linux version requires super permissions. if this task is not urgent, you can still use pkill to kill the task and re-execute it in idle time. Or tar into a large archive file and then read and write. If you think the above steps are too cumbersome, restart the Xwindow operation by sudo/etc/init. d/xdm restart to solve most of the problems. Sent to colleagues in the application Group: Is life more beautiful? ~ EOF ~
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.