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

Re: PATCH: maxfilelocks in ulimit output



% 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