Fork Bomb and why it doesn't happen on BSDs

David Curry dsccable at comcast.net
Fri Mar 25 14:42:50 UTC 2005


Aleksandar Milivojevic wrote:

>
> For those interested, these are ulimits on stock OpenBSD (user and 
> root, soft and hard).
>
> $ ulimit -Sa
> core file size        (blocks, -c) unlimited
> data seg size         (kbytes, -d) 76800
> file size             (blocks, -f) unlimited
> max locked memory     (kbytes, -l) 28430
> max memory size       (kbytes, -m) 84964
> open files                    (-n) 64
> pipe size          (512 bytes, -p) 1
> stack size            (kbytes, -s) 4096
> cpu time             (seconds, -t) unlimited
> max user processes            (-u) 64
> virtual memory        (kbytes, -v) 80896
>
> $ ulimit -Ha
> core file size        (blocks, -c) unlimited
> data seg size         (kbytes, -d) 131072
> file size             (blocks, -f) unlimited
> max locked memory     (kbytes, -l) 85292
> max memory size       (kbytes, -m) 85292
> open files                    (-n) 1024
> pipe size          (512 bytes, -p) 1
> stack size            (kbytes, -s) 131072
> cpu time             (seconds, -t) unlimited
> max user processes            (-u) 128
> virtual memory        (kbytes, -v) 262144
>
> # ulimit -Sa
> core file size        (blocks, -c) unlimited
> data seg size         (kbytes, -d) 131072
> file size             (blocks, -f) unlimited
> max locked memory     (kbytes, -l) 28430
> max memory size       (kbytes, -m) 84964
> open files                    (-n) 128
> pipe size          (512 bytes, -p) 1
> stack size            (kbytes, -s) 8192
> cpu time             (seconds, -t) unlimited
> max user processes            (-u) 340
> virtual memory        (kbytes, -v) 139264
>
> # ulimit -Ha
> core file size        (blocks, -c) unlimited
> data seg size         (kbytes, -d) 131072
> file size             (blocks, -f) unlimited
> max locked memory     (kbytes, -l) 85292
> max memory size       (kbytes, -m) 85292
> open files                    (-n) 1024
> pipe size          (512 bytes, -p) 1
> stack size            (kbytes, -s) 131072
> cpu time             (seconds, -t) unlimited
> max user processes            (-u) 340
> virtual memory        (kbytes, -v) 262144
>
Thank you, Aleksander.  The info is quite helpful.




More information about the fedora-list mailing list