Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 1995 12:48:19 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        CVS-commiters@freefall.freebsd.org, bde@zeta.org.au, cvs-bin@freefall.freebsd.org, joerg@freefall.freebsd.org
Subject:   Re: cvs commit: src/bin/sh builtins miscbltin.c sh.1
Message-ID:  <199510200248.MAA11414@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
I wrote:
>>  Modified:    bin/sh    builtins miscbltin.c sh.1
>>  Log:
>>  Implement the "ulimit" builtin.  This is the analogon to csh's "limit"
>>  ...

>$bash help ulimit
>	...
>	-m	the maximum resident set size		# units of KB
>	...
>	-p	the pipe buffer size			# units of 512 bytes :-(
>	...
>	-u	the maximum number of user processes

Otherwise the new ulimit options (except for the file size units) are the
same as for bash.

Bash has better formatting and descriptions:

$bash ulimit -a
core file size (blocks)  unlimited
data seg size (kbytes)   65536
file size (blocks)       unlimited
max memory size (kbytes) 14116
stack size (kbytes)      8192
cpu time (seconds)       unlimited
max user processes       40
pipe size (512 bytes)    1
open files               64
virtual memory (kbytes)  73728

$sh ulimit -a
coredump(512-blocks)    unlimited
time(seconds)           unlimited
datasize(kilobytes)     65536
filesize(512-blocks)    unlimited
lockedmem(kilobytes)    4706
nofiles(descriptors)    64
processes(max)          40
memoryuse(kilobytes)    14116
stacksize(kilobytes)    8192

%csh limit
cputime 	unlimited
filesize 	unlimited
datasize 	65536 kbytes
stacksize 	8192 kbytes
coredumpsize 	unlimited
memoryuse 	14116 kbytes
memorylocked 	4706 kbytes
maxproc 	40 
openfiles 	64 

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510200248.MAA11414>