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: SUMMARY: ulimit -d can't increase after being set
Date: Thu, 30 Nov 2000 20:51:34 +0000	[thread overview]
Message-ID: <97561744602190.tru64-unix-managers.marc@archive.invalid> (raw)

Give the kewpie doll to Achim Bohnet <ach@mpe.mpg.de>.
In less than 5 minutes he replies:

> It's a feature.  Just ulimit -S -<whatever> <number>   if you want to
> increase the limit again later.


Further reading of the man page reveals that ulimit -H -d <limit>
sets the HARD limit and ulimit -S sets a SOFT limit.  If neither
H nor S are specified the limit applies to BOTH -- meaning that
indeed a HARD limit is set.

Editorial comment:  If I mean to set a HARD limit, I will say so.
If I don't specify, IMHO it should mean a SOFT limit.

--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.

original posting:

> Tru64 V4.0G unpatched
>
> Is this a "feature", a bug or the way it is supposed to work?
Achim
>
> 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???

                 reply	other threads:[~2000-11-30 20:51 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