页次: 1
2024-8-29当天安装的steam,vulkan与cs2
也就是在当天发生的问题
vulkan模式下的cs2,在死机前一般还会发生游戏内无声,游戏延迟突然升高的情况
在死机后会无法使用super,无法移动鼠标,无法切换tty的情况
有时则是CS2游戏闪退,同时连带steam崩溃
kde的报错程序在这些过程中均不显示任何报错
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
我的系统信息:
-` lspl5@lenovoxiaoxinair14
. ------------------------
OS: Arch Linux x86_64
Host: 82LM Lenovo XiaoXinAir 14ALC 2021
Kernel: 6.10.6-arch1-1
Uptime: 34 mins
Packages: 949 (pacman)
Shell: bash 5.2.32
Resolution: 1920x1080
DE: Plasma 6.1.4
WM: kwin
Theme: Breeze [GTK2/3]
Icons: breeze [GTK2/3]
Terminal: konsole
CPU: AMD Ryzen 5 5500U with Radeon Graphics (12) @ 4.056GHz
GPU: AMD ATI 04:00.0 Lucienne
Memory: 3191MiB / 7270MiB
------------------------------------------------------------------------------------------------------------------------------------------------------------------
之后找到了下面的指令查看了相关的日志
journalctl:
8月 29 08:57:00 lenovoxiaoxinair14 kernel: Linux version 6.10.6-arch1-1 (linux@archlinux) (gcc (GCC) 14.2.1 20240805, GNU ld>
8月 29 08:57:00 lenovoxiaoxinair14 kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=73f865d3-7d28-403d-b065-0b82e72>
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-provided physical RAM map:
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009efff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x000000000009f000-0x00000000000bffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000099fffff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000009a00000-0x0000000009dfffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000009e00000-0x0000000009efffff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000009f00000-0x0000000009f0efff] ACPI NVS
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000009f0f000-0x00000000b9968fff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000b9969000-0x00000000bab68fff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000bab69000-0x00000000c8d7efff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000c8d7f000-0x00000000cbd7efff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000cbd7f000-0x00000000cdf7efff] ACPI NVS
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000cdf7f000-0x00000000cdffefff] ACPI data
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000cdfff000-0x00000000cdffffff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000ce000000-0x00000000cfffffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fde00000-0x00000000fdefffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fe000000-0x00000000fe0fffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec01fff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fec20000-0x00000000fec20fff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fed80000-0x00000000fed81fff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x0000000100000000-0x000000020e2fffff] usable
8月 29 08:57:00 lenovoxiaoxinair14 kernel: BIOS-e820: [mem 0x000000020e300000-0x000000022fffffff] reserved
8月 29 08:57:00 lenovoxiaoxinair14 kernel: NX (Execute Disable) protection: active
8月 29 08:57:00 lenovoxiaoxinair14 kernel: APIC: Static calls initialized
dmesg:
[ 6.473498] systemd[1]: Starting Load/Save OS Random Seed...
[ 6.473513] systemd[1]: TPM SRK Setup was skipped because of an unmet condition check (ConditionSecurity=measured-uki).
[ 6.484808] systemd[1]: Started Journal Service.
[ 6.501337] systemd-journald[379]: Received client request to flush runtime journal.
[ 6.656763] mousedev: PS/2 mouse device common for all mice
[ 6.685523] piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
[ 6.685531] piix4_smbus 0000:00:14.0: Using register 0x02 for SMBus port selection
[ 6.690970] piix4_smbus 0000:00:14.0: Auxiliary SMBus Host Controller at 0xb20
[ 6.693578] ccp 0000:04:00.2: enabling device (0000 -> 0002)
[ 6.697022] ccp 0000:04:00.2: ccp: unable to access the device: you might be running a broken BIOS.
[ 6.698981] ccp 0000:04:00.2: tee enabled
[ 6.699051] ccp 0000:04:00.2: psp enabled
[ 6.721163] Adding 4194300k swap on /dev/nvme0n1p2. Priority:-2 extents:1 across:4194300k SS
[ 6.735048] input: MSFT0002:00 04F3:317F Mouse as /devices/platform/AMDI0010:00/i2c-0/i2c-MSFT0002:00/0018:04F3:317F.0003/input/input9
[ 6.735186] input: MSFT0002:00 04F3:317F Touchpad as /devices/platform/AMDI0010:00/i2c-0/i2c-MSFT0002:00/0018:04F3:317F.0003/input/input11
[ 6.735325] hid-generic 0018:04F3:317F.0003: input,hidraw2: I2C HID v1.00 Mouse [MSFT0002:00 04F3:317F] on i2c-MSFT0002:00
[ 6.742695] input: PC Speaker as /devices/platform/pcspkr/input/input12
[ 6.750464] RAPL PMU: API unit is 2^-32 Joules, 1 fixed counters, 163840 ms ovfl timer
[ 6.750467] RAPL PMU: hw unit of domain package 2^-16 Joules
[ 6.769456] mc: Linux media interface: v0.10
[ 6.770938] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 6.771137] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 6.771316] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 6.772920] cryptd: max_cpu_qlen set to 1000
[ 6.777329] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 6.777335] cfg80211: failed to load regulatory.db
[ 6.797666] Bluetooth: Core ver 2.22
[ 6.797741] NET: Registered PF_BLUETOOTH protocol family
[ 6.797743] Bluetooth: HCI device and connection manager initialized
[ 6.797747] Bluetooth: HCI socket layer initialized
[ 6.797749] Bluetooth: L2CAP socket layer initialized
[ 6.797753] Bluetooth: SCO socket layer initialized
胜利不是一个人的!
离线
在更换了内核之后,我发现依旧没有效果
于是我又重新尝试了包括top在内的命令来查找CS2线程的问题
最后在CS2崩溃后马上用dmesg命令才找到了问题所在:
----
$ sudo dmesg
>[ 2487.211778] Out of memory: Killed process 29510 (cs2) total-vm:12843352kB, anon-rss:2054580kB, file-rss:13736kB, shmem-rss:4248kB, UID:1000 pgtables:14688kB oom_score_adj:200
----
也就是说物理内存(RES)与虚拟内存(VIRT)的不足导致CS2崩溃
如果要解决可能只能加装物理内存或扩大虚拟内存,甚至可能是在bios里调核显共用显存的大小(我的只有512mb共用)
(详情见:https://bbs.archlinuxcn.org/viewtopic.php?id=13469)
胜利不是一个人的!
离线
话说你的配置玩CS2帧率如何呢?我的5600U最低画质,768P,打死亡竞赛大概在50~60FPS之前
离线
页次: 1