*BSD News Article 19175


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!uunet!pipex!uknet!nessie!demon!azrael.demon.co.uk!azrael.demon.co.uk!not-for-mail
From: blade@azrael.demon.co.uk (Ji Kim)
Newsgroups: comp.os.386bsd.questions,demon.ip.support.unix
Subject: Re: tin says out of memory
Date: 4 Aug 1993 23:15:45 -0000
Organization: 386BSD Hackers UnLimited.
Lines: 40
Message-ID: <23pfv1$gc@azrael.demon.co.uk>
References: <CAMv3L.4LA@kram.org> <CAnCpz.E30@demon.co.uk> <CB8wzB.EFI@demon.co.uk>

In article <CB8wzB.EFI@demon.co.uk> mark@demon.co.uk (Superuser) writes:
>In article <CAnCpz.E30@demon.co.uk> giles@demon (Giles Todd) writes:
>>
>>A 386BSD ignorant punter says "ulimit"?  Or "getrlimit/setrlimit" even.
>>Please flame if you have already thought of this.
>
>A 386BSD "only ever-so-very-slightly" literate punter did think
>of this, but couldn't find out where it was defined. :(

I don't have the original article but you can get more mileage from
your memory if you use

limit datasize unlimited    (this works only in csh)

or alternatively use a C proggie to set the limit using setrlimit,eg.

#include <sys/time.h>
#include <sys/resource.h>

main()
{

	struct rlimit tmp;

	tmp.rlim_cur=RLIM_INFINITY;
	tmp_rlim_max=RLIM_INFINITY;

	setrlimit(RLIMIT_DATA,&tmp);

}


Hope this helps,

Ji.
-- 
E-mail: blade@azrael.demon.co.uk (home)      |  azrael.demon.co.uk:
        blade@dcs.qmw.ac.uk      (college)   |  486DX-33 running 386BSD.
                                             |  X,News,Email all running
                                             |  smoothly. Info. on request.