🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10850

Re: ME cant remalloc...

#10850
From: nils mccarthy
Date: Fri, 13 Sep 1996 00:00
40 lines
1907 bytes
Lyndon Levesley <lyndon@xara.net> wrote:
> in sh, you can use the ulimit command to perform your limitting, or
> (if for some reason this won't work) you can try the following dirty
> hack :

>         [ sh code here ]
>         /bin/csh -f <<EOF
>         # Let us use more open files
>         limit descriptors 1024
>         # Stop malloc errors - unlimit my max datasize
>         unlimit datasize
>         EOF
>         [ back to sh code here ]

This won't work.  Resource limits are per-process (and inherited by
their children), so the limit increases would only take effect
for the csh process, which doesn't actually execute anything.

Just use:

        [ sh code here ]
        # Let us use more open files
        ulimit -n 1024
        # Stop malloc errors - unlimit my max datasize
        ulimit -d unlimited
        [ back to sh code here ]

I've found bash's "help ulimit" to be very helpfully descriptive
regarding ulimit usage.

We limit our file descriptors to 512, and limit the number of incoming
connections to 4 per host.  (It gets kind of annoying when we take the
machine down for a short period of time and everyone's innfeed starts
up 10 connections so we can catch up.  Memory usage for buffers shoot
through the roof.)

-nils

Technical Details
Message-ID: <51bkhe$8vs@nnrp1.news.primenet.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: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net>

Show Full Headers
Complete Article Headers
Message-ID: <51bkhe$8vs@nnrp1.news.primenet.com>
Subject: Re: ME cant remalloc...
Date: Fri, 13 Sep 1996 00:00:00 +0000
From: nils mccarthy <nils@primenet.com>
References: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net>
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: 180362824
Organization: Primenet (602)416-7000
X-posted-by: nils@206.165.5.107 (nils)
Newsgroups: news.software.nntp