archie/berkdb/irix.mbox
2024-05-27 16:13:40 +02:00

620 lines
28 KiB
Plaintext

From mandrews@aw.sgi.com Fri Oct 13 12:35:47 1995
Received: from bsdi.BSDI.COM by python.bostic.com (8.6.9.Beta4/2.6)
id PAA12214; Fri, 13 Oct 1995 15:35:44 -0400
Received: from alias.alias.com (ALIAS.ALIAS.COM [192.75.21.65]) by bsdi.BSDI.COM (8.6.12/8.6.12) with ESMTP id NAA03940 for <bostic@bsdi.com>; Fri, 13 Oct 1995 13:36:53 -0600
Received: by alias.alias.com (940719.SGI.8.6.9/8.6.9) id PAA04609; Fri, 13 Oct 1995 15:35:29 -0400
Received: from nebula.alias.com(192.75.20.180) by alias.alias.com via smap (V1.3)
id sma004595; Fri Oct 13 15:35:00 1995
Received: by nebula.alias.com (8.7.1/8.6.9) id PAA14283; Fri, 13 Oct 1995 15:34:59 -0400 (EDT)
From: mandrews@aw.sgi.com (Mark Andrews)
Message-Id: <199510131934.PAA14283@nebula.alias.com>
Subject: Re: db-1.85
To: bostic@bsdi.com (Keith Bostic)
Date: Fri, 13 Oct 1995 15:34:59 -0400 (EDT)
Cc: mizzi@eu1.mpi-hd.mpg.de, mandrews@aw.sgi.com
In-Reply-To: <199510131806.OAA12067@python.bostic.com> from "Keith Bostic" at Oct 13, 95 02:06:40 pm
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Status: RO
>
> > Overwriting an existing record may crash the database.
> > The solution was to delete it first and write it new.
> > Under Ultrix the same code works correctly even if
> > the record is not deleted before writing it new!
>
> The current version DB doesn't have a "replace" interface, so
> overwriting the returned key/data pair is always risky and prone
> to catastrophic failure. The closest interface to this it has
> is using a cursor call to position the cursor and then a put
> call to replace the cursor key/data pair. Future versions will
> have a replace interface, but until then it's a mistake to
> overwrite the returned key/data.
>
> > However after finishing the code on Linux I ported it to
> > Ultrix and FBSD with no problems! Because the platforms
> > where the code should run on is not yet fixed I've tried
> > to port it to a SGI under IRIX 5.3 without success.
Here's what I've been sending the other people:
=======================================================================
Here's a compressed tar archive of a PORT directory for irix.5.2 and
irix.5.3. The pathnames of all files in the archive are db.1.85/PORT/...
Note that the irix.5.3 PORT directory is actually a symbolic link to
the irix.5.2 PORT directory as both use the same include files and Makefile.
If you continue to have problems, let me know.
begin 644 irix5.tar.Z
M'YV09,2XB.$"1XT74)Y(H?(BC9PT>%S4<"'C!8"+&#-JW,BQH\>/($/"&'FC
M1@T0`$;"B!'#!DJ5,&30>`FS)@P0,&K<D%$C!D\90''&F%&#1@P`(&J$7,JT
MJ=.G2^O,H1-&3DH8;:JN@?I1S@HR7#_:I`D39=BS:-.J7<MV8\"!!0\F7-CP
M8<2)%9N$65/&3!HV9=H*;JK2!HV95U>V)!L3L4T8AFW<P%G#!M$9,FZ4G+FR
MAHP9-)#"&$RZ]$>I5*V.S"IG:UNO8`6/3:S2K.G;N'.;'I$`"(H1*?3R]0LX
M`0X7.4"@$%*F=1G`>5*`N/$B!HT7.6@H4,`DB1`B0GHD8)-&S-LP"IX(41)#
M/)HP<]"X>`/B??PO8M*<X9MG?GWX:.!7AQG^V1>@&76X,4:!`'[!QAMGR,#@
M?7"$<489_G&A0`)HS%%&56/(1Y\;`;4Q7WKKR2">&'1\,<:#'OK'HHMON&&'
MC"V24888=9R!XQ<Z`D8'AO3->"$=/[X!1QEN9+CAC&_8T9P9#][Q8X477ED'
MDD6VZ"&((H(PHX=Q_#@''.1Q"8*&"<RXY5]SG*B>$C.(]]8;*"I!@WAMP/'&
M&VS(N5X-XLE1QA@NPD@D"(8B&F090_K7Z!='2GKH%THR:2FB<&RYZ1=?RA&B
MDPE,2N:G;[(1)YX*-)'$%$.(-X<;<#SD!AT$LDK"'MU])T0?.H"PZYPQ]"'L
M'G/*8.RPZ\VP+++KT?#LG#4\ZRJL?6PH1QL@M&"&L$!L6!4(8\0Q![AK;@C"
MNL<2.VV*[](9K[3M#FKMJT-DJ\"+'[JA@[;<>GMLK^#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[MQ/^[(/;DK]^7.W)N[<W_NT#VZ
M2_?I3MVKNW6_[M@]NVOW[<[=N[MW_^[@/;R+]_%.WLN[>3_OZ#V]J_?USM[;
)NWM_[_`]OK,%
`
end
====================================================================
> Contact Mark Andrews (mandrews@alias.com). He has DB running
> on various SGI machines, including IRIX 5.3, I believe. (I've
> cc'd him on this email.)
>
> (Note -- Mark, if you'll send me the DB 1.85 patches for the
> IRIX, I'll quit passing people along to you. ;-})
Doesn't matter to me. I like that I can help people here. Gotta give
back to those who helped me when I was a net pup :-)
From mandrews@aw.sgi.com Mon Oct 16 12:04:46 1995
Received: from bsdi.BSDI.COM by python.bostic.com (8.6.9.Beta4/2.6)
id PAA21761; Mon, 16 Oct 1995 15:04:44 -0400
Received: from relay1.UU.NET (relay1.UU.NET [192.48.96.5]) by bsdi.BSDI.COM (8.6.12/8.6.12) with ESMTP id NAA18221 for <bostic@bsdi.com>; Mon, 16 Oct 1995 13:05:59 -0600
Received: from alias.alias.com by relay1.UU.NET with SMTP
id QQzlsm29578; Mon, 16 Oct 1995 13:10:51 -0400 (EDT)
Received: by alias.alias.com (940719.SGI.8.6.9/8.6.9) id NAA29282; Mon, 16 Oct 1995 13:09:17 -0400
Received: from nebula.alias.com(192.75.20.180) by alias.alias.com via smap (V1.3)
id sma029279; Mon Oct 16 13:09:10 1995
Received: by nebula.alias.com (8.7.1/8.6.9) id NAA04268; Mon, 16 Oct 1995 13:09:02 -0400 (EDT)
From: mandrews@aw.sgi.com (Mark Andrews)
Message-Id: <199510161709.NAA04268@nebula.alias.com>
Subject: Re: db-1.85
To: mizzi@eu1.mpi-hd.mpg.de (Thomas Kihm)
Date: Mon, 16 Oct 1995 13:09:01 -0400 (EDT)
Cc: mandrews@aw.sgi.com, bostic@bsdi.com
In-Reply-To: <9510161401.AA09018@eu1.mpi-hd.mpg.de> from "Thomas Kihm" at Oct 16, 95 03:01:44 pm
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Status: RO
>
> I have tested your ports and it works with my test programs.
> Currently I have tested only small databases (15MB).
>
> But however test 12 from the db-1.85 test directory doesn't
> work! Do you have the same results running test 12.
All tests work for me, but I had to make a few changes to the
test script and Makefile to get it working. These changes would not
have been in the files I sent you earlier. Here are the diffs:
*** db.1.85/test/Makefile Sun Aug 28 11:42:52 1994
--- db.1.85/test/Makefile.irix Wed Mar 1 11:52:47 1995
***************
*** 9,15 ****
INC= -I${PORTDIR}/include -I${PORTDIR}
OORG= -g
#STAT= -DSTATISTICS
! CFLAGS= -D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC}
dbtest: ${OBJS} ${PORTDIR}/libdb.a
${CC} -o $@ ${OBJS} ${PORTDIR}/libdb.a
--- 9,15 ----
INC= -I${PORTDIR}/include -I${PORTDIR}
OORG= -g
#STAT= -DSTATISTICS
! CFLAGS= -D__DBINTERFACE_PRIVATE -DDEBUG ${STAT} ${OORG} ${INC} -D__BIT_TYPES_DEFINED__
dbtest: ${OBJS} ${PORTDIR}/libdb.a
${CC} -o $@ ${OBJS} ${PORTDIR}/libdb.a
*** db.1.85/test/run.test Thu Sep 1 18:04:44 1994
--- db.1.85/test/run.test.irix Mon Oct 16 12:43:41 1995
***************
*** 16,21 ****
--- 16,23 ----
DICT=/usr/share/dict/words
elif [ -f /usr/dict/words ]; then
DICT=/usr/dict/words
+ elif [ -f /usr/share/lib/dict/words ]; then
+ DICT=/usr/share/lib/dict/words
else
echo 'run.test: no dictionary'
exit 1
==========================================================================
With respect to test 12, you may not have the rev utility which is used
for that testi (run.test:540). I had to compile a version of my own to get
the tests working as it is not an IRIX utility.
The following is a diff to the 4.3BSD Net2 rev source (old/rev/rev.c
at various ftp sites):
*** rev.c Mon Mar 23 11:57:00 1992
--- /u/mandrews/src/BSD/db/db.1.85/test/rev.c Mon Oct 16 12:58:26 1995
***************
*** 46,54 ****
--- 46,56 ----
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+ #include "cdefs.h"
void usage __P((void));
void warn __P((const char *, ...));
+ char *fgetline __P((FILE *, size_t *));
int
main(argc, argv)
***************
*** 130,133 ****
--- 132,149 ----
{
(void)fprintf(stderr, "usage: rev [file ...]\n");
exit(1);
+ }
+
+ char *
+ fgetline(FILE *fp, size_t *n)
+ {
+ static char buf[BUFSIZ];
+
+ if ((fgets(buf, BUFSIZ, fp)) == NULL)
+ *n = 0;
+ else {
+ *n = strlen(buf) - 1;
+ buf[(*n)] = '\0';
+ }
+ return(*n == 0 ? (char *)NULL : buf);
}
If you place the patched source in db.1.85/test, the compile/link line is:
cc -O -I ../PORT/include rev.c -o rev
Once you have the executable, make sure it is on your command search path
so that the tests can find it.
FYI, here's the output of the tests:
Test 1: btree, hash: small key, small data pairs
Test 1: recno: small key, small data pairs
Test 2: btree, hash: small key, medium data pairs
Test 2: recno: small key, medium data pairs
Test 3: hash: small key, big data pairs
Test 3: btree: small key, big data pairs
page size 512
page size 16384
page size 65536
Test 3: recno: big data pairs
page size 512
page size 16384
page size 65536
Test 4: recno: random entries
Test 5: recno: reverse order entries
Test 6: recno: alternating order entries
Test 7: btree, recno: delete cursor record
Test 8: btree, hash: repeated small key, big data pairs
1 of 10
2 of 10
3 of 10
4 of 10
5 of 10
6 of 10
7 of 10
8 of 10 (comparison)
9 of 10
10 of 10
Test 9: btree: duplicate keys
Test 10: btree, recno: test cursor flag use
Test 11: recno: reverse order insert
Test 12: btree: lots of keys, small page size
Test 13: btree, hash: differing byte orders
Test 20: hash: bucketsize, fill factor; nelem 25000 cachesize 65536
bucketsize 256, fill factor 11
bucketsize 256, fill factor 14
bucketsize 256, fill factor 21
bucketsize 512, fill factor 21
bucketsize 512, fill factor 28
bucketsize 512, fill factor 43
bucketsize 1024, fill factor 43
bucketsize 1024, fill factor 57
bucketsize 1024, fill factor 85
bucketsize 2048, fill factor 85
bucketsize 2048, fill factor 114
bucketsize 2048, fill factor 171
bucketsize 4096, fill factor 171
bucketsize 4096, fill factor 228
bucketsize 4096, fill factor 341
bucketsize 8192, fill factor 341
bucketsize 8192, fill factor 455
bucketsize 8192, fill factor 683
If you continue to have trouble, let me know.
From ariel@yon.engr.sgi.com Mon Oct 23 14:10:02 1995
Received: from bsdi.BSDI.COM by python.bostic.com (8.6.9.Beta4/2.6)
id RAA01363; Mon, 23 Oct 1995 17:10:02 -0400
Received: from vangogh.CS.Berkeley.EDU (vangogh.CS.Berkeley.EDU [128.32.33.5]) by bsdi.BSDI.COM (8.6.12/8.6.12) with ESMTP id PAA13074 for <bostic@bsdi.com>; Mon, 23 Oct 1995 15:11:14 -0600
Received: from hofmann.CS.Berkeley.EDU (hofmann.CS.Berkeley.EDU [128.32.35.123]) by vangogh.CS.Berkeley.EDU (8.7.Beta.2/8.7.Beta.2) with SMTP id OAA00769 for <bostic@vangogh.CS.Berkeley.EDU>; Mon, 23 Oct 1995 14:08:55 -0700 (PDT)
Received: from sgi.sgi.com (SGI.COM [192.48.153.1]) by hofmann.CS.Berkeley.EDU (8.6.10/8.6.6.Beta11) with ESMTP id OAA12900 for <bostic@cs.berkeley.edu>; Mon, 23 Oct 1995 14:11:02 -0700
Received: from yon.engr.sgi.com by sgi.sgi.com via ESMTP (950405.SGI.8.6.12/910110.SGI)
for <@sgi.sgi.com:bostic@cs.berkeley.edu> id OAA21993; Mon, 23 Oct 1995 14:11:00 -0700
Received: by yon.engr.sgi.com (940816.SGI.8.6.9/940406.SGI.AUTO)
for bostic@cs.berkeley.edu id OAA00868; Mon, 23 Oct 1995 14:10:55 -0700
From: ariel@yon.engr.sgi.com (Ariel Faigon)
Message-Id: <199510232110.OAA00868@yon.engr.sgi.com>
Subject: db.1.85 patches for SGI Irix 6.2
To: bostic@cs.berkeley.edu
Date: Mon, 23 Oct 1995 14:10:53 -0700 (PDT)
Reply-To: ariel@engr.sgi.com
Organization: Silicon Graphics Inc.
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
Status: RO
[I'm now mailing from SGI, and I had a funny reverse alias name
in my previous mail, but I'm the same guy]
Hi Keith,
Your last mail was very helpful. I managed to compile db.1.85 and run
all tests successfully on both SGI IRIX 5.3 and IRIX 6.2 (Alpha)
Here are the patches/comments:
1) SGI IRIX doesn't have 'rev', since I didn't have the berkeley sources
handy, and ftp.uu.net was too loaded to let me in, I just replaced
'rev' with an inline perl script (perl comes standard with IRIX).
This is not so nice, I admit, but relying on 'rev' isn't either :-)
-------------------------------------
*** run.test.orig Thu Sep 1 15:04:44 1994
--- run.test Mon Oct 23 13:11:49 1995
***************
*** 16,21 ****
--- 16,23 ----
DICT=/usr/share/dict/words
elif [ -f /usr/dict/words ]; then
DICT=/usr/dict/words
+ elif [ -f /usr/share/lib/dict/words ]; then
+ DICT=/usr/share/lib/dict/words
else
echo 'run.test: no dictionary'
exit 1
***************
*** 537,543 ****
awk '{ for (i = 1; i < 20001; ++i) print $0 }' > $TMP1
for type in btree; do
rm -f $TMP2 $TMP3
! for i in `sed 20000q $DICT | rev`; do
echo p
echo k$i
echo d$mdata
--- 539,549 ----
awk '{ for (i = 1; i < 20001; ++i) print $0 }' > $TMP1
for type in btree; do
rm -f $TMP2 $TMP3
! for i in `sed 20000q $DICT | \
! perl -e 'while (<>) { \
! chop; \
! print STDOUT (scalar(reverse($_)),"\n"); \
! }'`; do
echo p
echo k$i
echo d$mdata
--------------------------------------------
2) IRIX 6.2 is POSIX (among other standards) compliant so 'strerror.o'
is not needed separately in the test/Makefile file.
Note: this is only for the irix.6.2 (5.3. aparently needs strerror.o)
*** test/Makefile.orig Sun Aug 28 08:42:52 1994
--- test/Makefile Mon Oct 23 13:27:56 1995
***************
*** 1,7 ****
# @(#)Makefile 8.15 (Berkeley) 7/28/94
PROG= dbtest
! OBJS= dbtest.o strerror.o
# Uncomment the STAT line get hash and btree statistical use info. This
# also forces ld to load the btree debug functions for use by gdb, which
--- 1,7 ----
# @(#)Makefile 8.15 (Berkeley) 7/28/94
PROG= dbtest
! OBJS= dbtest.o
# Uncomment the STAT line get hash and btree statistical use info. This
# also forces ld to load the btree debug functions for use by gdb, which
---------------------------------------------
3) In PORT/irix.[56].*/Makefile
I recommend replacing the arguments to 'ar' with 'rcs' (unlike
the original patch I sent you (which used 'cqs'). lorder, tsort, and
ranlib are not needed. Here is the relevant part:
${LIBDB}: ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC}
rm -f $@
ar rcs $@ ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC}
---------------------------------------------
That's all. Thanks again,
--Ariel http://www.yendor.com/