Thread View: news.software.nntp
7 messages
7 total messages
Started by Paul D. Smith
Mon, 26 Jan 1998 00:00
INN vs update(8) on SunOS
Author: Paul D. Smith
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
39 lines
2184 bytes
2184 bytes
I'm running an INN 1.7.2 + Insync 1.1d server on a SunOS 4.1.4 system.
It's a sparc10 with 96M of RAM. I know it's not huge, but we only take
a relatively small feed (only 1500 groups, and no binaries--almost no
alt.* at all) and we're a leaf node, so I only have to serve internal
folks.
My problem is that expire, etc. is _way_ slow. And in fact, the entire
system seems dog-slow while the expire is happening. The load is
running well over 5, sometimes hitting 7 or even higher while this is
happening.
Using top, etc., it appears the problem is the update(8) program. This
is a SunOS program that, according to the man page, runs sync(2) every
30 seconds to insure that the file system is fairly up to date in case
of a crash.
Using top I can see that when this sucker (update) runs, it chews up
tons of CPU:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
201 root -25 0 12K 8K sleep 199:08 67.65% 57.81% update
and I've seen it get up to 90% or more WCPU/CPU.
My expire is taking hours and hours (it's still running since 4am, so
that's 7.5 hours today).
What should I do about this? Anyone else running INN on SunOS, seeing
this or have any ideas?
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions--Bay Networks takes no responsibility for them.
Re: Why keep no-group rejects? [was Re: INN vs update(8) on SunOS]
Author: Dave Barr
Date: Tue, 27 Jan 1998 00:00
Date: Tue, 27 Jan 1998 00:00
23 lines
1698 bytes
1698 bytes
In article <p5lnw2kjwr.fsf_-_@baynetworks.com>, Paul D. Smith <psmith@baynetworks.com> wrote: >This leads me to my next thought: why does DO_REMEMBER_TRASH save >history on articles to groups you don't carry? It seems to me that >these should never be saved, for any reason. That's the whole point of DO_REMEMBER_TRASH. If you receive an article from one peer and you throw it away, when you receive it from another peer you'll throw it away for the same reason. DO_REMEMBER_TRASH tells innd to remember the message-id of articles you throw away so when redundant peers offer the article they are refused instead of rejected. This makes a big difference for some sites with several peers but limited groups. If you throw away 1/3rd of the articles from each of of your 3 peers, this means that you'd avoid downloading 2/3rds of a full feed that you'd normally reject. --Dave -- http://www.cis.ohio-state.edu/~barr/ barr@cis.ohio-state.edu
Why keep no-group rejects? [was Re: INN vs update(8) on SunOS]
Author: Paul D. Smith
Date: Tue, 27 Jan 1998 00:00
Date: Tue, 27 Jan 1998 00:00
54 lines
3023 bytes
3023 bytes
%% Regarding Re: INN vs update(8) on SunOS;
%% Frank Elsner <Elsner@zrz.TU-Berlin.DE> writes:
fe> I ran INN on SunOS 4.1.x for several years and I must tell you that
fe> calling "news.daily" with "delayrm" is the solution (not only on
fe> SunOS).
I should have said I am using delayrm/expirerm. I'm also using actived,
crosspost, and overchan.
The problem is without question the excessive history file size. I
recalculated it based only on what's in my feed now, and it went from
400M to 39M! Obviously I lost history on expired articles, but I'm sure
the vast majority were from groups I don't carry.
This leads me to my next thought: why does DO_REMEMBER_TRASH save
history on articles to groups you don't carry? It seems to me that
these should never be saved, for any reason.
Here's my thinking. There are two cases: either
(a) You are never going to carry the group, in which case it will always
be dropped, so why bother saving history about it? As best I can
understand the code in art.c you won't save much time per article by
having it thrown out via history, and you could probably even move
the group test earlier in processing to reduce this difference even
further.
Or,
(b) You will add the group at some point, in which case it seems to me
you'd _want_ to get any articles for that group that you were
offered, even if they were offered before and you rejected them
because the group didn't exist. In this case you wouldn't want
entries in the history file.
Right? If so, it seems to me that articles rejected because a group
doesn't appear in the active file should be unconditionally forgotten.
Am I missing something (probably)?
Obviously in an ideal world every feed would only send exactly those
groups which the client wanted, but even (b) by itself seems like a good
enough reason to unconditionally forget these articles.
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions--Bay Networks takes no responsibility for them.
Re: INN vs update(8) on SunOS
Author: Frank Elsner
Date: Tue, 27 Jan 1998 00:00
Date: Tue, 27 Jan 1998 00:00
18 lines
1069 bytes
1069 bytes
Paul D. Smith wrote: [ ... ] > My expire is taking hours and hours (it's still running since 4am, so > that's 7.5 hours today). > > What should I do about this? Anyone else running INN on SunOS, seeing > this or have any ideas? I ran INN on SunOS 4.1.x for several years and I must tell you that calling "news.daily" with "delayrm" is the solution (not only on SunOS). Frank Elsner
Re: INN vs update(8) on SunOS
Author: Hans Lambermont
Date: Tue, 27 Jan 1998 00:00
Date: Tue, 27 Jan 1998 00:00
148 lines
4670 bytes
4670 bytes
Paul D. Smith wrote:
> I'm running an INN 1.7.2 + Insync 1.1d server on a SunOS 4.1.4 system.
> My problem is that expire, etc. is _way_ slow. And in fact, the entire
> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> 201 root -25 0 12K 8K sleep 199:08 67.65% 57.81% update
> What should I do about this? Anyone else running INN on SunOS, seeing
> this or have any ideas?
Yes. You need fsfast:
Please correct my stupid copy-paste errors before compiling.
/*
* This programs turns on/off delayed I/O on a filesystem.
*
* Usage: fastfs filesystem fast|slow|status
*
* Note that it is intended for use with restore(8)
* to speed up full filesystem restores. Remember
* that if a filesystem is running with delayed I/O
* enabled when the system crashes it can result in
* fsck being unable to "fix" the filesystem on reboot
* without manual intervention.
*
* Typical use is
*
* fastfs /home fast
* cd /home; restore rf /dev/rst5
* fastfs /home slow
*
* The above gives about a 500% increase in the speed of
* the restore (your milage may vary).
*
* Its also good for /tmp giving most of the benifits of tmpfs
* without the problems.
*
* In rc.local
*
* fastfs /tmp fast
*
* but you may need to add fsck -y /tmp into /etc/rc.boot
* before the real fsck to ensure the machine always boots
* (I have not done this yet).
* pdg@cs.uow.EDU.AU
*/
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>
extern char *sys_errlist[];
#define STATUS 0
#define FAST 1
#define SLOW 2
int
main(argc, argv)
int argc;
char **argv;
{
int fd;
int flag;
int action;
if (geteuid() != 0)
{
fprintf(stderr,"%s: Must run as root.\n", argv[0]);
exit(1);
}
if (argc == 2)
{
action = STATUS;
}
else
{
if (argc != 3)
{
fprintf(stderr,"Usage: %s path
{fast|slow|status}\n",argv[0]);
exit(2);
}
if (!strcasecmp(argv[2], "status"))
{
action = STATUS;
}
if (!strcasecmp(argv[2], "fast"))
{
action = FAST;
}
if (!strcasecmp(argv[2], "slow"))
{
action = SLOW;
}
}
if ((fd = open(argv[1], O_RDONLY)) < 0)
{
fprintf(stderr,"%s: Unable to open \"%s\"\n%s\n",
argv[0],
argv[1], sys_errlist[errno]);
exit(3);
}
if (action == STATUS)
{
if (ioctl(fd, FIODIOS, &flag) != 0)
{
fprintf(stderr,"%s: ioctl failed%s\n", argv[0],
sys_errl
ist[errno]);
exit(4);
}
if (flag == 0) printf("%s is slow.\n", argv[1]);
else printf("%s is fast\n", argv[1]);
exit(0);
}
if (action == FAST)
flag = 1;
else
flag = 0;
if (ioctl(fd, FIODIO, &flag) != 0)
{
fprintf(stderr,"%s: ioctl failed\n%s\n", argv[0],
sys_errlist[er
rno]);
exit(5);
}
printf("%s is now %s\n",argv[1], flag ? "fast" : "slow");
exit(0);
}
regards,
Hans
--
Ir. Hans Lambermont http://www.mpn.cp.philips.com/Hans.Lambermont
TIS/INS, VN507 Hans.Lambermont@mpn.cp.philips.com
Origin IT Systems Management/NL bv phone/fax: (+31 40 27) 85376/88729
PO Box 218, 5600MD Eindhoven, Netherlands GSM: (+31) 6 53252172
Re: INN vs update(8) on SunOS
Author: Daryl E. Kottek
Date: Thu, 29 Jan 1998 00:00
Date: Thu, 29 Jan 1998 00:00
33 lines
1447 bytes
1447 bytes
In a previous article, Elsner@zrz.TU-Berlin.DE (Frank Elsner) says: >Paul D. Smith wrote: > > [ ... ] > >> My expire is taking hours and hours (it's still running since 4am, so >> that's 7.5 hours today). >> >> What should I do about this? Anyone else running INN on SunOS, seeing >> this or have any ideas? > >I ran INN on SunOS 4.1.x for several years and I must tell you that >calling "news.daily" with "delayrm" is the solution (not only on >SunOS). > >Frank Elsner > I will confirm Frank's response. I'm running an OLD Sparc II with 64MB of RAM and I run /usr/local/news/bin/news.daily delayrm norotate at 6AM, 10AM, 2PM, 6PM and 10PM The load does go up on the machine, but it does finish in less than 2 hours. -Daryl Kottek Oregon ED-NET --
Re: INN vs update(8) on SunOS
Author: Paul D. Smith
Date: Mon, 02 Feb 1998 00:00
Date: Mon, 02 Feb 1998 00:00
27 lines
1681 bytes
1681 bytes
%% dkotte2@orednet.org (Daryl E. Kottek) writes:
>> I ran INN on SunOS 4.1.x for several years and I must tell you that
>> calling "news.daily" with "delayrm" is the solution (not only on
>> SunOS).
dek> I will confirm Frank's response. I'm running an OLD Sparc II
dek> with 64MB of RAM and I run
dek> /usr/local/news/bin/news.daily delayrm norotate
I should have mentioned that I am running with delayrm... have been
since INN1.4 :)
dek> at 6AM, 10AM, 2PM, 6PM and 10PM
That's an idea I hadn't considered: running it more often than once a
day. Thanks!
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions--Bay Networks takes no responsibility for them.
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