*BSD News Article 19321


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!sol.deakin.OZ.AU!news.cs.uow.edu.au!picasso.cssc-syd.tansu.com.au!orca1.vic.design.telecom.com.au!netbsd08.telecom.com.au!not-for-mail
From: tdwyer@netbsd08.telecom.com.au (Terry Dwyer 491 5161)
Newsgroups: comp.os.386bsd.questions
Subject: Re: tin says out of memory
Followup-To: comp.os.386bsd.questions
Date: 10 Aug 1993 12:13:57 +0800
Organization: Telecom Australia
Lines: 60
Message-ID: <2477aj$p0n@netbsd08.telecom.com.au>
References: <CAMv3L.4LA@kram.org> <CAnCpz.E30@demon.co.uk> <CB8wzB.EFI@demon.co.uk>
NNTP-Posting-Host: netbsd08.telecom.com.au
X-Newsreader: TIN [version 1.2 PL1]

Superuser (mark@demon.co.uk) wrote:
: 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 had this very same problem, and just this morning fixed it.
There are quite a few things to do to tin to make it work under NetBSD
and with INN.  The problem you have with tin is the size of the buffers
it uses, causing a crash when i says it's reading the active file.

look at 'SMALL_MEMORY_MACHINE' - I simply stuck it in the Makefile:

	COPTS  = -c -O -DSMALL_MEMORY_MACHINE

also in tin.h:

#ifdef SMALL_MEMORY_MACHINE
/* 
 * #    define          DEFAULT_ACTIVE_NUM      1800    # original size
 */
#       define          DEFAULT_ACTIVE_NUM      900    # my 1st try. 
#       define          DEFAULT_ARTICLE_NUM     600     
#       define          DEFAULT_KILL_NUM        10      
#       define          DEFAULT_SAVE_NUM        10      
#       define          DEFAULT_SPOOLDIR_NUM    5       
#       define          DEFAULT_ACTIVE_SIZE_NUM 5       
#else
#       define          DEFAULT_ACTIVE_NUM      1800    
#       define          DEFAULT_ARTICLE_NUM     1200    
#       define          DEFAULT_KILL_NUM        30      
#       define          DEFAULT_SAVE_NUM        30      
#       define          DEFAULT_SPOOLDIR_NUM    10      
#       define          DEFAULT_ACTIVE_SIZE_NUM 10      
#endif

After compiling with the DEFAULT_ACTIVE_NUM set to 900, I intend to try
1200 and see how it goes.

By the way, ulimit is used in the csh, and it does work if you:

limit datasize 8192 (default is 6144) 

see what the limits are with the command 'limit' with no parameters.

Hope this helps

Terry

: 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! ***