首页 > 其他 > 详细

lamobo跑ltp出現了lowmemory錯誤

时间:2014-02-23 03:22:03      阅读:519      评论:0      收藏:0      [点我收藏+]


昨天让Lamobo上的linaro跑ltp(linux test project)测试,今早一看,终端显示error:

init: lightdm main process (391) terminated with status 1

結果看了下linaro的系統日誌/var/log/syslog,發現是lowmemory的問題:

     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

看来是跑ltp时发生了lowmemory错误,导致lightdm崩溃,所以想通过增加交换分区來解決,运行·swapon -s·一看,原來linaro默认情況下是沒有交换的。运行gparted工具,將原來分配的到/media下的5G多空间一分为二,一块继续用於/media,一块作為交换分区,如下:

bubuko.com,布布扣

另外还需要修改/etc/fstab文件,添加內容如下:

bubuko.com,布布扣

重启linaro,运行·swapon -s·,可见交换分区已经出现。经试验,分配1G多交换分区任然会出现lowmemory killing lightdm的情況,重新分了2G多空间后可以正常运行完ltp

lamobo跑ltp出現了lowmemory錯誤

原文:http://blog.csdn.net/sakaue/article/details/19674259

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!