Ubuntu 20.04安装NVIDIA GTX 1650驱动后高负载时冻结,疑与交换内存有关
Ubuntu 20.04安装NVIDIA GTX 1650驱动后高负载时冻结,疑与交换内存有关
我把系统从Ubuntu 16.04LTS一路升级到了20.04LTS,目的就是能用GPU跑神经网络——毕竟旧系统装不上最新的NVIDIA驱动。我的显卡是NVIDIA GeForce GTX 1650,在Ubuntu 18.04的时候装了430版本的驱动,升级到20.04后系统自动把驱动更到了525版本,这个版本也是NVIDIA官方给我显卡推荐的。
但现在只要遇到高负载场景——比如播放视频、Firefox加载大量数据,或者尝试跑神经网络的时候,电脑就开始变慢,鼠标指针变得卡顿,GPU温度直接冲到95°C,用nvidia-smi命令查看,gpu-util直接拉满100%,紧接着系统就彻底僵住了:鼠标键盘完全没反应,音频还会卡在一段循环播放,只能按电源键硬重启才能恢复。
我在Ubuntu社区看到好多类似的20.04冻结问题,大部分提到可能和BIOS版本有关,但也有一些帖子提到交换内存只有2GB或4GB的时候会出问题,我查了下自己的swap居然只有976MB…我不太确定是不是这个原因导致的,毕竟我对Ubuntu和驱动这块了解不多,现在这个问题折腾我好久了,真的很崩溃,希望有人能帮帮我。
下面是我收集到的系统信息:
free -h 命令输出
total used free shared buff/cache available Mem: 15Gi 2,8Gi 10Gi 36Mi 2,2Gi 12Gi Swap: 976Mi 0B 976Mi
sysctl vm.swappiness 命令结果
vm.swappiness = 60
sudo lshw -C memory 命令输出
PCI (sysfs) *-firmware description: BIOS vendor: American Megatrends Inc. physical id: 1 version: E16S3IMS.108 date: 11/18/2019 size: 64KiB capacity: 16MiB capabilities: pci upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi *-memory description: System Memory physical id: 3b slot: System board or motherboard size: 16GiB *-bank:0 description: SODIMM DDR4 Synchronous 2667 MHz (0,4 ns) product: M471A2K43CB1-CTD vendor: Samsung physical id: 0 serial: 36BD8D3D slot: ChannelA-DIMM0 size: 16GiB width: 64 bits clock: 2667MHz (0.4ns) *-bank:1 description: [empty] physical id: 1 slot: ChannelB-DIMM0 *-cache:0 description: L1 cache physical id: 45 slot: L1 Cache size: 384KiB capacity: 384KiB capabilities: synchronous internal write-back unified configuration: level=1 *-cache:1 description: L2 cache physical id: 46 slot: L2 Cache size: 1536KiB capacity: 1536KiB capabilities: synchronous internal write-back unified configuration: level=2 *-cache:2 description: L3 cache physical id: 47 slot: L3 Cache size: 12MiB capacity: 12MiB capabilities: synchronous internal write-back unified configuration: level=3 *-memory UNCLAIMED description: RAM memory product: Intel Corporation vendor: Intel Corporation physical id: 14.2 bus info: pci@0000:00:14.2 version: 00 width: 64 bits clock: 33MHz (30.3ns) capabilities: pm cap_list configuration: latency=0 resources: memory:d5418000-d5419fff memory:d541d000-d541dfff
另外附上系统冻结前、增加交换内存后的htop输出内容。
备注:内容来源于stack exchange,提问作者Ferroeg92
相关产品推荐
相关产品推荐

