🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Nicholas Geovanis Mon, 01 Nov 1999 00:00
inn 2.2.1 cnfsstat on hpux 10.20
#41203
Author: Nicholas Geovanis
Date: Mon, 01 Nov 1999 00:00
25 lines
1435 bytes
Went to 2.2.1 over the weekend on a transfer server. Everything is doing
OK (=x crossed fingers) except cnfsstat, which has these two problems:
  1) It always reports the very first set of stats which it reported,
     ie. the time updates OK but the usage numbers are always identical
     to its very first report.
  2) "cnfsstat -a" hangs.

All cycbuffs are <= 2GB in size. I spent a little time in the perl
debugger with it, and it does seem to be reading the cycbuff headers OK,
though I haven't yet checked the conversion-to-printable. Could it be
perl? Here's the release. Any thoughts?

$ perl -v

This is perl, version 5.004_01


+-------------------->
| Nick Geovanis
| IT Computing Svcs
| Northwestern Univ
V n-geovanis@nwu.edu


Re: inn 2.2.1 cnfsstat on hpux 10.20
#41210
Author: Nicholas Geovanis
Date: Mon, 01 Nov 1999 00:00
26 lines
1763 bytes
On Mon, 1 Nov 1999, Nicholas Geovanis wrote:

> Went to 2.2.1 over the weekend on a transfer server. Everything is doing
> OK (=x crossed fingers) except cnfsstat, which has these two problems:
>   1) It always reports the very first set of stats which it reported,
>      ie. the time updates OK but the usage numbers are always identical
>      to its very first report.
>   2) "cnfsstat -a" hangs.
> 
> All cycbuffs are <= 2GB in size. I spent a little time in the perl
> debugger with it, and it does seem to be reading the cycbuff headers OK,
> though I haven't yet checked the conversion-to-printable. 

Turns-out that the perl "read(BUFF, $buff, $headerlength)" always returns
the same data for each individual cycbuff. Is this a mmap()-support
problem? By the way, these cycbuffs are within filesystems, not on top of
the raw device file, for which HPUX doesn't support mmap().

+-------------------->
| Nick Geovanis
| IT Computing Svcs
| Northwestern Univ
V n-geovanis@nwu.edu


Re: inn 2.2.1 cnfsstat on hpux 10.20
#41234
Author: Nicholas Geovanis
Date: Tue, 02 Nov 1999 00:00
53 lines
3032 bytes
On Mon, 1 Nov 1999, Nicholas Geovanis wrote:

> On Mon, 1 Nov 1999, Nicholas Geovanis wrote:
> 
> > Went to 2.2.1 over the weekend on a transfer server. Everything is doing
> > OK (=x crossed fingers) except cnfsstat, which has these two problems:
> >   1) It always reports the very first set of stats which it reported,
> >      ie. the time updates OK but the usage numbers are always identical
> >      to its very first report.
> >   2) "cnfsstat -a" hangs.
> > 
> > All cycbuffs are <= 2GB in size. I spent a little time in the perl
> > debugger with it, and it does seem to be reading the cycbuff headers OK,
> > though I haven't yet checked the conversion-to-printable. 
> 
> Turns-out that the perl "read(BUFF, $buff, $headerlength)" always returns
> the same data for each individual cycbuff. Is this a mmap()-support
> problem? By the way, these cycbuffs are within filesystems, not on top of
> the raw device file, for which HPUX doesn't support mmap().

I'm just talking to myself here :-)

As far as dd and od/xd are concerned, the clearly-out-of-date cycbuff
headers which cnfsstat reads from the cycbuffs are correct. IMHO this
means that mmap() isn't working as CNFS expects. The mystery is how the
filesystem manages to function at all (maybe it isn't, and that's why
you'all aren't responding :-). A secondary mystery is why the out-of-date
cycbuff header condition has persisted across one reboot and several inn
restarts.

The following variables are set to the indicated values by configure on my
platform (HPUX 10.20):

     ac_cv_func_mmap_shared       yes
     ac_cv_func_need_msync        no
     ac_cv_subst_act_style        MMAP
     ac_cv_subst_mmap_sync        DONT

I'm wondering if ac_cv_subst_mmap_sync should be DO instead of DONT. There
have been posts here in the past about alleged incompleteness of HP's
mmap() implementation. I'm afraid that without experimentation I don't
have an informed opinion on the subject, but we can say that the above
values represent the current configure's opinion on the subject. What do
you say?

+-------------------->
| Nick Geovanis
| IT Computing Svcs
| Northwestern Univ
V n-geovanis@nwu.edu


Re: inn 2.2.1 cnfsstat on hpux 10.20
#41313
Author: Nicholas Geovanis
Date: Thu, 04 Nov 1999 00:00
49 lines
2481 bytes
On 3 Nov 1999, Russ Allbery wrote:

> Nicholas Geovanis <nickgeo@merle.acns.nwu.edu> writes:
> 
> > As far as dd and od/xd are concerned, the clearly-out-of-date cycbuff
> > headers which cnfsstat reads from the cycbuffs are correct.
> 
> Are you sure that articles are being stored in that cycbuff at all?  Are
> they retrievable?

Yes they are indeed.

> > The following variables are set to the indicated values by configure on
> > my platform (HPUX 10.20):
> 
> >      ac_cv_func_mmap_shared       yes
> >      ac_cv_func_need_msync        no
> >      ac_cv_subst_act_style        MMAP
> >      ac_cv_subst_mmap_sync        DONT
> 
> HP-UX 10.20's mmap implementation misses file updates done via write.  

Yes it does. FWIW this is documented.

> I
> think that's been fixed in the 2.3 tree but not in the 2.2.1 tree, because
> it involved additional autoconf tests and I don't think we backported any
> of that work.  If you're seeing other server problems as well, you may
> want to try 2.3; there was a bunch of HP-UX 10.20 work that was done for
> it.

Stole my glory! I was just about to patch that write into an msync(). Also
needed is a periodic msync() of the cycbuff headers so that cnfsstat can
retrieve them periodically. Do these changes appear in the current 2.3
stable, or should I wait for the upcoming one?

> -- 
> Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>
> 
> 

+-------------------->
| Nick Geovanis
| IT Computing Svcs
| Northwestern Univ
V n-geovanis@nwu.edu


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