🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.386bsd.questions
8 messages
8 total messages Started by Mark Turner Fri, 23 Jul 1993 19:50
tin says out of memory
#6
Author: Mark Turner
Date: Fri, 23 Jul 1993 19:50
24 lines
1599 bytes
When I try to start up tin it says "out of memory" and falls over.
I usually use trn but it's ages since I looked at tin so I'd like
to get it working if possible. The problem is probably caused by
my active file which is ~6500 lines long, we have a *full* feed
here!

Is there a parameter somewhere within the kernel that I can tweak
to increase the memory limit? I have looked but can't see anything
obvious.

Maybe I'm barking up the wrong tree, could this possibly be a
problem with tin? I don't think this is the case cos the same
version of tin works on the same size history file on SCO.

Any help/advice appreciated.

Regards,

Mark.
-- 
/\/\ark Turner                       Demon Systems / Demon Internet
Home: mt@kram.org (PGP key available)        42 Hendon Lane, London
Office: mark@demon.net (+44 81 3490063)             N3 1TT, England
*** IP level dialup Internet connectivity for a tenner a month! ***
Re: tin says out of memory
#7
Author: Giles Todd
Date: Sat, 24 Jul 1993 02:10
24 lines
1713 bytes
Mark Turner (mark@kram.org) wrote:

> When I try to start up tin it says "out of memory" and falls over.
> I usually use trn but it's ages since I looked at tin so I'd like
> to get it working if possible. The problem is probably caused by
> my active file which is ~6500 lines long, we have a *full* feed
> here!

> Is there a parameter somewhere within the kernel that I can tweak
> to increase the memory limit? I have looked but can't see anything
> obvious.

> Maybe I'm barking up the wrong tree, could this possibly be a
> problem with tin? I don't think this is the case cos the same
> version of tin works on the same size history file on SCO.

> Any help/advice appreciated.

A 386BSD ignorant punter says "ulimit"?  Or "getrlimit/setrlimit" even.
Please flame if you have already thought of this.

Giles.
--
Giles Todd                              Demon Internet
Re: tin says out of memory
#8
Author: Superuser
Date: Wed, 04 Aug 1993 17:37
16 lines
1303 bytes
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. :(

Regards,

Mark.
-- 
/\/\ark Turner                       Demon Systems / Demon Internet
Home: mt@kram.org (PGP key available)        42 Hendon Lane, London
Office: mark@demon.net (+44 81 3490063)             N3 1TT, England
*** IP level dialup Internet connectivity for a tenner a month! ***
Re: tin says out of memory
#9
Author: Ji Kim
Date: Wed, 04 Aug 1993 23:15
40 lines
1904 bytes
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.
Re: tin says out of memory
#10
Author: Mark Turner
Date: Thu, 05 Aug 1993 19:29
21 lines
1484 bytes
In article <23pfv1$gc@azrael.demon.co.uk> blade@azrael.demon.co.uk (Ji Kim) writes:
> 
> 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)

Thanks, this works fine. :) Is there a similar thingy in bash?

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

This seemed to have no effect. :(

Regards,

Mark.
-- 
/\/\ark Turner                       Demon Systems / Demon Internet
Home: mt@kram.org (PGP key available)        42 Hendon Lane, London
Office: mark@demon.net (+44 81 3490063)             N3 1TT, England
*** IP level dialup Internet connectivity for a tenner a month! ***
Re: tin says out of memory
#11
Author: Garrett Wollman
Date: Thu, 05 Aug 1993 20:39
38 lines
2541 bytes
In article <CBAwso.8Gt@kram.org>, Mark Turner <mark@kram.org> wrote:

>Thanks, this works fine. :) Is there a similar thingy in bash?

Sure.  Here's what TFOH (TF online help) has to say:

wollman@sadye(96)$ help ulimit
ulimit: ulimit [-SHacdmstfpn [limit]]
    Ulimit provides control over the resources available to processes
    started by the shell, on systems that allow such control.  If an
    option is given, it is interpreted as follows:
    
        -S      use the `soft' resource limit
        -H      use the `hard' resource limit
        -a      all current limits are reported
        -c      the maximum size of core files created
        -d      the maximum size of a process's data segment
        -m      the maximum resident set size
        -s      the maximum stack size
        -t      the maximum amount of cpu time in seconds
        -f      the maximum size of files created by the shell
        -p      the pipe buffer size
        -n      the maximum number of open file descriptors
    
    If LIMIT is given, it is the new value of the specified resource.
    Otherwise, the current value of the specified resource is printed.
    If no option is given, then -f is assumed.  Values are in 1k
    increments, except for -t, which is in seconds, and -p, which is in
    increments of 512 bytes.


-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance.
uvm-gen!wollman      | It is a bond more powerful than absence.  We like people
UVM disagrees.       | who like Shashish.  - Claude McKenzie + Florent Vollant
Re: tin says out of memory
#12
Author: Ji Kim
Date: Fri, 06 Aug 1993 05:45
27 lines
1785 bytes
In article <CBAwso.8Gt@kram.org> mark@kram.org (Mark Turner) writes:
>In article <23pfv1$gc@azrael.demon.co.uk> blade@azrael.demon.co.uk (Ji Kim) writes:
>> 
>
>> or alternatively use a C proggie to set the limit using setrlimit,eg.
>
>This seemed to have no effect. :(
>

1. This sets the limit for all child processes, so running this once
   won't do anything. What you could do is to put it at the begginning
   of any memory-intensive programs. Since bash already has `ulimit' 
   you probably won't need this.

2. Note that you have to be root to set the limit to infinity. A better
   method would be to set it to the current hard limit (why is this
   neccessary!!??).

Try `man setrlimit' and `man tcsh' (for limit).


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.
Re: tin says out of memory
#13
Author: Mark Turner
Date: Fri, 06 Aug 1993 07:33
22 lines
1556 bytes
In article <1993Aug5.203950.15884@emba.uvm.edu> wollman@trantor.emba.uvm.edu (Garrett Wollman) writes:
> 
> Sure.  Here's what TFOH (TF online help) has to say:
> 
> wollman@sadye(96)$ help ulimit

:) I didn't even know about the 'help' command! Thanks for the tip.

>     Ulimit provides control over the resources available to processes
>     started by the shell, on systems that allow such control.  If an
>     option is given, it is interpreted as follows:

Just what I need. :)

Thanks again,

Mark.
-- 
/\/\ark Turner                       Demon Systems / Demon Internet
Home: mt@kram.org (PGP key available)        42 Hendon Lane, London
Office: mark@demon.net (+44 81 3490063)             N3 1TT, England
*** IP level dialup Internet connectivity for a tenner a month! ***
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads