zoukankan      html  css  js  c++  java
  • 在busybox里使用ulimit命令

    刚才想使用ulimit修改用户进程的用户栈的大小,发现busybox里没有这个命令,上google搜索得到如下解释:

    "ulimit" is a shell builtin, meaning it's a reserved word interpreted by the shell, not a busybox applet. 
    It will not appear
    in the list of busybox applets, but as long as you have sh, your shell scripts will
    understand ulimit commands

    发现ulimit是shell的内置命令,需要使用下面的方式使用:

    busybox sh -c 'ulimit -a'

    然后发现,执行完这条命令后,ulimit就可以直接使用了:

    [root@vexpress ]# ulimit -a
    -f: file size (blocks)             unlimited
    -t: cpu time (seconds)             unlimited
    -d: data seg size (kb)             unlimited
    -s: stack size (kb)                8192
    -c: core file size (blocks)        0
    -m: resident set size (kb)         unlimited
    -l: locked memory (kb)             64
    -p: processes                      8040
    -n: file descriptors               1024
    -v: address space (kb)             unlimited
    -w: locks                          unlimited
    -e: scheduling priority            0
    -r: real-time priority             0

    ==

  • 相关阅读:
    02动手动脑
    动手动脑01
    千锤百炼软工6,7,8
    千锤百炼软工10.5
    千锤百炼软工10.4
    千锤百炼软工10.3
    千锤百炼软工10.2
    千锤百炼软工10.1
    千锤百炼软工9.30
    破解 webstorm
  • 原文地址:https://www.cnblogs.com/pengdonglin137/p/8144955.html
Copyright © 2011-2022 走看看