gpt4 book ai didi

linux - 即使有足够的可用内存也会调用 oom

转载 作者:太空宇宙 更新时间:2023-11-04 05:10:13 25 4
gpt4 key购买 nike

我使用 Android P-OS。内核版本为msm-4.14

自启动以来,oom 被调用并终止进程。不过内存还是很丰富的。我的内存大小是8GByte,Swap是1GByte。我什至没有使用交换。

[   59.901334] Killing 'ndroid.keychain' (2011), adj 906,\x0a   to free 87268kB on behalf of 'Binder:883_2' (938)\x0a   Free CMA is 246200kB\x0a   Total reserve is 242332kB\x0a   Total free pages is 5100764kB\x0a   Total file cache is 978224kB
[ 59.903948] Killing 'Jit thread pool' (2016), adj 906,\x0a to free 88676kB on behalf of 'ActivityManager' (960)\x0a Free CMA is 246200kB\x0a Total reserve is 242332kB\x0a Total free pages is 5100764kB\x0a Total file cache is 978224kB
[ 60.007328] oom_reaper: reaped process 2011 (ndroid.keychain), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

免费$

        total        used        free      shared     buffers
Mem: 7842377728 3144630272 4697747456 2084864 14852096
-/+ buffers/cache: 3129778176 4712599552
Swap: 1073737728 0 1073737728

$内存信息

MemTotal:        7658572 kB
MemFree: 4589120 kB
MemAvailable: 5800580 kB
Buffers: 14416 kB
Cached: 1415944 kB
SwapCached: 0 kB
Active: 630232 kB
Inactive: 1299508 kB
Active(anon): 501820 kB
Inactive(anon): 1876 kB
Active(file): 128412 kB
Inactive(file): 1297632 kB
Unevictable: 2888 kB
Mlocked: 2888 kB
SwapTotal: 1048572 kB
SwapFree: 1048572 kB
Dirty: 92 kB
Writeback: 0 kB
AnonPages: 502148 kB
Mapped: 745728 kB
Shmem: 2036 kB
Slab: 520776 kB
SReclaimable: 130688 kB
SUnreclaim: 390088 kB
KernelStack: 28336 kB
PageTables: 40972 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4877856 kB
Committed_AS: 95986336 kB
VmallocTotal: 263061440 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
CmaTotal: 303104 kB
CmaFree: 246200 kB

我不明白这种情况。为什么会发生这种情况?有办法避免吗?

最佳答案

回答我自己

它没有内存不足。只是 oom_reaper 通过 sigkill 信号工作。内存够用

谢谢

关于linux - 即使有足够的可用内存也会调用 oom,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56321026/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com