我刚买了一款新游戏,但不幸的是,它导致我的电脑在启动时挂起。/var/log/kern.log
强制重启(即按下重置按钮)后检查显示以下几个错误:
[ 609.975750] TaskSchedulerBa: page allocation stalls for 12688ms, order:0, mode:0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null)
[ 609.975752] TaskSchedulerBa cpuset=/ mems_allowed=0
[ 609.975754] CPU: 1 PID: 1905 Comm: TaskSchedulerBa Tainted: G OE 4.13.0-21-generic #24-Ubuntu
[ 609.975755] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z77 Extreme4, BIOS P2.80 01/17/2013
[ 609.975755] Call Trace:
[ 609.975757] dump_stack+0x63/0x8b
[ 609.975759] warn_alloc+0x114/0x1c0
[ 609.975761] __alloc_pages_slowpath+0x850/0xe30
[ 609.975762] ? get_page_from_freelist+0xa3/0xb20
[ 609.975764] ? crypt_extent+0x112/0x1a0
[ 609.975765] __alloc_pages_nodemask+0x25d/0x280
[ 609.975767] alloc_pages_current+0x6a/0xe0
[ 609.975768] __page_cache_alloc+0x86/0x90
[ 609.975769] filemap_fault+0x214/0x5e0
[ 609.975771] ? filemap_map_pages+0x179/0x320
[ 609.975772] __do_fault+0x1e/0xb0
[ 609.975773] __handle_mm_fault+0xba7/0x1020
[ 609.975775] handle_mm_fault+0xb1/0x200
[ 609.975776] __do_page_fault+0x24d/0x4d0
[ 609.975777] do_page_fault+0x22/0x30
[ 609.975778] page_fault+0x28/0x30
[ 609.975779] RIP: 0033:0x7fc84a1ec427
[ 609.975779] RSP: 002b:00007fc83685ea00 EFLAGS: 00010202
[ 609.975780] RAX: 0000000000000000 RBX: 00007fc83685ea10 RCX: 00007fc847507b9a
[ 609.975781] RDX: 00007fc83685ea30 RSI: 0000000000000000 RDI: 00007fc83685ea30
[ 609.975781] RBP: 00007fc83685eae0 R08: 0000000000000000 R09: 0000000000000080
[ 609.975782] R10: 00007fc83685e9c0 R11: 0000000000000206 R12: 00007fc83685ea18
[ 609.975782] R13: 00000a99eba5aa38 R14: 0000000019fa2701 R15: 00007fc84f1e9298
我不太清楚这意味着什么。我将其解读为系统内存不足;但是,看看游戏的最低系统要求(需要 6GB,PC 有 8GB),PC 应该有足够的内存。另一方面,我的显卡(Intel HD 4000)不受官方支持,但这似乎与错误无关。
我真的内存不够了吗?是不是某些硬件可能有缺陷?还是集成显卡有问题?
该系统是相当最新的 Ubuntu Artful:
~ lsb_release -a
LSB Version: core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
游戏开始前的典型记忆情况:
~ free -m
total used free shared buff/cache available
Mem: 7678 1321 3992 343 2364 5758
Swap: 7883 0 7883
编辑:我一直在持续奔跑free -m
直到冻结;这是最后一条记录:
total used free shared buff/cache available
Mem: 7678 3986 129 3348 3562 104
Swap: 7883 42 7840
因此,虽然看起来系统确实内存不足,但仍然有足够的交换空间……