🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #162838

Re: Gravity: job priorities

#162838
From: Tom B.
Date: Thu, 17 Feb 2005 01:40
67 lines
3307 bytes
Orlando Fiol wrote in news.software.readers ..

[snip]

> It seems that Gravity gives priority to header downloads over binary 
> decoding because if I manually issue a get headers command, decoding 
> stops.
> 
> Basically, what I'd really like is for gravity to download article 
> headers at startup until I go through the newsgroups and set up binaries 
> to be decoded.  Once the decoding begins, I'd like Gravity to stop 
> downloading article headers and only resume after all the decoding has 
> finished, then downloading headers furiously until I assign more 
> binaries to be decoded.  In short, I'd like Gravity to give priority to 
> binary decoding rather than header downloading.  Is this possible?  If 
> so, how?


After I told you by email that you could not do it, I remembered an 
email Tony sent during the old MicroPlanet days about an undocumented 
registry setting. Remember Gravity's code was written when a decent 
Windows box was a P100 with 16 M RAM, so they tried to make it play 
nice.

There is a bitmask setting in the registry, and apparently the decode 
thread may run at below normal priority (by design). I can't help you 
with it because I never fooled around with it much, but you might try 
setting the decode bit to normal and see if it helps. Of course it 
may not do anything. Here is the excerpt (and the only explanation I 
have). For reference, the normal value in the registry is 0

===== begin =====

It's gravity/System/EngineExt ... 

it's a bitmask.  To set the priority to normal a bit is one. For  
example, to set the database and decode priority to normal, but 
everything else to below normal it's as follows:

101000 binary or
0x28 hex or
40 (decimal)

another example - only the emerg socket as normal:

100 binary or
0x04 hex or
4 decimal

   // bit 0  tasker   [1|0]   1 == normal prio, 0 == below_normal
   //     1  normal socket
   //     2  emerg  socket
   //     3  database
   //     4  print
   //     5  decode

I don't know if that was clear.  The UI thread runs at normal all of 
the time, but the others are set to zero by default so as not to hog 
CPU from the UI.

===== end =====
 
-- 
Tom B.      * * * Gravity Web Pages  * * *
http://lightning.prohosting.com/~tbates/gravity/
http://gravity.tbates.org/
http://mpgravity.sourceforge.net/
Technical Details
Message-ID: <MPG.1c7dbfda38304f689896d7@news.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <MPG.1c7d8413afd6301a9898b8@news.verizon.net>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.1c7dbfda38304f689896d7@news.individual.net>
Subject: Re: Gravity: job priorities
Date: Wed, 16 Feb 2005 20:40:20 -0500
From: Tom B. <nfn03862@naples.net>
References: <MPG.1c7d8413afd6301a9898b8@news.verizon.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 67
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 3Q8vxtaTmcUmM08/gkxNowj9BzlFnhDEmK3arNkv8gO5Z/IZ0=
User-Agent: MicroPlanet-Gravity/2.70.2067