[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QT2 Outputs "virtual memory exhausted"
[As an aside Joe/John, this is much better. Thank you. :]
* John Smith <pagemaster41@hotmail.com> [001102 15:58]:
> How would I use limit to set everything to unlimited?
This is going to be a bit difficult. Only root can raise the limits
imposed by ulimit; when a user lowers their limits, the user cannot even
raise them to pre-limiting levels. So, when changing the limits on your
own user account it is very easy to go down, and difficult to go up.
I don't know of any easy way to do this for user accounts in OpenBSD
2.7. In the 2.8 snapshots there is a file, /etc/login.conf I believe,
that will give you the ability to set limits per-user, including raising
your own limits.
In 2.7, there are two methods I can think of: login as root, use ulimit
to increase the limits, then spawn a shell of your user with sudo or su,
and then start playing with the qt2 stuff. Or, you could try writing a
setuid root program that would increase the ulimits.
Both options are lousy, and I wouldn't recommend either. :)
A last ditch option, also lousy, is to run the qt2 stuff as root.
<shudder>
--
``Oh Lord; Ooh you are so big; So absolutely huge; Gosh we're all really
impressed down here, I can tell you.''