🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Dave Graves Fri, 21 Nov 1997 00:00
nnrpd size with actived
#23498
Author: Dave Graves
Date: Fri, 21 Nov 1997 00:00
12 lines
651 bytes
What should nnrpd size be with actived?

Mine are running at 1900k.  Thought they'd be smaller.

Is this normal?

-dave



Re: nnrpd size with actived
#23463
Author: Anthony Kueh
Date: Fri, 21 Nov 1997 00:00
32 lines
1445 bytes
That's not the OS then. I'm running Linux.

-Tony

Dave Graves wrote in message <34762B3A.B874C769@netreach.nospam.net>...
>Damn, that's alot of difference to attribute to the OS --
>
>FWIW , i'm running solaris 251
>
>-------------------------
>Aren't they sposed to be very teeny with actived running?
>
>Jeremy wrote:
>
>> Anthony Kueh <kueh@remove.me.for.no.spam.uiuc.edu> wrote:
>>
>> > This seems to be right. Mine are at about 1900k also.
>>
>> Mine are at about 900k, 700k RES.  Perhaps a difference in OS causes
>> the variance?  I'm running BSDI.
>>
>> --
>> Jeremy  |  jeremy@exit109.com
>> Here's a nickel, kid.  Go buy yourself a real computer.
>
>
>



Re: nnrpd size with actived
#23478
Author: Shawn Ramsey
Date: Fri, 21 Nov 1997 00:00
17 lines
893 bytes
Dave Graves wrote:
> 
> What should nnrpd size be with actived?
> 
> Mine are running at 1900k.  Thought they'd be smaller.
> 
> Is this normal?
> 
> -dave

On our BSDI news server INN 1.7 (patched to hell and back :) ) nnrpd
processes are 400-500k

This patched version has actived.

Re: nnrpd size with actived
#23508
Author: Dave Graves
Date: Fri, 21 Nov 1997 00:00
25 lines
1185 bytes
Damn, that's alot of difference to attribute to the OS --

FWIW , i'm running solaris 251

-------------------------
Aren't they sposed to be very teeny with actived running?

Jeremy wrote:

> Anthony Kueh <kueh@remove.me.for.no.spam.uiuc.edu> wrote:
>
> > This seems to be right. Mine are at about 1900k also.
>
> Mine are at about 900k, 700k RES.  Perhaps a difference in OS causes
> the variance?  I'm running BSDI.
>
> --
> Jeremy  |  jeremy@exit109.com
> Here's a nickel, kid.  Go buy yourself a real computer.




Re: nnrpd size with actived
#23521
Author: Anthony Kueh
Date: Fri, 21 Nov 1997 00:00
19 lines
926 bytes
This seems to be right. Mine are at about 1900k also.

-Tony

Dave Graves wrote in message <347617F5.1877B783@netreach.nospam.net>...
>What should nnrpd size be with actived?
>
>Mine are running at 1900k.  Thought they'd be smaller.
>
>Is this normal?
>
>-dave
>
>



Re: nnrpd size with actived
#23530
Author: Jeremy
Date: Sat, 22 Nov 1997 00:00
13 lines
936 bytes
Anthony Kueh <kueh@remove.me.for.no.spam.uiuc.edu> wrote:

> This seems to be right. Mine are at about 1900k also.

Mine are at about 900k, 700k RES.  Perhaps a difference in OS causes
the variance?  I'm running BSDI.

-- 
Jeremy  |  jeremy@exit109.com
Here's a nickel, kid.  Go buy yourself a real computer.

Re: nnrpd size with actived
#23532
Author: Joe Greco
Date: Sat, 22 Nov 1997 00:00
25 lines
1381 bytes
In news.software.nntp article <347617F5.1877B783@netreach.nospam.net>, Dave Graves <dgraves@netreach.nospam.net> wrote:
:What should nnrpd size be with actived?
:
:Mine are running at 1900k.  Thought they'd be smaller.
:
:Is this normal?

The active file isn't the only thing that cases nnrpd to use memory.
actived should cut down the size of your nnrpd by about the size of
the active file, minus a bit.

If you have DBZINCORE set to something other than -1, that will chew
memory for some clients.

If you are using a patch such as my sorted-overview data patch, that
will chew memory too, but the payoff is worth it, and should overall
HELP you.

Are you sure your nnrpd's are using actived?  Try killing actived and
look at news.notice for complaints.

... JG

Re: nnrpd size with actived
#23535
Author: Dave Graves
Date: Sat, 22 Nov 1997 00:00
40 lines
1781 bytes
Actived is most certainly running and being used --  kill it and watch the fun in the logs.

I also added a setsid() to detach it from the terminal (solaris 251) as it wasn't doing that by itself.

I'm running insync's patch cocktail -- not sure if your patch is in that or not.

-dave

---------------------

Joe Greco wrote:

> In news.software.nntp article <347617F5.1877B783@netreach.nospam.net>, Dave Graves <dgraves@netreach.nospam.net> wrote:
> :What should nnrpd size be with actived?
> :
> :Mine are running at 1900k.  Thought they'd be smaller.
> :
> :Is this normal?
>
> The active file isn't the only thing that cases nnrpd to use memory.
> actived should cut down the size of your nnrpd by about the size of
> the active file, minus a bit.
>
> If you have DBZINCORE set to something other than -1, that will chew
> memory for some clients.
>
> If you are using a patch such as my sorted-overview data patch, that
> will chew memory too, but the payoff is worth it, and should overall
> HELP you.
>
> Are you sure your nnrpd's are using actived?  Try killing actived and
> look at news.notice for complaints.
>
> ... JG




Re: nnrpd size with actived
#23565
Author: Trevor Fiatal
Date: Sun, 23 Nov 1997 00:00
30 lines
1790 bytes
[posted to news.software.nntp and mailed to Dave Graves
<dgraves@netreach.nospam.net>]

On Sat, 22 Nov 1997 15:26:18 -0500, Dave Graves <dgraves@netreach.nospam.net>
spake thusly:

>Actived is most certainly running and being used --  kill it and watch the fun in the logs.
>
>I also added a setsid() to detach it from the terminal (solaris 251) as it wasn't doing that by itself.
>
>I'm running insync's patch cocktail -- not sure if your patch is in that or not.

Any chance you could diff your version against the distributed copy of the
actived source?  I've been meaning to look into why it wouldn't detach
properly on my Solaris 2.5.1 boxen, but I haven't had time, so this would be a
huge help.

Thanks in advance.

-Trevor


/--------------------------------=-----------------------------------\
|Trevor Fiatal - trevor@home.net |  Cringe before the onslaught      |
|Internet Applications Architect |     of my pithy nuances!          |
|@Home Network, SF Bay Area, CA  |                -- J.B. Hemlock    | 
\--------------------------------|-----------------------------------/

Re: nnrpd size with actived
#23567
Author: Dan Foster
Date: Sun, 23 Nov 1997 00:00
59 lines
2335 bytes
In article <347903c2.229709887@zeppelin.home.net>,
Trevor Fiatal <trevor@home.net> wrote:
>>I also added a setsid() to detach it from the terminal (solaris 251) as it 
>>wasn't doing that by itself.
>>
>>I'm running insync's patch cocktail -- not sure if your patch is in that or 
>>not.
>
>Any chance you could diff your version against the distributed copy of the
>actived source?  I've been meaning to look into why it wouldn't detach
>properly on my Solaris 2.5.1 boxen, but I haven't had time, so this would be a
>huge help.

....or you could use the daemon() function that I grabbed from FreeBSD's
libc sources, put the function in daemon.c, add daemon.c and daemon.o to
appropriate Makefile lines, and rebuild. It then built out of the box (and
worked just dandy) on my SysV-based AIX v4 box.

-Dan

daemon.c:

#include <fcntl.h>
#include <paths.h>
#include <unistd.h>

int
daemon(nochdir, noclose)
        int nochdir, noclose;
{
        int fd;

        switch (fork()) {
        case -1:
                return (-1);
        case 0:
                break;
        default:
                _exit(0);
        }

        if (setsid() == -1)
                return (-1);

        if (!nochdir)
                (void)chdir("/");

        if (!noclose && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
                (void)dup2(fd, STDIN_FILENO);
                (void)dup2(fd, STDOUT_FILENO);
                (void)dup2(fd, STDERR_FILENO);
                if (fd > 2)
                        (void)close (fd);
        }
        return (0);
}

Re: nnrpd size with actived
#23570
Author: Trevor Fiatal
Date: Mon, 24 Nov 1997 00:00
26 lines
1721 bytes
[posted to news.software.nntp and mailed to dsf@node6.frontiernet.net (Dan
Foster)]

On 23 Nov 1997 17:18:23 GMT, dsf@node6.frontiernet.net (Dan Foster) spake
thusly:

>....or you could use the daemon() function that I grabbed from FreeBSD's
>libc sources, put the function in daemon.c, add daemon.c and daemon.o to
>appropriate Makefile lines, and rebuild. It then built out of the box (and
>worked just dandy) on my SysV-based AIX v4 box.
[chop]

I'll try that, thanks.  I promise I'll report back success/failure for this on
Solaris, since there's bound to be a lot of interest.

-Trevor


/--------------------------------=-----------------------------------\
|Trevor Fiatal - trevor@home.net |  Cringe before the onslaught      |
|Internet Applications Architect |     of my pithy nuances!          |
|@Home Network, SF Bay Area, CA  |                -- J.B. Hemlock    | 
\--------------------------------|-----------------------------------/

Re: nnrpd size with actived
#23606
Author: Joe Greco
Date: Mon, 24 Nov 1997 00:00
13 lines
1117 bytes
In news.software.nntp article <34773FEA.9E574A27@netreach.nospam.net>, Dave Graves <dgraves@netreach.nospam.net> wrote:
:Actived is most certainly running and being used --  kill it and watch the fun in the logs.
:
:I also added a setsid() to detach it from the terminal (solaris 251) as it wasn't doing that by itself.
:
:I'm running insync's patch cocktail -- not sure if your patch is in that or not.

actived _is_ my patch.  :-)

... JG

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