🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11359

Re: What's wrong with sucking? and how do we fix it?

#11359
From: Mark Hittinger
Date: Thu, 03 Oct 1996 00:00
46 lines
2737 bytes

I've had to use a different technique for anti-suck/slurp patches.   I
initially tried a check in the command loop, however, I seemed to still
have some trouble with readers that would just sit inside xover/xhdr and 
consume the cpu.  Also you'd have the 'newnews' problem.

What I am playing with right now is a wrapper around the QIOread call.
I have a wrapper function called 'as_QIOread'.  It monitors how the
process is doing and then calls the real QIOread.  

If the process is doing ok things proceed as normal.  If the process turns
out to be abusive then the process nices itself and sleeps a second every
100 invocations of as_QIOread.

Using this kind of approach I was able to turn back on the 'newnews' command
and not see server problems.  If the server has free resources this patch
does not really hurt the suck feed - if they are running during off-peak 
the suck feed should see good throughput.  I've been able to turn back on
commands which I had turned off.

If the server is under peak load conditions then abusive readers will run
at a slightly lower priority than the non-abusive readers.  In this instance
the abusers see the drop off in throughput instead of the non-abusers (and
innd itself).

The inn1.5b1 (wimpy) patch is not going to completely cover your butt :-)

I know there will be interest in this patch - I'm still tweaking it - and
will post it in a few days.

By the way - looking at the OVERfind routine made me think that we need to
have some kind of index file mechanism - like .overview and .overview.db
so that OVERfind can get to the record of interest right away.  Am I reading
the code right?  Is it doing a sequential read of the overview file to
get a particular record?  If that is the case we might be able to
significantly reduce the number of I/O's done by the abusive readers and
still provide them with a reasonable service level.  Just a thought! :-)

Regards,

Mark Hittinger
Netcom/Dallas
bugs@freebsd.netcom.com

Technical Details
Message-ID: <530mhh$j50@dfw-ixnews1.ix.netcom.com>
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
References: <52stuk$8v@pixi.com> <52u0o9$6ur@dfw-ixnews1.ix.netcom.com> <52uhd2$5ov@brasil.moneng.mei.com> <rj4Uycun87nc092yn@ibm.net>

Show Full Headers
Complete Article Headers
Message-ID: <530mhh$j50@dfw-ixnews1.ix.netcom.com>
Subject: Re: What's wrong with sucking? and how do we fix it?
Date: Thu, 03 Oct 1996 00:00:00 +0000
From: bugs@freebsd.netcom.com (Mark Hittinger)
References: <52stuk$8v@pixi.com> <52u0o9$6ur@dfw-ixnews1.ix.netcom.com> <52uhd2$5ov@brasil.moneng.mei.com> <rj4Uycun87nc092yn@ibm.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: 186957087
Distribution: inet
Organization: Netcom
X-netcom-date: Thu Oct 03 10:36:19 AM CDT 1996
Newsgroups: news.software.nntp