🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13499

nnrpd w/ NFS speed problem

#13499
From: Charles Menser
Date: Mon, 23 Dec 1996 00:00
50 lines
2116 bytes
I am running 1.4unoff4 on a Sparc20 (Solaris 2.5.1).

The system is running nnrpd from inetd, with /var/news (active &
history) and /var/spool/news (spool) NFS mounted.

I have 10+ Gigs of spool NFS (v3) mounted.

My problem is nnrpd's response time on group commands. On an older
server, which has, 4 Gig of spool (directly attached), the response time
to a group command is under one second. One the machine in question, the
response can take significantly longer than 10 seconds.

head and article commands are very responsive (<1 sec) on the NFS
mounted system.

I believe the problem is in GRPscandir().

nnrpd/group.c [about line 224]:

    while ((ep = readdir(dp)) != NULL) {
        /* Get the numeric value of the filename, if it's all digits. */
        for (p = ep->d_name, i = 0; *p; p++) {
            if (!CTYPE(isdigit, *p))
                break;
            i = i * 10 + *p - '0';
        }
        if (*p || i == 0)
            continue;
 
        if (ARTsize + 1 >= ARTarraysize) {
            ARTarraysize += 1024;
            RENEW(ARTnumbers, ARTNUM, ARTarraysize);
        }
 
        ARTnumbers[ARTsize++] = i;
    }

This directory walk can take as long as 20 seconds.

Is this code necessary? It looks like the active file could be
referenced, rather than walking the directory.


Thanks,
Charles
----------
charles@renaissance.services.peach.net

Technical Details
Message-ID: <32BF0716.2619@renaissance.services.peach.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

Show Full Headers
Complete Article Headers
Message-ID: <32BF0716.2619@renaissance.services.peach.net>
Subject: nnrpd w/ NFS speed problem
Date: Mon, 23 Dec 1996 00:00:00 +0000
From: Charles Menser <charles@renaissance.services.peach.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: 205647818
Distribution: inet
Cc: charles@renaissance.services.peach.net
Content-type: text/plain; charset=us-ascii
Organization: PeachNet
Mime-version: 1.0
Newsgroups: news.software.nntp
X-mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m)