Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: pkgsrc patches for zsh [was Re: tgoto issue in zsh-5.0.0]



On Thu, Aug 16, 2012 at 08:18:48PM +0100, Peter Stephenson wrote:
> I've backported it to configure.ac, so should all present and correct.

Thank you very much.

One more issue: Recently NetBSD added support for per-user thread (not
process) limits. zsh doesn't seem to support this.

# sh
# ulimit -a
time          (-t seconds    ) unlimited
file          (-f blocks     ) unlimited
data          (-d kbytes     ) 262144
stack         (-s kbytes     ) 4096
coredump      (-c blocks     ) unlimited
memory        (-m kbytes     ) 12186708
locked memory (-l kbytes     ) 4062236
thread        (-r threads    ) 160
process       (-p processes  ) 160
nofiles       (-n descriptors) 128
vmemory       (-v kbytes     ) unlimited
sbsize        (-b bytes      ) unlimited

# zsh
# ulimit -a
-t: cpu time (seconds)         unlimited
-f: file size (blocks)         unlimited
-d: data seg size (kbytes)     262144
-s: stack size (kbytes)        4096
-c: core file size (blocks)    unlimited
-m: resident set size (kbytes) 12186708
-l: locked-in-memory size (kb) 4062236
-u: processes                  160
-n: file descriptors           128
-N  9: socket buffer size (kb) unlimited
-v: virtual memory size (kb)   unlimited
-N 11:                         160

getrlimit(2) describes it as:
     RLIMIT_NTHR     The maximum number of simultaneous threads (Lightweight
                     Processes) for this user id.  Kernel threads and the
                     first thread of each process are not counted against this
                     limit.

See http://netbsd.gw.com/cgi-bin/man-cgi?getrlimit++NetBSD-current for
the complete man page.

Please let me know if you need more information about this.

Thanks,
 Thomas



Messages sorted by: Reverse Date, Date, Thread, Author