Short version: I can't tell where ulimit of "data seg size" and "virtual
memory" for a console login is getting set: I don't see the in any
startup file or login.conf, and the values I do see for an ssh connection
while under X are larger than what is in login.conf, so I'm confused.

Details: Usernames on my system who aren't in the "staff" login class
can't run "java -version" from a console login (ie not in X), and
after some digging I realized it's probably because they have these
ulimit values:

data seg size (kbytes, -d) 131072
virtual memory (kbytes, -v) 133120

But those values are not found in /etc/profile, nor in those users' ~/.profile
nor ~/.bashrc, nor does /etc/login.conf mention those ulimit values. Here's
the default section; the rest of it is as found in a stock openbsd 5.7 install:
  default:\
:path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/l ocal/sbin:\
          :umask=022:\
          #(next2 lines changed for chrome, IIRC):
          #:datasize-max=512M:\
          #:datasize-cur=512M:\
          :datasize-max=2048M:\
          :datasize-cur=2048M:\
          :maxproc-max=256:\
          :maxproc-cur=128:\
          :openfiles-cur=512:\
          :stacksize-cur=4M:\
          :localcipher=blowfish,8:\
          :ypcipher=old:\
          :tc=auth-defaults:\
          :tc=auth-ftp-defaults:

There doesn't seem to be a problem, as those users show much larger
values, if I first login to the console as root, then 'su - <user>' to the users
with the problem. It also has much larger values when I ssh from one
user to another in an xterm window and test there.  These values are
larger than anything I see in login.conf, even for the 'staff' class: like,
33562624k ie 33G: I don't know where that is coming from either
as I didn't see it as defaults showing in 'man login.conf'.  Oh wait, that
is roughly my ram+swap size, so maybe it uses that as a default instead
of what's in login.conf, in some situations?

Where else could these ulimit values for datasize and virtual memory
of ~133120k be coming from, and how would I change them, for
a user who is only logged in to a console (not X)?  Or, is there a problem
with my use of login.conf, since at one point it seemed to matter for
opening many browser tabs in chrome, but now the value for that
user in X is so far beyond what is set there. As you see I'm confused, and
have probably done something somewhere that I've forgotten or has
escaped me.

Thanks again,

-Luke A Call
(ps: I'm not trying to be stuffy with the initial, just found it's more
unique; there's at least one other luke call, probably more)

Reply via email to