🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Charles Menser Mon, 23 Dec 1996 00:00
nnrpd w/ NFS speed problem
#13499
Author: 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

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