From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Cc: 180306-forwarded@bugs.debian.org
Subject: Re: PATCH: maxfilelocks in ulimit output
Date: Sat, 8 Feb 2003 20:41:02 -0500 [thread overview]
Message-ID: <20030209014102.GA15743@scowler.net> (raw)
In-Reply-To: <20030209010655.GA10509@dman.com>
% 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?
next prev parent reply other threads:[~2003-02-09 1:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-09 1:06 Clint Adams
2003-02-09 1:41 ` Clint Adams [this message]
2003-02-09 2:25 ` Bart Schaefer
2003-02-09 17:29 ` Clint Adams
2003-02-09 22:45 ` Clint Adams
2003-02-10 9:08 ` Borzenkov Andrey
2003-02-10 9:31 ` Zefram
2003-02-10 10:47 ` Peter Stephenson
2003-02-12 4:03 ` Clint Adams
2003-02-12 11:09 ` Peter Stephenson
2003-02-16 4:52 ` Clint Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030209014102.GA15743@scowler.net \
--to=clint@zsh.org \
--cc=180306-forwarded@bugs.debian.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).