Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: maxfilelocks in ulimit output
- X-seq: zsh-workers 18208
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: maxfilelocks in ulimit output
- Date: Sat, 8 Feb 2003 20:41:02 -0500
- Cc: 180306-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20030209010655.GA10509@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20030209010655.GA10509@xxxxxxxx>
% ulimit
cpu time (seconds) unlimited
file size (blocks) unlimited
data seg size (kbytes) unlimited
stack size (kbytes) 8192
core file size (blocks) 0
unlimited
processes 1023
file descriptors 1024
locked-in-memory size (kb) unlimited
memory size (kb) unlimited
unlimited
This is in glibc 2.3/linux, which
#define RLIMIT_RSS 5 /* max resident set size */
#define RLIMIT_AS 9 /* address space limit */
RLIMIT_VMEM is undefined, so Src/system.h defines it as RLIMIT_AS.
Thus,
# if defined(RLIMIT_RSS) && (!defined(RLIMIT_VMEM) || RLIMIT_VMEM != RLIMIT_RSS)
should be true,
and
# if defined(RLIMIT_RSS) && RLIMIT_VMEM == RLIMIT_RSS
should be false, thereby printing "resident set size (kbytes) " and
"virtual memory size (kb) " respectively.
Yet the opposite seems to be occurring. What am I missing?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author