Blog

Blog

PHODAL

Raspberry PI swap空间增加

问题还是来自于

编译openfst的时候一直报错,

  g++: internal compiler error: Killed (program cc1plus)

后来一查才发现原来是swap space太小的原因

Raspberry PI swapfile

看一下/etc/dphys-swapfile

 cat /etc/dphys-swapfile

默认的大小是100M

CONF_SWAPFILE=100

修改之

 CONF_SWAPSIZE=500

或者更大

重启Raspberry Pi

Raspberry PI查看缓存

  free -m

结果如下

             total       used       free     shared    buffers     cached
Mem:           437        165        271          0         19         80
-/+ buffers/cache:         66        371
Swap:          499          0        499

编译终于通过了。。

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

最近文章

关于作者

Phodal Huang

Engineer, Consultant, Writer, Designer

ThoughtWorks 技术专家

工程师 / 咨询师 / 作家 / 设计学徒

开源深度爱好者

出版有《前端架构:从入门到微前端》、《自己动手设计物联网》、《全栈应用开发:精益实践》

联系我: h@phodal.com

微信公众号: 最新技术分享

标签