本文主要是介绍FreeBSD重新加载库(在占用只好重启),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在FreeBSD下重新装nvidia驱动后,想重新加载新驱动,进行了下面的尝试:
kldstat查看当前加载的库
kldstat
Id Refs Address Size Name1 75 0xffffffff80200000 1d34598 kernel2 1 0xffffffff81f35000 5d51c8 zfs.ko3 1 0xffffffff8250b000 7718 cryptodev.ko4 1 0xffffffff82e19000 107330 nvidia-modeset.ko5 1 0xffffffff83000000 1fcfa10 nvidia.ko6 2 0xffffffff82f21000 31a10 linux.ko7 6 0xffffffff82f53000 be70 linux_common.ko8 1 0xffffffff82f5f000 3220 intpm.ko9 1 0xffffffff82f63000 2178 smbus.ko
10 1 0xffffffff82f66000 7480 vmci.ko
11 1 0xffffffff82f6e000 2dc30 linux64.ko
12 1 0xffffffff82f9c000 2278 pty.ko
13 1 0xffffffff82f9f000 3558 fdescfs.ko
14 1 0xffffffff82fa3000 73c0 linprocfs.ko
15 1 0xffffffff82fab000 440c linsysfs.ko
16 1 0xffffffff82fb0000 3360 uhid.ko
17 1 0xffffffff82fb4000 33c0 usbhid.ko
18 1 0xffffffff82fb8000 3380 hidbus.ko
19 1 0xffffffff82fbc000 3360 wmt.ko
20 1 0xffffffff82fc0000 4758 nullfs.ko
使用kldunload卸载库
kldunload nvidia
kldunload: can't unload file: Device busy
因为正在用着无法卸载。同样也没法load
kldload nvidia
kldload: can't load nvidia: module already loaded or in kernel
只好重启机器了。
等以后学会了动态调整再来记录下。
hu May 2 19:52:25 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 Tesla P4 Off | 00000000:13:00.0 Off | 0 |
| N/A 48C P0 22W / 75W | 0MiB / 7680MiB | 2% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
这篇关于FreeBSD重新加载库(在占用只好重启)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!