Ubuntu 环境卡顿的原因有很多,下面按常见程度和排查方向给你一个系统性的总结,方便你对照定位。
free -h
top
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
htop
systemctl --user mask tracker-miner-fs
iostat -x 1
sudo apt install xubuntu-desktop
glxinfo | grep renderer
ubuntu-drivers autoinstall
如果是:
gnome-session-properties
或:
systemctl --user list-unit-files
df -h
df -i
free -h
top
df -h
iostat -x 1
glxinfo | grep renderer
你可以告诉我:
top 或 htop 里占用最高的进程我可以直接帮你定位到具体原因并给解决方案。