Just look at /etc/login.conf (look for e.g. datasize-{max,cur})? What do
you want to do?
Joachim
I have
default:\
:path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin
/usr/local/bin:\
:umask=022:\
:datasize-max=3072M:\
:datasize-cur=1536M:\
:maxproc-max=256:\
:maxproc-cur=128:\
:openfiles-cur=128:\
:stacksize-cur=4M:\
:localcipher=blowfish,12:\
:ypcipher=old:\
:tc=auth-defaults:\
:tc=auth-ftp-defaults:
staff:\
:datasize-cur=4096M:\
:datasize-max=infinity:\
:maxproc-max=512:\
:maxproc-cur=128:\
:ignorenologin:\
:requirehome@:\
:tc=default:
which seems to work for me, although I run Firefox. (Note that you need
to raise both the hard and soft limit, i.e. datasize-max and
datasize-cur.)
This is on a fairly modern, but cheap laptop with 2GB RAM. The above
settings are completely inappropriate for a multi-user system, since one
user can force the machine into swap.
Joachim
> > Just look at /etc/login.conf (look for e.g. datasize-{max,cur})?
>
> Oh, it _is_ datasize! By why didn't altering that change my ulimits
> on next log in?
Do you have a stale /etc/login.conf.db lying around?
--
Christian "naddy" Weisgerber na...@mips.inka.de
> >> > Just look at /etc/login.conf (look for e.g. datasize-{max,cur})?
> >>
> >> Oh, it _is_ datasize! By why didn't altering that change my ulimits
> >> on next log in?
>
> I take it that the settings should be taking upon log in?
Yes, they should.
I seem to remember somewhere up-thread that you said that you
were wanting to *increase* the databytes limit. That can only be done
by root -- all others are stuck with no higher than what they started
with.
Is it possible that /etc/login.conf is read by the system at
boot, perhaps by init or some similar process which is spawning the
shells? If so, then the ulimit values will be beyond your control as a
normal user.
Or perhaps a limit has been set in the kernel which will have to
be relaxed before you can change it.
Good Luck,
DoN.
--
Remove oil spill source from e-mail
Email: <BPdnic...@d-and-d.com> | Voice (all times): (703) 938-4564
(too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---
default:\
:path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin
/usr/local/bin /usr/local/sbin:\
:umask=022:\
:datasize-max=2048M:\
:datasize-cur=1024M:\
:maxproc-max=256:\
:maxproc-cur=128:\
:openfiles-cur=128:\
:stacksize-cur=4M:\
:localcipher=blowfish,6:\
:ypcipher=old:\
:tc=auth-defaults:\
:tc=auth-ftp-defaults:
However, ulimit -d still shows 512 MB whether I log out and log back
in, or reboot my system and log back in. I suspect that I'm missing
a minor, but important detail.
> This is on a fairly modern, but cheap laptop with 2GB RAM. The above
> settings are completely inappropriate for a multi-user system, since one
> user can force the machine into swap.
>
My machine is essentially single-user though I try to run it more
like a multi-user system (ie. no single large partition for
everything not swap, least privileges, etc...). I'm also lucky
enough to have 8 GB RAM on this machine. That said, if I can get
this to work, and I find I don't need 1024 MB+ I'll be throttling it
back.
> Is it possible that /etc/login.conf is read by the system at
> boot, perhaps by init or some similar process which is spawning the
> shells? If so, then the ulimit values will be beyond your control as a
> normal user.
Well, I can definately alter /etc/login.conf so I'd think the
settings should take. I'm beginning to think that I've missed
something as I've had to reboot a couple of times for various
reasons and my ulimit -d hasn't changed.
>
> Or perhaps a limit has been set in the kernel which will have to
> be relaxed before you can change it.
I don't think so. As I said, I'm aware that I've missed something
and though don't know what it is, it doesn't seem to be something
hard-coded.
I may yet be wrong on this....
>
> Good Luck,
>
Thanks.
>>However, ulimit -d still shows 512 MB whether I log out and log back
>>in, or reboot my system and log back in. I suspect that I'm missing
>>a minor, but important detail.
>
> Could be.
>
> Here it is:
>
> Leave default as it is, add
>
> moreres:\
> :datasize-max=infinity:\
> :datasize-cur=1024M:\
> :maxproc-max=512:\
> :maxproc-cur=384:\
> :openfiles-max=2048:\
> :openfiles-cur=1024:\
> :tc=default:
>
> and change my normal user's login class to moreres.
> Mind the backslashes at the end of each line except for the last
> one.
>
Okay, I'll get right on it. Thanks.
Thanks Hannah, that did it. It should have been obvious I guess. I
feel kind of silly not figuring it out on my own. :-)