- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2023-2-21 11:20:19
|
显示全部楼层
swapoff -a
# f, G/ z, y2 {9 s9 V
% g' L; X0 h1 dswapoff: /dev/sda3: Cannot allocate memory
$ F* Q# [) P4 m; j% l0 ^* L: X5 h2 R t) h3 I! d( L2 |
swapoff: LABEL=SWAP-sda3: Cannot allocate memory
& @ o6 J& ?( Y" W) U2 @. r) i1 p$ r0 c" q: \* H
free -m
* A9 U- M' ^ l- \
- ~$ a8 U$ J; Q" o- ` total used free shared buffers cached" n: j$ c* f0 s' U# D( {0 `, x1 g
# w2 Y- p" s% \6 `0 x/ u8 F
Mem: 16007 5641 10366 0 20 1226: i# I0 ?1 h4 R; `- G
7 Q( M9 _9 {/ ~; x9 P2 R6 j% ^-/+ buffers/cache: 4393 11613
! n8 h# F5 K5 C
% [4 W) X8 W4 ySwap: 15999 8845 7154. k5 v1 {, P3 z! U7 C7 x
: Y) A5 m! q- V8 F
: n0 o: K4 B, ~/ V- n c& B
2 s! S6 p: s4 D( e修改/etc/sysctl.conf后面添加vm.overcommit_memory=0
5 l( M/ A" C' P, `3 S7 Y: ~6 d' J) A$ x3 i+ O ] F8 ~- h9 ?
然后执行 sysctl -p就行了。 F. ^1 k; f6 l1 b; E: ]! C# s
|
|