[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT2 Outputs "virtual memory exhausted"



On Thu, Nov 02, 2000 at 04:21:45PM -0800, Seth Arnold wrote:
> [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>

Not true.

there are default limits, which a user can change, and hard limits,
which a user cannot change.  If you increase the default limits
with ulimit to the hard limits, then that's almost always enough
to actually compile stuff like qt and... uh.. I forget the other
one.

Again, read the ulimit man page, and search for 'ulimit', and
actually read what it says.  This is all explained.

-- 
David Terrell           | "Anyone want to start a fund for students
Nebcorp Prime Minister  | that vow not to work at MS?"
dbt@meat.net            |  - Libor Michalek
http://wwn.nebcorp.com/