Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    增加swap内存

    C斯达克
    2
    2
    442
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 李东岳
      李东岳 管理员 last edited by

      sudo swapoff -a
      sudo fallocate -l 15G /swapfile
      sudo mkswap /swapfile
      sudo swapon /swapfile
      swapon -a
      
      

      线上CFD课程 7月1日报名截止 http://dyfluid.com/class.html
      CFD高性能服务器 http://dyfluid.com/servers.html

      1 Reply Last reply Reply Quote
      • bestucan
        bestucan 版主 副教授 last edited by

        虽然我知道我弄不成(硬盘没有没分区的剩余空间了),但我还是想试试,然后根目录炸了:jingya:
        我说我的根目录怎么一点空间都不剩了,还报警。生成了一个 swapfile 占满了。操作有风险,尝试需谨慎。

        这是占根目录的空间当作swap用,绕过了重新分区,挺好,就是空间没的有点……突然 _(┐「ε:)_

        滚来滚去……~(~o ̄▽ ̄)~o 滚来滚去都不能让大家看出来我不是老师么 O_o

        异步沟通方式(《posting style》from wiki)(下载后打开):
        https://www.jianguoyun.com/p/Dc52X2sQsLv2BRiqnKYD
        提问的智慧(github在gitee的镜像):
        https://gitee.com/bestucan/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md

        1 Reply Last reply Reply Quote
        • First post
          Last post

        CFD中文网 | 东岳流体 | 京ICP备15017992号-2
        论坛登录问题反馈可联系 li.dy@dyfluid.com