昨天让Lamobo上的linaro跑ltp(linux test project)测试,今早一看,终端显示error:
init: lightdm main process (391) terminated with status 1
lowmemorykiller: Killing 'ksm03' (6075), adj, Dec :16:41 linaro-alip kernel: [19605.683936] to freekB on behalf of 'ksm03' (6074) because Dec :16:41 linaro-alip kernel: [19605.683941] cachekB is below limitkB for oom_score_adj Dec :16:41 linaro-alip kernel: [19605.683947] Free memory is -11664kB above reserved Dec :17:01 linaro-alip CRON[6078]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Dec :19:24 linaro-alip kernel: [19767.860065] lowmemorykiller: Killing 'min_free_kbytes' (12251), adj, Dec :19:24 linaro-alip kernel: [19767.860072] to freekB on behalf of 'min_free_kbytes' (12251) because Dec :19:24 linaro-alip kernel: [19767.860078] cachekB is below limitkB for oom_score_adj Dec :19:24 linaro-alip kernel: [19767.860084] Free memory is -11388kB above reserved Dec :19:26 linaro-alip kernel: [19769.934487] lowmemorykiller: Killing 'min_free_kbytes' (12252), adj, Dec :19:26 linaro-alip kernel: [19769.934497] to freekB on behalf of 'kswapd0' (25) because Dec :19:26 linaro-alip kernel: [19769.934502] cachekB is below limitkB for oom_score_adj Dec :19:26 linaro-alip kernel: [19769.934508] Free memory is -11668kB above reserved Dec :19:26 linaro-alip kernel: [19769.978935] lowmemorykiller: Killing 'min_free_kbytes' (12252), adj, Dec :19:26 linaro-alip kernel: [19769.978942] to freekB on behalf of 'min_free_kbytes' (12252) because Dec :19:26 linaro-alip kernel: [19769.978948] cachekB is below limitkB for oom_score_adj Dec :19:26 linaro-alip kernel: [19769.978954] Free memory is -22748kB above reserved Dec :19:26 linaro-alip kernel: [19770.022957] lowmemorykiller: Killing 'Xorg' (493), adj, Dec :19:26 linaro-alip kernel: [19770.022975] to freekB on behalf of 'kswapd0' (25) because Dec :19:26 linaro-alip kernel: [19770.022981] cachekB is below limitkB for oom_score_adj Dec :19:26 linaro-alip kernel: [19770.022989] Free memory is -21180kB above reserved Dec :19:28 linaro-alip kernel: [19772.811562] init: lightdm main process (391) terminated with status
另外还需要修改/etc/fstab文件,添加內容如下:
重启linaro,运行·swapon -s·,可见交换分区已经出现。经试验,分配1G多交换分区任然会出现lowmemory killing lightdm的情況,重新分了2G多空间后可以正常运行完ltp