🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
7 messages
7 total messages Started by Kim Culhan Sat, 25 Feb 1995 15:55
NN via NNTP: How to suppress getting active file?
#7198
Author: Kim Culhan
Date: Sat, 25 Feb 1995 15:55
15 lines
1380 bytes
We recently moved our news machine and now connect to it via a modem line.

Using NN 6.5.0b3 with NNTP and NOV, it takes a while to start each time
as the active file is transferred.

Is there a way to effectively suppress this action, even at the expense of
not getting newgroups?
Is is possible the configuration is wrong and we are not getting the benefit
of provisions to 'cache' this data?

regards
kim culhan

-- 
- kimc@w8hd.org
Re: NN via NNTP: How to suppress getting active file?
#7227
Author: Luca Giachino
Date: Tue, 28 Feb 1995 15:53
43 lines
2613 bytes
kimc@w8hd.org (Kim Culhan) writes:

>...
>Using NN 6.5.0b3 with NNTP and NOV, it takes a while to start each time
>as the active file is transferred.

>Is there a way to effectively suppress this action, even at the expense of
>not getting newgroups?
>Is is possible the configuration is wrong and we are not getting the benefit
>of provisions to 'cache' this data?

During the test phase of my installation of nn over nntp, I noticed
something that looks pretty much like the problem you mention.

I fixed the problem by storing in the init file the following
statement:

	set show-purpose-mode off

This tells nn to not contact the news server when showing a group
whose purpose is unknown.

Hope this helps
Bye
Luca
-----------------------------------------------------------------------------
Luca Giachino
CEFRIEL - Tel: +39-2-66100083 Fax: +39-2-66100448
Via Emanueli, 15 - Milano 20126, Italy
E-Mail:	giachino@mailer.cefriel.it  (Work place, monitored daily)
	giachino@dsi.unimi.it (Computer Science Dep., University of Milan)
Research Areas:	Intelligent Agents, CSCW, OO, Telepresence, Distributed Sys
-----------------------------------------------------------------------------
--
-----------------------------------------------------------------------------
Organization:	CEFRIEL	   Address: Via Emanueli, 15 - Milano 20126, Italy
Phones:		+39-2-66100083 Fax: +39-2-66100448
Researcher:	Luca Giachino
Research Areas:	CSCW, Software Agents, Multimedia, Telepresence
E-Mail: 	CEFRIEL		giachino@mailer.cefriel.it  (monitored daily)
		University	giachino@dsi.unimi.it 
		Computer Science Dep., Universita' degli Studi, Milano Italy
-----------------------------------------------------------------------------
Re: NN via NNTP: How to suppress getting active file?
#7250
Author: Matt Preston
Date: Thu, 02 Mar 1995 21:44
52 lines
2976 bytes
I have effectively removed some of the code which causes nn to grab the 
active file upon the first engagement with the newsserver.  It has caused 
no problems with my database and I have been running it for months.
Let me know if you need it, I will mail it to you.
Matt


In <giachino.793986811@nemo.cefriel.it> giachino@nemo.cefriel.it (Luca Giachino) writes:
>kimc@w8hd.org (Kim Culhan) writes:

>>...
>>Using NN 6.5.0b3 with NNTP and NOV, it takes a while to start each time
>>as the active file is transferred.

>>Is there a way to effectively suppress this action, even at the expense of
>>not getting newgroups?
>>Is is possible the configuration is wrong and we are not getting the benefit
>>of provisions to 'cache' this data?

>During the test phase of my installation of nn over nntp, I noticed
>something that looks pretty much like the problem you mention.

>I fixed the problem by storing in the init file the following
>statement:

>	set show-purpose-mode off

>This tells nn to not contact the news server when showing a group
>whose purpose is unknown.

>Hope this helps
>Bye
>Luca
>-----------------------------------------------------------------------------
>Luca Giachino
>CEFRIEL - Tel: +39-2-66100083 Fax: +39-2-66100448
>Via Emanueli, 15 - Milano 20126, Italy
>E-Mail:	giachino@mailer.cefriel.it  (Work place, monitored daily)
>	giachino@dsi.unimi.it (Computer Science Dep., University of Milan)
>Research Areas:	Intelligent Agents, CSCW, OO, Telepresence, Distributed Sys
>-----------------------------------------------------------------------------
>--
>-----------------------------------------------------------------------------
>Organization:	CEFRIEL	   Address: Via Emanueli, 15 - Milano 20126, Italy
>Phones:		+39-2-66100083 Fax: +39-2-66100448
>Researcher:	Luca Giachino
>Research Areas:	CSCW, Software Agents, Multimedia, Telepresence
>E-Mail: 	CEFRIEL		giachino@mailer.cefriel.it  (monitored daily)
>		University	giachino@dsi.unimi.it 
>		Computer Science Dep., Universita' degli Studi, Milano Italy
>-----------------------------------------------------------------------------
Re: NN via NNTP: How to suppress getting active file?
#7262
Author: Kim Culhan
Date: Sat, 04 Mar 1995 22:19
24 lines
1317 bytes
giachino@nemo.cefriel.it (Luca Giachino) writes:

>I fixed the problem by storing in the init file the following
>statement:

>	set show-purpose-mode off

>This tells nn to not contact the news server when showing a group
>whose purpose is unknown.

I tried this but same result.

Presently the connection to the NNTP machine is over a modem so it takes
a long time to transmit the active file via NNTP.

I'd like to have it not bother with getting a list of all available groups.

Thanks for the idea.

kim

-- 
--
kimc@w8hd.org
Re: NN via NNTP: How to suppress getting active file?
#7265
Author: Dave Olson
Date: Sun, 05 Mar 1995 02:27
131 lines
5016 bytes
kimc@w8hd.w8hd.org (Kim Culhan) writes:

| giachino@nemo.cefriel.it (Luca Giachino) writes:
| 
| >I fixed the problem by storing in the init file the following
| >statement:
| 
| >	set show-purpose-mode off

That controls the newsgroups fetch, but not the active file fetching.

| >This tells nn to not contact the news server when showing a group
| >whose purpose is unknown.
| 
| Presently the connection to the NNTP machine is over a modem so it takes
| a long time to transmit the active file via NNTP.
| 
| I'd like to have it not bother with getting a list of all available groups.

I did part this, for similar reasons.  But only  to keep from getting
active.times.  Here are some diffs for 6.5.0b3.  I still fetch the active
file because the assumption of having the full newsgroup list was just
too widespread.  But with compression, even for a server with 4000 groups,
it's still not too bad, if your ppp/slip has compression.  For me, it's
4500 groups with about 150KB in the active file, at about 3KByte/sec,
so I can tolerate that.

It probably wouldn't be too hard to not get the active file if you gave
groups on the command line, but I didn't do that.  If your server has
thousands of groups, but you only subscribe to a few, you could build
up a 'fake' active file by only fetching the info for those groups, but
if you have very many groups, the extra time to request and wait for
each group's info is *much* slower.

set new-group-action to 0 to suppress getting active.times (as well
as the "set show-purpose-mode off" above, of course).

================================================================
RCS file: RCS/db.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** 1.2	1994/05/16 01:39:28
--- 1.3	1995/01/03 00:54:01
***************
*** 42,47 ****
--- 42,49 ----
    *news_lib_directory;
  import int db_data_subdirs;
  
+ import int new_group_action;
+ 
  export master_header master;
  #ifdef MALLOC_64K_LIMITATION
  export group_header **active_groups = NULL;
***************
*** 1149,1157 ****
  		nn_exitmsg(1, "nn: can't create hash table\n");
  	}
  
  #ifdef NNTP
! 	if (use_nntp)
! 		timfp = nntp_fopen_list("LIST active.times");
  	else
  #endif
  		timfp = fopen(relative(news_lib_directory, "active.times"), "r");
--- 1151,1167 ----
  		nn_exitmsg(1, "nn: can't create hash table\n");
  	}
  
+ 	/* this is needed to be able to automatically notice new newsgroups;
+ 	 * to allow for people reading over slow links, don't do it if
+ 	 * new_group_action is set to 0 (never; ignore new groups).
+ 	 * olson@sgi.com 1/95. */
  #ifdef NNTP
! 	if (use_nntp) {
! 	 	if(!new_group_action)
! 			timfp = NULL;
! 		else
! 			timfp = nntp_fopen_list("LIST active.times");
! 	}
  	else
  #endif
  		timfp = fopen(relative(news_lib_directory, "active.times"), "r");
===================================================================
RCS file: RCS/nn.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** 1.2	1995/01/02 23:26:41
--- 1.3	1995/01/03 00:41:21
***************
*** 844,855 ****
  
   nnspew:
  
      open_master(OPEN_READ);
  
      switch (who_am_i) {
  
       case I_AM_NN:
- 	visit_init_file(0, argv[1]);
  	init_term(1);
  
  	if (say_welcome) {
--- 844,862 ----
  
   nnspew:
  
+ 	/* want to set variables before making nntp connection; in
+ 	 * particular, the news_group_action and nntp-debug variables should
+ 	 * be able to be set before open_master causes active.times to
+ 	 * be fetched, etc.. olson@sgi.com 1/95
+ 	*/
+     if(who_am_i == I_AM_NN)
+ 		visit_init_file(0, argv[1]);
+ 
      open_master(OPEN_READ);
  
      switch (who_am_i) {
  
       case I_AM_NN:
  	init_term(1);
  
  	if (say_welcome) {
===================================================================
--

The most beautiful things in the world are              |   Dave Olson
those from which all excess weight has been             |   Silicon Graphics
removed.  -Henry Ford                                   |   olson@sgi.com
Re: NN via NNTP: How to suppress getting active file?
#7267
Author: Dave Olson
Date: Sun, 05 Mar 1995 02:57
23 lines
2272 bytes
olson@anchor.engr.sgi.com (Dave Olson) writes:
| active.times.  Here are some diffs for 6.5.0b3.  I still fetch the active
| file because the assumption of having the full newsgroup list was just
| too widespread.  But with compression, even for a server with 4000 groups,
| it's still not too bad, if your ppp/slip has compression.  For me, it's
| 4500 groups with about 150KB in the active file, at about 3KByte/sec,
| so I can tolerate that.

Oh, I should add that in many ways, reading via tty session to a system
with ethernet speed or faster to the news server still *feels* much
faster than going completely over a modem link, because of the long delay
on any newsgroup with more than a screen's worth of articles.  The whole
newsgroups worth of headers has to be read before the first menu is
displayed, so the first menu can be excruciatingly slow (although the rest
will be quite fast, of course).  This could also be fixed, of course, but
it could only be done if you don't want any article sorting at all, and
the assumption of having the full group info at the start of the group
is fairly basic, so it's not a trivial change.
--

The most beautiful things in the world are              |   Dave Olson
those from which all excess weight has been             |   Silicon Graphics
removed.  -Henry Ford                                   |   olson@sgi.com
Re: NN via NNTP: How to suppress getting active file?
#7276
Author: luca giachino
Date: Wed, 08 Mar 1995 17:52
28 lines
1667 bytes
In <3jap0q$100@w8hd.w8hd.org> kimc@w8hd.w8hd.org (Kim Culhan) writes:

>giachino@nemo.cefriel.it (Luca Giachino) writes:

>>I fixed the problem by storing in the init file the following
>>statement:

>>	set show-purpose-mode off

>>This tells nn to not contact the news server when showing a group
>>whose purpose is unknown.

>I tried this but same result.

>Presently the connection to the NNTP machine is over a modem so it takes
>a long time to transmit the active file via NNTP.

>I'd like to have it not bother with getting a list of all available groups.

Well, this sounds strange to me.
I will better check the way nn is working with that variable set to off.
What I can say, is that I can now run nn also when the network to the
nntp server is not working.

With time, I will check and provide the results.

Bye
Luca
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