🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8010

Re: Sharedactive Patch

#8010
From: Operator
Date: Tue, 28 May 1996 00:00
39 lines
2227 bytes
Feroz Khan (khanf@Raven.und.ac.za) wrote:
: I've applied the sharedactive patch for Solaris and recompiled. I also modified
: /etc/system appropriately and rebooted. After installing nnrpd, I get the
: following error:
: May 27 14:39:33 Server nnrpd[2298]: Host Can't create shared mem seg ment Invalid argument
: Host Info:
: Solaris 2.5 with Recommended patches
: Inn 1.4 unoff 4
Under sunos 4.1.3u1 I found that this was caused by trying to allocate too
big of a shared memory segment. try splitting

static struct shared {
    BOOL            _GRPvalid;                      /* loaded ok */
    time_t          _GRPtimestamp;                  /* time last loaded */
    int             _GRPsize;                       /* number of groups */
    char            _GRPactive[MAX_ACTIVE_SIZE];    /* 700k */
 } *shm;

static struct shared1 {
    GROUPENTRY      *_GRPtable[GRP_SIZE];           /* 2k   */
    GROUPENTRY      _GRPentries[MAX_GROUPS];        /* 460k */
    GROUPENTRY      *_GRPnextentry[MAX_GROUPS];     /* 40k  */
 } *shm1;

your shared memory into 2 allocations like this. and see if it works any
better for you.

-Luke
                       _\\|//_
                       (-O-O-)
---------------------ooO-(_)-Ooo------------------------------------------
No purchase necessary  Keep away from fire or flames  Your mileage may vary
Void where prohibited  As seen on TV  Some assembly required  Do not stamp
Batteries not included  Place stamp here  For recrational use only
Humpty Dumpty was pushed  Keep working. Millions on welfare depend on YOU
Times approximate  This supersedes all previous notices  Luke@EriNet.com

Technical Details
Message-ID: <4oganb$f5m@eri.erinet.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: <4oc8sl$2pv@Raven.und.ac.za>

Show Full Headers
Complete Article Headers
Message-ID: <4oganb$f5m@eri.erinet.com>
Subject: Re: Sharedactive Patch
Date: Tue, 28 May 1996 00:00:00 +0000
From: root@erinet.com (Operator)
References: <4oc8sl$2pv@Raven.und.ac.za>
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: 157255111
Distribution: inet
Organization: EriNet Online 513 436-1700 (Voice)
Newsgroups: news.software.nntp