🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39259

Re: malloc failures on BSDI 4.0

#39259
From: Joe Dietz
Date: Wed, 18 Aug 1999 00:00
198 lines
5951 bytes
Tom,

I had similar issues on BSDi V3.1.
I had to bump some params in the kernel and login.conf
Here is what I'm currently using.  I've included my login.conf.  If I
remember
correctly it is stock except for the NEWS section.

Joe

Pentium 266Mhz
256MB of RAM
BSDi V3.1

Kernel options:
options         "KMEMSIZE=\(128*1024*1024\)"
options         "DFLDSIZ=\(128*1024*1024\)"
options         "DFLSSIZ=\(128*1024*1024\)"
options         "MAXDSIZ=\(512*1024*1024\)"

login.conf:

# BSDI login.conf,v 2.21 1997/01/16 19:42:54 sanders Exp
#
# Sample login.conf file.
#

#
# Standard default entry.  Use compiled in system defaults.
# Enable all the various login programs
#
# krb-or-pwd First try kerberos password, then local password file
# passwd Use only the local password file
# kerberos Use only the kerberos password
# chpass Do not authenticate, but change users password (change
#  the kerberos password if the user has one, else change
#  the local password)
# lchpass Do not authenticate, but change users local password
#
# rpasswd Password auth using /etc/rpasswd.db instead of /etc/passwd
# rchpass Do not authenticate, but change password in /etc/rpasswd.db
#
# skey  Use S/Key MD5 authentication
# activ  ActivCard X9.9 token authentication
# crypto CRYPTOCard X9.9 token authentication
# snk  Digital Pathways SecureNet Key authentication
# token  Generic X9.9 token authentication
#
# DO NOT ALTER the following lines:
#
auth-bsdi-defaults:auth=krb-or-pwd,kerberos,passwd,activ,crypto,snk,chpass,lchpass,token:

auth-ftp-bsdi-defaults:auth-ftp=passwd,activ,crypto,snk,token:
radius-bsdi-defaults:auth-radius=rpasswd,activ,crypto,snk,token:

#
# The default values
# To alter the default authentication types change the line:
# :tc=auth-bsdi-defaults:\
# to be read something like: (enables passwd, "myauth", and activ)
# :auth=passwd,myauth,activ:\
# Any value changed in the daemon class should be reset in default
# class.
#
default:\
 :path=/bin /usr/bin /usr/contrib/bin:\
 :datasize-cur=512M:\
 :radius-challenge-styles=activ,crypto,skey,snk,token:\
 :tc=auth-bsdi-defaults:\
 :tc=auth-ftp-bsdi-defaults:

#
# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
#
daemon:\
 :path=/bin /usr/bin /sbin /usr/sbin:\
 :widepasswords:\
 :datasize-cur=32M:\
 :openfiles-cur=128:\
 :tc=default:

#
# Settings used by rc.local to start netnews (INN)
#
#news:\
# :path=/bin /usr/bin /usr/contrib/bin /usr/contrib/lib/news/bin:\
# :datasize=infinity:\
# :maxproc-cur=256:\
# :openfiles-cur=256:\
# :datasize-cur=64M:\
# :stacksize-cur=16M:\
# :tc=default:
#
news:\
 :path=/bin /usr/bin /usr/sbin /usr/local/news/bin /usr/local/bin:\
 :datasize=512:\
 :maxproc-cur=1024:\
 :openfiles-cur=1024:\
 :stacksize=128M:\
 :priority=4:\
 :tc=default:

#
# To alter the list of styles, replace the line
# :tc=radius-bsdi-defaults:
# with something like:
# :auth-radius=myauth,rpasswd:\
#
RADIUS:\
 :tc=radius-bsdi-defaults:
#
# full default system settings
# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"

# Several hard limits are determined by the system configuration (amount
# of memory and max users) and are not reflected here.
#
full-default:\
 :auth=passwd:\
 :coredumpsize=infinity:\
 :cputime=infinity:\
 :datasize-cur=512M:\
 :datasize-max=512M:\
 :filesize=infinity:\
 :maxproc-cur=64:\
 :memorylocked-cur=10M:\
 :openfiles-cur=64:\
 :priority=0:\
 :requirehome:\
 :stacksize-cur=2M:\
 :stacksize-max=256M:\
 :term=unknown:\
 :umask=022:

#
# Staff have fewer restrictions and can login even when nologins are set
# All login methods are enabled
#
staff:\
 :datasize-cur=64M:\
 :datasize-max=infinity:\
 :ignorenologin:\
 :requirehome@:\
 :tc=default:

#
# The dialer class should be used for PPP and SLIP login account.
# This will suppress login messages
#
dialer:\
 :hushlogin:\
 :widepasswords:\
 :requirehome@:\
 :tc=default:


#
# The restricted class lowers limits
# requires the use of kerberos
# only allows 1 1/2 hours of CPU time
# The C-name entries are samples of entries, remove the C- to enable them
#
restricted:\
 :C-approve=/usr/local/bin/approve:\
 :C-copyright=/etc/copyright-local:\
 :C-shell=/usr/local/bin/meta-shell:\
 :C-welcome=/etc/motd-restricted:\
 :auth=passwd:\
 :coredumpsize=8M:\
 :cputime=1h 30m:\
 :datasize=8M:\
 :filesize=8M:\
 :maxproc=20:\
 :memorylocked=4M:\
 :memoryuse=8M:\
 :nologin=/etc/nologin-restricted:\
 :openfiles=20:\
 :path=/bin /usr/bin /usr/contrib/bin /usr/local/bin:\
 :priority=4:\
 :requirehome:\
 :stacksize=2M:\
 :umask=0027:\
 :tc=default:




Tom Gebhardt wrote:

> I've just upgraded from inn 1.7.2 to 2.2 on BSDI4.  After doing this, I
> can only get expire to run under root account.  It consistently malloc
> fails (for 18M) whenever run from the news account.  Does anyone have
> any suggestions?


Technical Details
Message-ID: <37BAC371.CCA33D92@uswest.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <37B474DE.7BF36D4@hboc.com>

Show Full Headers
Complete Article Headers
Message-ID: <37BAC371.CCA33D92@uswest.com>
Subject: Re: malloc failures on BSDI 4.0
Date: Wed, 18 Aug 1999 00:00:00 +0000
From: Joe Dietz <jsdietz@uswest.com>
References: <37B474DE.7BF36D4@hboc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 514224587
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@kane.uswmedia.com
X-Trace: kane.uswmedia.com 934986609 2635 155.70.32.180 (18 Aug 1999 14:30:09 GMT)
Organization: U S WEST Dex, Inc.
Mime-Version: 1.0
NNTP-Posting-Date: 18 Aug 1999 14:30:09 GMT
Newsgroups: news.software.nntp