在每次启动和重新启动之后,我的Ubuntu21.04工作正常。然而在3-4个小时后,它“结冰了”。除了强制重新启动什么都没有帮助。如何避免后者?
终点站运行:
<free -h
total used free shared buff/cache available
Mem: 3.5Gi 2.2Gi 243Mi 278Mi 1.1Gi 832Mi
Swap: 2.0Gi 17Mi 2.0Gi
vm.swappiness = 60
Filename Type Size Used Priority
/swapfile file 2097148 17772 -2
top - 09:32:34 up 26 min, 1 user, load average: 0.26, 0.59, 1.18
Tasks: 203 total, 3 running, 200 sleeping, 0 stopped, 0 zombie
%Cpu(s): 42.9 us, 0.0 sy, 0.0 ni, 57.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0top - 09:33:54 up 27 min, 1 user, load average: 0.72, 0.73, 1.18
Tasks: 203 total, 3 running, 200 sleeping, 0 stopped, 0 zombie
%Cpu(s): 25.0 us, 18.8 sy, 0.0 ni, 56.2 id, 0.0 wa, 0.0 hi, 0.0 si, top - 09:33:54 up 27 min, 1 user, load average: 0.72, 0.73, 1.18
Tasks: 203 total, 4 running, 199 sleeping, 0 stopped, 0 zombie
%Cpu(s): 40.0 us, 20.0 sy, 0.0 ni, 40.0 id, 0.0 wa, 0.0 hi, 0.0 si,top - 09:33:54 up 27 min, 1 user, load average: 0.72, 0.73, 1.18
Tasks: 203 total, 2 running, 201 sleeping, 0 stopped, 0 zombie
%Cpu(s): 33.3 us, 33.3 sy, 0.0 ni, 33.3 id, 0.0 wa, 0.0 hi, 0.0 si,top - 09:33:54 up 27 min, 1 user, load average: 0.72, 0.73, 1.18
Tasks: 203 total, 5 running, 198 sleeping, 0 stopped, 0 zombie
%Cpu(s): 28.6 us, 42.9 sy, 0.0 ni, 28.6 id, 0.0 wa, 0.0 hi, 0.0 si,
MiB Mem : 3623.3 total, 139.9 free, 2286.0 used, 1197.4 buff/c
MiB Swap: 2048.0 total, 2029.4 free, 18.6 used. 822.0 avail>
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=28539ebd-a6e3-4fa7-8dcc-8bdc31b0f505 / ext4 errors=remount-ro 0 1
/swapfile none swap sw 首先,最有价值的东西应该在硬盘上(例如,无线电)和每日修改(关闭互联网)。安装工具也要准备好。当结冰不好,建议没有得到,然后强制关闭,插入安装工具,启动时按F2。从启动菜单中选择上述工具并重新安装系统。更喜欢LTS版本。小心利维帕奇。在我的案子里起作用了。
发布于 2021-09-01 13:37:56
你没有足够的内存或者交换空间。
total used free shared buff/cache available
Mem: 3.5Gi 2.2Gi 243Mi 278Mi 1.1Gi 832Mi
Swap: 2.0Gi 17Mi 2.0Gi我们会把你的交换数量从2G增加到4G,看看这是否有帮助.
注意:不正确地使用rm和dd命令会导致数据丢失。建议复制/粘贴。
在terminal..。
sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 4G RAM and 4G swap使用sudo -H gedit /etc/fstab或sudo pico /etc/fstab编辑/etc/fstab。
确认/etc/fstab中的/swapfile行.并确认没有其他“交换”线..。用这一行的空格..。确认没有标签..。
/swapfile none swap sw 0 0reboot # reboot and verify operation重新安装Ubuntu以解决问题。
https://askubuntu.com/questions/1361138
复制相似问题