tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Chris Ruhnke <ruhnke () us ! ibm ! com>
To: tru64-unix-managers
Subject: ulimit -d can't increase after being set
Date: Thu, 30 Nov 2000 20:24:10 +0000	[thread overview]
Message-ID: <97561579830761.tru64-unix-managers.marc@archive.invalid> (raw)

Tru64 V4.0G unpatched

Is this a "feature", a bug or the way it is supposed to work?

My system parameter per-proc-data-size is 268435456 (256MB).
I have not set max-per-proc-data-size so it takes the
default of 1GB.

When a user logs in and examines his environment he sees:

    $ ulimit -d
    data(kbytes)     262144

as expected defaulting to 256MB.

If he then requests a bump to 500MB all is well:

    $ ulimit -d 500000
    $ ulimit -d
    data(kbytes)     500000

BUT!!!  If he now wants to increase again, he cannot:

    $ ulimit -d 600000
    ksh: ulimit: exceeds allowable limit
    $ ulimit -d
    data(kbytes)     500000

REMEMBER: the system paramter max-per-process-data-size
is set for 1073741824 or 1GB.

(For those gurus who recognize that ulimit is a shell
function in ksh, the same failure occurs if /usr/bin/ulimit
is invoked.)

AND!!!  If he logins in again and tries, it succeeds:

    $ ulimit -d 600000
    $ ulimit -d
    data(kbytes)     600000

It appears that once the data limit has been changed via
ulimit, that value becomes the "max-per-proc-data-size" for that
process regardless of the setting of the system parameter.


Am I missing something here???



--CHRis

Chris H. Ruhnke
Mid-Range Technical Services
IBM Global Services
St. Louis, MO

Office:   (314) 233-7314
Pager:    (800) 759-8888 PIN 8714690


O'Toole's Law:  Murphy is an optimist.

                 reply	other threads:[~2000-11-30 20:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox