今天试了一下debian系统,用的是debian9.9,然后配置好了以太网,正准备下载工具的时候,出现了问题。
在执行
apt-get install vim时,出现
[ 2690.831927] Tasks state (memory values in pages):
[ 2690.836623] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 2690.845247] [ 105] 0 105 3703 231 14336 0 0 systemd-journal
[ 2690.854296] [ 107] 0 107 2991 85 12288 0 -1000 systemd-udevd
[ 2690.863173] [ 145] 100 145 3967 103 16384 0 0 systemd-timesyn
[ 2690.872219] [ 171] 0 171 744 49 10240 0 0 cron
[ 2690.880314] [ 173] 0 173 5637 175 16384 0 0 rsyslogd
[ 2690.888743] [ 192] 0 192 512 26 8192 0 0 agetty
[ 2690.897010] [ 196] 0 196 512 26 10240 0 0 agetty
[ 2690.905278] [ 197] 0 197 512 26 8192 0 0 agetty
[ 2690.913545] [ 202] 0 202 512 26 8192 0 0 agetty
[ 2690.921811] [ 203] 0 203 512 26 6144 0 0 agetty
[ 2690.930080] [ 204] 0 204 512 26 10240 0 0 agetty
[ 2690.938334] [ 205] 0 205 1144 101 10240 0 0 login
[ 2690.946515] [ 227] 0 227 713 92 10240 0 0 bash
[ 2690.954610] [ 540] 0 540 8428 7038 43008 0 0 apt-get
[ 2690.962964] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=apt-get,pid=540,uid=0
[ 2690.971252] Out of memory: Killed process 540 (apt-get) total-vm:33712kB, anon-rss:28152kB, file-rss:0kB, shmem-rss:0kB
[ 2691.003279] oom_reaper: reaped process 540 (apt-get), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Killed
应该是内存不足,有知道怎么去解决的吗?
离线
打开swap就行了,缺点就是慢,这么小的内存不适合debian
好的,多谢。
离线