tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* ulimit -d can't increase after being set
@ 2000-11-30 20:24 Chris Ruhnke
  0 siblings, 0 replies; only message in thread
From: Chris Ruhnke @ 2000-11-30 20:24 UTC (permalink / raw)
  To: tru64-unix-managers

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-30 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-30 20:24 ulimit -d can't increase after being set Chris Ruhnke

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