🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Orlando Fiol Wed, 16 Feb 2005 21:23
Gravity: job priorities
#162827
Author: Orlando Fiol
Date: Wed, 16 Feb 2005 21:23
27 lines
2508 bytes
Hi all.  Using the last Super Gravity build 2060, I am having a problem 
with job priorities between decoding articles and downloading headers.  
If I have Gravity retrieve article headers automatically, it stops 
decoding binaries in the process.  Even if I set the automatic update 
time to 6 hours, it still doesn't get down to 1 job and just concentrate 
on decoding until the update kicks in.  In other words, when headers for 
the last newsgroup have been downloaded, Gravity resumes the header 
download process all over again even though I've told it to update every 
6 hours.  I decided to try disabling automatic header downloads, set up 
my binaries to be decoded and then manually download article headers 
when all binary decode jobs have been completed.

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?

Thanks,
Orlando
Re: Gravity: job priorities
#162838
Author: 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/
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