Thread View: news.software.nntp
9 messages
9 total messages
Started by Brian O'Neill
Wed, 02 Apr 1997 00:00
makehistory -buv never finishes on an Alpha?
Author: Brian O'Neill
Date: Wed, 02 Apr 1997 00:00
Date: Wed, 02 Apr 1997 00:00
16 lines
1166 bytes
1166 bytes
I have a 175Mhz Alpha (slow by todays standards) with a 4Gb news spool. makehistory -buv (1.5.1) never seems to get anywhere - it will fun for a whole weekend, but the temp files never seem to grow in size. Any idea what might be wedging it? My history file is over 200Mb now and probably is in serious need of rebuilding. -- ====================================================================== Brian O'Neill - Director of Computing, Computer Science (508) 934-3645 University of Massachusetts Lowell <*> oneill@cs.uml.edu "Did I mention that my nose is on fire and that there are 15 badgers living in my pants?" Marcus, Babylon 5
Re: makehistory -buv never finishes on an Alpha?
Author: Frank Durda IV
Date: Wed, 02 Apr 1997 00:00
Date: Wed, 02 Apr 1997 00:00
59 lines
3644 bytes
3644 bytes
Brian O'Neill wrote:
> I have a 175Mhz Alpha (slow by todays standards) with a 4Gb news spool.
> makehistory -buv (1.5.1) never seems to get anywhere - it will fun for a
> whole weekend, but the temp files never seem to grow in size.
>
> Any idea what might be wedging it? My history file is over 200Mb now and
> probably is in serious need of rebuilding.
If you watch with ps ax, you will see on OSF 4.0B that makehistory or expire goes
into U state and will stick there for up to two minutes at a time and nearly
all I/O on the system will cease. Start up makehistory or expire, and start
doing ls -al commands over and over monitoring the size of the history* files.
The ls commands will eventually hang for a couple of minutes. Before ls
hangs, you will note progress on building history.n has also ceased. When
things unjam, progress occurs for another 30 seconds or so, then things
bind up again. This goes on for hours. The CPU will be 100% idle and
programs aren't getting any CPU cycles.
This was happening on our DEC 4.0B 512M 2CPU 275/300MHz Alpha 2100 and 2100A
systems. We downgraded our 2100 to 3.2G to get away from this bug.
*********************************************************
You *could* also try DECs first suggested FIX: do a sync command every 10
seconds. This helps a tiny bit.
DEC knows about the bug (from us) but has no fix. Your article per second
incoming/outgoing rates for innd is probably also being impacted by this bug.
Our incoming article per second rate went up 3X when we returned to 3.2G
even when expire/makehistory aren't running. 3.2G binds a little (five to
ten seconds every minute or so), but nothing like 4.0B.
Our ~500Meg history file processes in about 30 minutes to an hour on 3.2G and
was taking around 11 hours on 4.0B (same system same memory). That's just
the time to make the new history, history.dir and history.pag files, AND on
4.0B, we shut everything else down to try to speed makehistory up, including
terminating innd. Expire was also similarly impacted by 4.0B.
BTW, building the new history files on a FreeBSD 2.2 486DX-100 took around
30 minutes. All of the above events were using 1.4unoff4.
I have a lovely C program you can have that demonstrates the bug if you
want it. Something in OSF 4.X HATES sparse files, such as dbm/dbz files.
Even updating a large (40,000 line) passwd database file kills a machine for
a minute or so. I suggest you go back to 3.2G if you can. It's been nearly
two months since we first reported this bug and DECs most recent suggestion
was for us to upgrade to INN 1.5.1 even though POPper and other applications
are also impacted.
Frank Durda IV <uhclem@nemesis.lonestar.org>|"I'm sorry Dave, but I have
or uhclem%nemesis@rwsystr.nkn.net | deleted Windows '95 from the entire system."
| - What A. C. Clarke claims he would have
or ...letni!rwsys!nemesis!uhclem | HAL say if he was writing 2001 today.
(c) 1997, ask before reprinting.
Re: makehistory -buv never finishes on an Alpha?
Author: Brian O'Neill
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
32 lines
1641 bytes
1641 bytes
Frank Durda IV wrote:
>
> You *could* also try DECs first suggested FIX: do a sync command every 10
> seconds. This helps a tiny bit.
>
I just wrote an update that takes a parameter, and will try it next
weekend.
>
> I have a lovely C program you can have that demonstrates the bug if you
> want it. Something in OSF 4.X HATES sparse files, such as dbm/dbz files.
>
Hmm...my dbz file doesn't appear to be sparse:
187328 -rw-rw-r-- 1 news news 191715937 Apr 4 12:59 history
1 -rw-rw-r-- 1 news news 151 Apr 4 12:59
history.dir
47200 -rw-rw-r-- 1 news news 48299144 Apr 4 12:59
history.pag
--
======================================================================
Brian O'Neill - Director of Computing, Computer Science (508) 934-3645
University of Massachusetts Lowell <*> oneill@cs.uml.edu
"Did I mention that my nose is on fire and that there are 15 badgers
living in my pants?" Marcus, Babylon 5
Re: makehistory -buv never finishes on an Alpha?
Author: Anne Bennett
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
36 lines
2090 bytes
2090 bytes
Frank Durda IV <uhclem@nemesis.lonestar.org> writes: > > This was happening on our DEC 4.0B 512M 2CPU 275/300MHz Alpha 2100 and 2100A > systems. We downgraded our 2100 to 3.2G to get away from this bug. [...] > DEC knows about the bug (from us) but has no fix. Your article per second > incoming/outgoing rates for innd is probably also being impacted by this bug. This is rather terrifying, since I have a one-CPU 190MHz Alpha 2100 running DEC 4.0B. :-( However, I have not noticed the problems you mention. Well, I have not tried a makehistory, but I expire three times a day, and my (today) 172 MB history file rebuilds in (yesterday's times) 5 to 20 minutes, with delayrm of course. My history file is on an AdvFS. Is your history file on an AdvFS or a UFS? > I have a lovely C program you can have that demonstrates the bug if you > want it. Something in OSF 4.X HATES sparse files, such as dbm/dbz files. I'd like a copy; could you post it or send me a copy? > Even updating a large (40,000 line) passwd database file kills a machine for > a minute or so. That we see, but it has not changed since 3.2c, which is what we were running before we upgraded two months ago. Anne. -- Ms. Anne Bennett anne@alcor.concordia.ca (514) 848-7606 Computing Services, Concordia University, Montreal QC, Canada H3G 1M8
Re: makehistory -buv never finishes on an Alpha?
Author: Saul Tannenbaum
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
30 lines
1926 bytes
1926 bytes
[Crossposted to, and followups set to comp.unix.osf.osf1]
In article <5i3ci8$9fi$1@newsflash.concordia.ca>, Anne Bennett <anne@alcor.concordia.ca> wrote:
> Frank Durda IV <uhclem@nemesis.lonestar.org> writes:
> > Even updating a large (40,000 line) passwd database file kills a machine for
> > a minute or so.
> That we see, but it has not changed since 3.2c, which is what we were
> running before we upgraded two months ago.
Us, too, but we've isolated the problem to things like finger daemons,
that traverse the password file. For some period of time, while the
database is being rebuilt, anything that tries to traverse the
password file, actually ends up doing a sequential search of the
/etc/passwd file, not the database. Typically, the database is
long since rebuilt, while those poor daemons are still slowly
slogging through the passwd file.
- Saul
--
Saul Tannenbaum, Manager, Academic Systems |"Every year, I get more and more
stannenb@emerald.tufts.edu | cynical, but somehow I just can't
Tufts University Computing and | keep up." - Lilly Tomlin
Communications Services |
Finger for PGP Public Key |http://www.tufts.edu/~stannenb
Re: makehistory -buv never finishes on an Alpha?
Author: Frank Durda IV
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
36 lines
2255 bytes
2255 bytes
Anne Bennett wrote:
> This is rather terrifying, since I have a one-CPU 190MHz Alpha 2100
> running DEC 4.0B. :-( However, I have not noticed the problems you
> mention. Well, I have not tried a makehistory, but I expire three
> times a day, and my (today) 172 MB history file rebuilds in
> (yesterday's times) 5 to 20 minutes, with delayrm of course. My
> history file is on an AdvFS.
>
> Is your history file on an AdvFS or a UFS?
Ah, I should have mentioned that. The problem with extremely
slow history construction time only shows up on UFS file systems.
History files on AFS appear to work OK, apart from overall
system degradation we get on news and non-news applications
under OSF 4.0*. NFS-mounted UFS file systems (even on non-DEC
targets) also show the problem in OSF 4.0*.
Essentially, any program working with DBM/DBZ or similar sparse
files is impacted by the bug. Adjusting the system tuning parms
provides no significant improvement.
Make a copy of your history file over on a UFS file-system and
run makehistory on it to see what I'm talking about. Within
two minutes, you'll be trying to stop the program.
AFS isn't a cure-all, since it is slower in other areas and limits
the number of files. It really makes a lousy news spool.
Frank Durda IV <uhclem@nemesis.lonestar.org>|"I'm sorry Dave, but I have
or uhclem%nemesis@rwsystr.nkn.net | deleted Windows '95 from the entire system."
| - What A. C. Clarke claims he would have
or ...letni!rwsys!nemesis!uhclem | HAL say if he was writing 2001 today.
Re: makehistory -buv never finishes on an Alpha?
Author: Frank Durda IV
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
117 lines
4647 bytes
4647 bytes
Brian O'Neill wrote:
> Hmm...my dbz file doesn't appear to be sparse:
>
> 187328 -rw-rw-r-- 1 news news 191715937 Apr 4 12:59 history
> 1 -rw-rw-r-- 1 news news 151 Apr 4 12:59 history.dir
> 47200 -rw-rw-r-- 1 news news 48299144 Apr 4 12:59 history.pag
Um, the .pag file *is* a sparse file. It is a DBZ file. There should be
some places in it where data has never been written, usually entire
blocks. Unless completely populated, history.pag should be using less
actual disk space than the 48,299,144 bytes claimed.
FYI, if you don't want to try it by reconstructing your history.dir and .pag
files (we know these are the culprits because we commented out the code
that writes these two files and the problem goes away), you can try this
test program we gave to DEC. It demonstrates the bug on four different
Alphas we have around here, including a little tiny Alpha 800 and a big
3CPU275MHz 2100 with 512M. UFS file systems are the key.
This program will run you out of disk space if you let it run long enough,
but you should see the bug within two or three minutes if it is going
to fail for you.
/* C970207-XXXX Sample Program #2 27-Feb-97
(Complete DEC open ticket number omitted)
killit.c
To run and fail , find some free space and type ./killit
To see it not fail, use the command ./killit good
This program does a general mimic of the types of disk
writes that expire and writehistory do to the history.pag file.
You MUST be on a UFS filesystem to see the problem.
With the occasional fsync on the file, the system lockup is
averted.
*/
#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#define BLOCKS (1024*1024*1024)
#define nwrites 10000
#define GOOD 0
#define EVIL 1
main(c, a )
int c;
char *a[];
{
int x, y, cnt=0;
int itr=0;
int fd, state=EVIL;
time_t now, then;
char buf[8];
if (c>1)
if (!strcmp(a[1], "good"))
state = GOOD;
printf("Mode: %s\n", state ? "EVIL" : "GOOD") ;
if ((fd=open("testdb", O_CREAT | O_TRUNC | O_RDWR, 0666)) < 0) {
perror("testdb");
exit(-1);
}
time(&now);
then=now;
for (x=0;x<BLOCKS/2;x+= 512)
for(y=BLOCKS;y>BLOCKS/2;y -= 512, cnt++) {
if (cnt % nwrites == 0) {
time(&now);
printf("%d writes took %d seconds, itr #%d\n", n
writes, now-then, itr++);
then=now;
if (state == GOOD);
fsync(fd);
}
if (lseek(fd, 0, 0) == -1) {
perror("lseek0");
exit(1);
}
if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
perror("write0");
}
lseek(fd, x, 0);
if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
perror("write1");
}
lseek(fd, y, 0);
if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
perror("write2");
}
}
}
Frank Durda IV <uhclem@nemesis.lonestar.org>|"I'm sorry Dave, but I have
or uhclem%nemesis@rwsystr.nkn.net | deleted Windows '95 from the entire system."
| - What A. C. Clarke claims he would have
or ...letni!rwsys!nemesis!uhclem | HAL say if he was writing 2001 today.
(c) 1997, ask before reprinting.
Re: makehistory -buv never finishes on an Alpha?
Author: Brian O'Neill
Date: Sun, 06 Apr 1997 00:00
Date: Sun, 06 Apr 1997 00:00
28 lines
1939 bytes
1939 bytes
Frank Durda IV wrote: > > Brian O'Neill wrote: > > Hmm...my dbz file doesn't appear to be sparse: > > > > 187328 -rw-rw-r-- 1 news news 191715937 Apr 4 12:59 history > > 1 -rw-rw-r-- 1 news news 151 Apr 4 12:59 history.dir > > 47200 -rw-rw-r-- 1 news news 48299144 Apr 4 12:59 history.pag > > Um, the .pag file *is* a sparse file. It is a DBZ file. There should be > some places in it where data has never been written, usually entire > blocks. Unless completely populated, history.pag should be using less > actual disk space than the 48,299,144 bytes claimed. > The ls output above is with "ls -ls", which is showing the number of allocated blocks. This seems to indicate that my .pag file is NOT sparse. Now, I DID move /usr/local (which contains the history file) to another dik for other performance reasons, and I may have used tar instead of dump, which is known to not handle sparse files well. When recreated, it apparently allocated the blocks. I read youe message that this specific problem does not appear under an AdvFS filesystem - I will probably try that this coming weekend as well, since this filesystem is fairly static.
Re: makehistory -buv never finishes on an Alpha?
Author: Larry Rosenman
Date: Wed, 09 Apr 1997 00:00
Date: Wed, 09 Apr 1997 00:00
28 lines
1699 bytes
1699 bytes
In article <3342AAF9.41C6@staff.uml.edu>, Brian O'Neill <oneill@staff.uml.edu> wrote: %I have a 175Mhz Alpha (slow by todays standards) with a 4Gb news spool. %makehistory -buv (1.5.1) never seems to get anywhere - it will fun for a %whole weekend, but the temp files never seem to grow in size. % %Any idea what might be wedging it? My history file is over 200Mb now and %probably is in serious need of rebuilding. You might look at the patch I posted last nite. My tmp files DO grow, and then it hung though. Larry % %-- %====================================================================== %Brian O'Neill - Director of Computing, Computer Science (508) 934-3645 %University of Massachusetts Lowell <*> oneill@cs.uml.edu %"Did I mention that my nose is on fire and that there are 15 badgers % living in my pants?" Marcus, Babylon 5 -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-399-0210 (voice) Internet: ler@lerami.lerctr.org US Mail: 900 Lake Isle Circle, Irving, TX 75060-7726
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