Thread View: news.software.nntp
15 messages
15 total messages
Started by Jeff Stehman
Mon, 01 Jun 1998 00:00
*Really* long INN expires
Author: Jeff Stehman
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
16 lines
1140 bytes
1140 bytes
INN 1.7.2, BSD/OS 3.1 A couple weeks ago I fixed my long expire problem, getting it down to 5-7 hours, including the rms. Suddenly my expire time has jumped to over 48 hours, with almost all that time spent building the new history file and expire.rm. news.daily has unlimit set. The system isn't swapping at all, and neither load and diskio seem to have changed. Neither my feeds nor reading appear to have slowed down. Suggestions? -- Jeff Stehman Senior Systems Administrator stehman@southwind.net SouthWind Internet Access, Inc. voice: (316)263-7963 Wichita, KS
Re: *Really* long INN expires
Author: Frank Durda IV
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
44 lines
2710 bytes
2710 bytes
Jeff Stehman wrote:
> INN 1.7.2, BSD/OS 3.1
>
> A couple weeks ago I fixed my long expire problem, getting it down to 5-7
> hours, including the rms. Suddenly my expire time has jumped to over 48
> hours, with almost all that time spent building the new history file and
> expire.rm. news.daily has unlimit set. The system isn't swapping at all,
> and neither load and diskio seem to have changed. Neither my feeds nor
> reading appear to have slowed down. Suggestions?
Your default process size isn't big enough, so the dbz rebuild is
being done by zillions of disk operations, instead of in memory.
Dbz (and DBM) are apalling inefficient in their disk operations, and
more and more operating systems show their lack of disksort() in
strategy, or a correct implementation of disksort(), causing the
same block to be written to disk thousands of times per sync().
Add
ulimit -d 500000
or some other "large" number to news.daily, just prior to running
expire. Setting this manually in a shell (limit datasize 500000 for
csh) before running makehistory or expire is a good idea too.
If DBZ was compiled with INCORE enabled (it is by default), it will
try to build the .pag/.dir files in memory, but if there isn't
enough room to hold the entire thing, it reverts to doing work on
disk.
The number selected needs to be large enough to make the history.pag
file fit in memory, so take the size ls -al shows you, and add at
least 20%.
Frank Durda IV - only these addresses work:|"Which courthouse do you want
<uhclem.jun98%nemesis.lonestar.org> | to go to today?"
| - Taxi driver to Microsoft
This Anti-spam address expires June 30th | lawyer
(c) 1998, ask before reprinting.
Re: *Really* long INN expires
Author: Jeff Stehman
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
38 lines
2485 bytes
2485 bytes
Frank Durda IV (uhclem.jun98@nemesis.lonestar.org) wrote: > Jeff Stehman wrote: > > Frank Durda IV (uhclem.jun98@nemesis.lonestar.org) wrote: > > > Your default process size isn't big enough, so the dbz rebuild is > > > being done by zillions of disk operations, instead of in memory. > > > > As I said, I set unlimit in news.daily. That allows it to go to max > > value on all resources. > Watch the .pag file while it is running. Does it slowly but visibly > grow in size, or does it stay zero-length until a minute or two > before it finishes? If it grows, the build process IS NOT fitting > in memory, regardless of what settings you think you have set. > If it is built in memory, the .pag file will remain zero-length until > the rebuild is almost complete, they grow huge very fast. history.n.pag starts the same size as history.pag and stays that way until the near the end. However, the file is being continuously updated. > I don't know if your OS has it, but some platforms (like FreeBSD) > have process limits by user/group, so setting "unlimit" as a mortal > (which news is), is not going to let you exceed the setting in > /etc/login.conf, or whatever mechanism your system provides. > Find out how big "big" really is before assuming you are allowed > to have it all. BSD/OS uses login classes to define such things. The max datasize for user news is set to infinity, which should allow the unlimit command to work. I'll keep working on the problem from this angle. Thank you for your help. -- Jeff Stehman Senior Systems Administrator stehman@southwind.net SouthWind Internet Access, Inc. voice: (316)263-7963 Wichita, KS
Re: *Really* long INN expires
Author: Frank Durda IV
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
31 lines
2417 bytes
2417 bytes
Jeff Stehman wrote:
> Frank Durda IV (uhclem.jun98@nemesis.lonestar.org) wrote:
> > Your default process size isn't big enough, so the dbz rebuild is
> > being done by zillions of disk operations, instead of in memory.
>
> As I said, I set unlimit in news.daily. That allows it to go to max
> value on all resources.
Watch the .pag file while it is running. Does it slowly but visibly
grow in size, or does it stay zero-length until a minute or two
before it finishes? If it grows, the build process IS NOT fitting
in memory, regardless of what settings you think you have set.
If it is built in memory, the .pag file will remain zero-length until
the rebuild is almost complete, they grow huge very fast.
I don't know if your OS has it, but some platforms (like FreeBSD)
have process limits by user/group, so setting "unlimit" as a mortal
(which news is), is not going to let you exceed the setting in
/etc/login.conf, or whatever mechanism your system provides.
Find out how big "big" really is before assuming you are allowed
to have it all.
Frank Durda IV - only these addresses work:|"Which courthouse do you want
<uhclem.jun98%nemesis.lonestar.org> | to go to today?"
| - Taxi driver to Microsoft
This Anti-spam address expires June 30th | lawyer
(c) 1998, ask before reprinting.
Re: *Really* long INN expires
Author: Jeff Stehman
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
22 lines
1325 bytes
1325 bytes
Homer Wilson Smith (homer@light.lightlink.com) wrote: > Jeff Stehman (stehman@jade.southwind.net) wrote: > >INN 1.7.2, BSD/OS 3.1 > >A couple weeks ago I fixed my long expire problem, getting it down to 5-7 > >hours, including the rms. Suddenly my expire time has jumped to over 48 > >hours, > When you say expire do you mean the actual time it takes to > rebuild the new history file, or the time it takes to remove the > articles? Both combined, although it is the former that's taking most of the time. fastrm runs fine. -- Jeff Stehman Senior Systems Administrator stehman@southwind.net SouthWind Internet Access, Inc. voice: (316)263-7963 Wichita, KS
Re: *Really* long INN expires
Author: Jeff Stehman
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
14 lines
1117 bytes
1117 bytes
Frank Durda IV (uhclem.jun98@nemesis.lonestar.org) wrote: > Your default process size isn't big enough, so the dbz rebuild is > being done by zillions of disk operations, instead of in memory. As I said, I set unlimit in news.daily. That allows it to go to max value on all resources. -- Jeff Stehman Senior Systems Administrator stehman@southwind.net SouthWind Internet Access, Inc. voice: (316)263-7963 Wichita, KS
Re: *Really* long INN expires
Author: Homer Wilson Smith
Date: Mon, 01 Jun 1998 00:00
Date: Mon, 01 Jun 1998 00:00
15 lines
989 bytes
989 bytes
Jeff Stehman (stehman@jade.southwind.net) wrote:
>INN 1.7.2, BSD/OS 3.1
>A couple weeks ago I fixed my long expire problem, getting it down to 5-7
>hours, including the rms. Suddenly my expire time has jumped to over 48
>hours,
When you say expire do you mean the actual time it takes to
rebuild the new history file, or the time it takes to remove the
articles?
Homer
Re: *Really* long INN expires
Author: Jeremy
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
28 lines
1855 bytes
1855 bytes
Jeff Stehman <stehman@jade.southwind.net> wrote: >> I don't know if your OS has it, but some platforms (like FreeBSD) have >> process limits by user/group, so setting "unlimit" as a mortal (which >> news is), is not going to let you exceed the setting in >> /etc/login.conf, or whatever mechanism your system provides. Find out >> how big "big" really is before assuming you are allowed to have it >> all. > > BSD/OS uses login classes to define such things. The max datasize for > user news is set to infinity, which should allow the unlimit command to > work. I'll keep working on the problem from this angle. Thank you for > your help. The BSD/OS kernel has a default datasize limit of 64 megs, which I found to be too low for news. You need to recompile a higher limit into the kernel with something like: options "MAXDSIZ=\(96*1024*1024\)" That'll give you 96 megs. If you have more, go for more. -- Jeremy | jeremy@exit109.com "Everything you think you know is wrong." --Jack Chalker
Re: *Really* long INN expires
Author: Christiaan Keet
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
22 lines
1336 bytes
1336 bytes
On 1 Jun 98 21:01:12 GMT, Homer Wilson Smith <homer@light.lightlink.com> wrote: >Jeff Stehman (stehman@jade.southwind.net) wrote: >>INN 1.7.2, BSD/OS 3.1 > >>A couple weeks ago I fixed my long expire problem, getting it down to 5-7 >>hours, including the rms. Suddenly my expire time has jumped to over 48 >>hours, > > When you say expire do you mean the actual time it takes to >rebuild the new history file, or the time it takes to remove the >articles? I saw the same thing happen here, same OS and INN version numbers. It takes forever to rebuild the history file. Someone suggested it can be due to big directory sizes. Haven't had time to test that theory yet though. - Christiaan
Re: *Really* long INN expires
Author: Jeremy
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
15 lines
1262 bytes
1262 bytes
Jeff Stehman <stehman@jade.southwind.net> wrote: > Many thanks. This appears to have done the trick. So you're saying the > datasize *cannot* go higher than 64 meg in the default kernel? That is correct. Mighty annoying, but easily fixed, after you spend a few days tearing your hair out, not sleeping, and growling "What the hell is going *on* here?!" at random people on the street. -- Jeremy | jeremy@exit109.com "Okay, at this point you're abusing sarcasm." --Buffy
Re: *Really* long INN expires
Author: Marc G. Fournier
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
22 lines
1776 bytes
1776 bytes
In article <6kv5rf$2fd$1@opal.southwind.net>, stehman@jade.southwind.net (Jeff Stehman) writes: > BSD/OS uses login classes to define such things. The max datasize for > user news is set to infinity, which should allow the unlimit command to > work. I'll keep working on the problem from this angle. Thank you for > your help. Hi Jeff... FreeBSD uses the same 'login classes' thing, and I had a bugger of a time with this one too. Try uping your 'daemon' class settings instead... I found that I had to do that here in order to get it to work... -- Marc G. Fournier marc.fournier@acadiau.ca Systems Administrator, Acadia University "These are my opinions, which are not necessarily reflected by my employer"
Re: *Really* long INN expires
Author: Christiaan Keet
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
18 lines
1326 bytes
1326 bytes
On 1 Jun 1998 18:34:11 GMT, Jeff Stehman <stehman@jade.southwind.net> wrote: >Frank Durda IV (uhclem.jun98@nemesis.lonestar.org) wrote: >> Your default process size isn't big enough, so the dbz rebuild is >> being done by zillions of disk operations, instead of in memory. > >As I said, I set unlimit in news.daily. That allows it to go to max >value on all resources. But what is your datasize's max by default? If you don't specifically set it higher in your kernel config your 'unlimited value' could be quite low. Do the unlimit and then do 'ulimit -a' to see what your max datasize is. - Christiaan
Re: *Really* long INN expires
Author: Jeff Stehman
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
25 lines
1637 bytes
1637 bytes
Jeremy (jeremy@exit109.com) wrote: > The BSD/OS kernel has a default datasize limit of 64 megs, which I found > to be too low for news. You need to recompile a higher limit into the > kernel with something like: > options "MAXDSIZ=\(96*1024*1024\)" Many thanks. This appears to have done the trick. So you're saying the datasize *cannot* go higher than 64 meg in the default kernel? Mighty kind of them, as the default they give class news is 64 meg, and they let news bump it higher if is wants. Kind'a makes you wonder what the point of defining datasize-max to infinity is. > That'll give you 96 megs. If you have more, go for more. It's enough for now. Again, many thanks. -- Jeff Stehman Senior Systems Administrator stehman@southwind.net SouthWind Internet Access, Inc. voice: (316)263-7963 Wichita, KS
Re: *Really* long INN expires
Author: Jeff Stehman
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
20 lines
1400 bytes
1400 bytes
Christiaan Keet (keet@lorien.noc.easynet.net) wrote: > I saw the same thing happen here, same OS and INN version numbers. It takes > forever to rebuild the history file. > Someone suggested it can be due to big directory sizes. Haven't had time to > test that theory yet though. I've had problems with large directories in the past. Reading large directories can take a very long time, and they can cause find and other utilities to run out memory. Definitely a problem to fix. A good place to start is checking the size of the control and jobs directories. -- Jeff Stehman Senior Systems Administrator stehman@southwind.net SouthWind Internet Access, Inc. voice: (316)263-7963 Wichita, KS
Re: *Really* long INN expires
Author: Frank Bures
Date: Fri, 19 Jun 1998 00:00
Date: Fri, 19 Jun 1998 00:00
46 lines
2552 bytes
2552 bytes
On Tue, 2 Jun 1998 16:54:33, stehman@jade.southwind.net (Jeff Stehman) wrote: > Jeremy (jeremy@exit109.com) wrote: > > > The BSD/OS kernel has a default datasize limit of 64 megs, which I found > > to be too low for news. You need to recompile a higher limit into the > > kernel with something like: > > > options "MAXDSIZ=\(96*1024*1024\)" > > Many thanks. This appears to have done the trick. So you're saying the > datasize *cannot* go higher than 64 meg in the default kernel? Mighty > kind of them, as the default they give class news is 64 meg, and they let > news bump it higher if is wants. Kind'a makes you wonder what the point > of defining datasize-max to infinity is. Does anyone know what is the default value in Red Hat Linux 4.2? My 'limit' values are: cputime unlimited filesize unlimited datasize unlimited stacksize 8192 kbytes coredumpsize 1000000 kbytes memoryuse unlimited descriptors 256 memorylocked unlimited maxproc 256 yet I am experiencing similar problems. Expire time (building new history file) went up from about 10 minutes to 4 hours after upgrade from Red Hat Linux 4.1 to 4.2 and INN to 1.7. I have approx. 5GB of news, 270MB history file and Smart Cache IV Wide SCSI controller with 32MB cache. Frank Bures, Dept. of Chemistry, University of Toronto fbures@chem.toronto.edu (use this address for replies) http://frank.chem.utoronto.ca/electronics "Frisbeetarianism: The belief that when you die, your soul goes up on the roof and gets stuck."
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