Hi,

In a recent message
<http://marc.theaimsgroup.com/?l=openbsd-misc&m=112250190321628&w=1>
to the misc@openbsd.org mailing list, you asked about how to allow a
single process (running R) to use large (multi-GB) amounts of memory.
I don't have a definite solution to your problem, but here are a couple
of things you might try:


First off, make sure /etc/login.conf allows "infinite" memory usage
for whatever user is doing the R processing -- I think the defaults
only allow 128 or 256M.  What I do is put myself in the "staff" group,
and give this group "infinite" (i.e. limited only by kernel/hardware)
memory usage limits with the following /etc/login.conf fragment:

#
# Staff have fewer restrictions and can login even when nologins are set.
#
staff:\
        :datasize=infinity:\
        :memoryuse=infinity:\
        :maxproc=256:\
        :filesize=infinity:\
        :stacksize=infinity:\
        :ignorenologin:\
        :localcipher=blowfish,8:\
        :tc=default:


You didn't give your architecture (x86, amd64, sparc, ...), but I've
seen varioues messages on the openbsd lists that (alas) the kernel
currently limits process data size to at most 1GB on some (or maybe all)
platforms.  The messages I've seen about this are
   http://monkey.org/openbsd/archive/misc/0411/msg04266.html
   http://monkey.org/openbsd/archive/misc/0412/msg01039.html
   http://marc.theaimsgroup.com/?l=openbsd-misc&m=111118168813306&w=1
   http://marc.theaimsgroup.com/?l=openbsd-misc&m=111118481604030&w=1
   http://marc.theaimsgroup.com/?l=openbsd-misc&m=111654164126662&w=1
   http://marc.theaimsgroup.com/?l=openbsd-misc&m=111715446228191&w=1
   http://marc.theaimsgroup.com/?l=openbsd-misc&m=111785832810606&w=1

So unless this has been fixed (eg at the recent hackathon), you may
have to abandon OpenBSD to get really large data+bss+heap sizes. :( :(

ciao,

--
-- Jonathan Thornburg <[EMAIL PROTECTED]>
   Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
   Golm, Germany, "Old Europe"     http://www.aei.mpg.de/~jthorn/home.html
   "Washing one's hands of the conflict between the powerful and the
    powerless means to side with the powerful, not to be neutral."
                                      -- quote by Freire / poster by Oxfam

Reply via email to