🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Nick Wed, 24 Nov 1999 00:00
Problem with NFS shared spool
#41767
Author: Nick
Date: Wed, 24 Nov 1999 00:00
18 lines
1198 bytes
Hi,
I have a problem with my news system. I have 3 server. Server B (slave
running innd, nnrpd with trad. spool, and nfs server) that receive feeds
from server A
(master running innd, nnrpd with CNFS). Server C runs only nnrpd and see
active, history and spool of server B via NFS.
 The problem is that server C see an old version of active file and see the
correct version only if server B is stopped.
Any suggestion?
Thank in advance!

Nick





Re: Problem with NFS shared spool
#41776
Author: Kjetil Torgrim Homme
Date: Thu, 25 Nov 1999 00:00
20 lines
1392 bytes
[Mike Horwath]

>   Actually, turn off the caching of the access time on the client for
>   the NFS mount and things should sync a tad bit faster.

You mean mount it with actimeo=0?  I don't think that will help since
the mtime isn't changed physically.  This will just cause the client
to stat() the file more often.  You may need to use actimeo=0 in
addition to the msync() though!  I didn't think of that.

>   : You should look into using nntpcache or a Diablo reader instead.
>   
>   That isn't always the answer :)

Oh yeah?  :-)


Kjetil T.

Re: Problem with NFS shared spool
#41777
Author: Kjetil Torgrim Homme
Date: Thu, 25 Nov 1999 00:00
36 lines
2228 bytes
[nick@nospam.it]

>   I have a problem with my news system. I have 3 server. Server B
>   (slave running innd, nnrpd with trad. spool, and nfs server) that
>   receive feeds from server A (master running innd, nnrpd with
>   CNFS). Server C runs only nnrpd and see active, history and spool
>   of server B via NFS.  The problem is that server C see an old
>   version of active file and see the correct version only if server
>   B is stopped.  Any suggestion?

What OS?

The man page for mmap() on Solaris says:

     The st_ctime and st_mtime fields of a file  that  is  mapped
     with MAP_SHARED and PROT_WRITE, will be marked for update at
     some point in the interval between a write reference to  the
     mapped  region  and the next call to msync(3C) with MS_ASYNC
     or MS_SYNC for that portion of the file by any process.

Since the mtime hasn't changed, the NFS client on server C thinks that
its cached version of the active file is valid.  You need to add
msync() calls to the INN on server B after every change to active and
maybe history.  This will be some work to do right, and it may incur
quite a performance hit.

You should look into using nntpcache or a Diablo reader instead.  The
Diablo would run on both server B and C.  This requires local disk for
cache and overview on B and C.  I don't think you _really_ need two
servers for the readers, though.  How many (simultaneous) users do you
have?


Kjetil T.

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