Debian Codegraph @

wdoc/performance.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>User Guide To getting the best performance with ACEDB</TITLE>
5
6 <LINK rel=stylesheet type="text/css"
7 href="./wdoc.css"
8 title="Style sheet for wdoc developer documents">
9
10 </HEAD>
11
12 <BODY>
13
14 <BLOCKQUOTE>
15 <DIV ALIGN=CENTER>
16 <IMG SRC="acedb-logo.gif" ALT="[ACEDB DOCUMENTATION]" align=middle>
17 <H3>
18 ACEDB Version 4_8
19 </H3>
20 </DIV>
21
22
23 <DIV ALIGN=CENTER>
24
25 <H1 align=center>
26 User Guide To getting the best performance with ACEDB
27 </H1>
28
29 <ADDRESS>Originally written by<BR>
30 Ed Griffiths &lt;[email protected]&gt, March 2000</ADDRESS>
31
32 </DIV>
33
34 <H2>Background</H2>
35
36 <P>
37
38 <PRE>
39
40 Subject: Re: how to make acedb fly
41
42 most important is to run the aceserver on a LOCAL disk
43 not nfs mounted and not on a RAID
44
45 actually LINUX gives impressive results because of its
46 excellent disk caching
47
48 =====
49
50 now aceperl is memory intensive and best is to run it on a
51 separate machine so you do not swap out aceserver
52 swapping bits of aceperl is ok, this just slws down some clients
53
54 ======
55
56 reading a big acefile is done in chuncks and should not too much degrade the
57 system
58
59 the worst case is some sort of queries
60
61 what i recommend for higehr performances is to index
62 as many tags as possible
63 my most recent code indexes all tags, that costs just a couple of Mb of ram
64 for the worm database and accelerates many requests
65
66 ====
67
68 no task is really cpu intensive, we are really io bound
69 so best is to have very fast disk, and a large ram, like 512 M
70 so the disks are really cached in ram
71
72 ====
73
74 i can send you the indexing fix for ace.4_7 if you wish
75 just 2 lines to edit in wnq/bindex.c than read-models
76
77
78 static void bIndexRegisterSecondaryTag(OBJ obj, int cc, BS bs, KEY masterTag)
79 {
80 if(!bs) return ;
81 if (bs->key == _UNIQUE)
82 { bIndexRegisterSecondaryTag(obj, cc, bs->right, masterTag) ; return ; }
83 if (bs->key == _XREF && bs->right)
84 { bIndexRegisterSecondaryTag(obj, cc, bs->right->right, masterTag) ; return ;}
85 if (class(bs->key) ||
86 bs->key < _Date)
87 return ; /* break on values */
88 if (bs->down)
89 bIndexRegisterSecondaryTag(obj, cc, bs->down, masterTag) ;
90 /* no condition, just index every tag */
91 masterTag = bs->key ;
92
93
94 the fix is to remove the if which used to condition the line
95 masterTag = bs->key ;
96
97
98 then read-models -index // forces reindexing
99 </PRE>
100
101
102 <HR>
103 <H3 ALIGN="CENTER">ACEDB Version 4_8</H3>
104
105
106 <HR>
107 <ADDRESS><a href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</a></ADDRESS>
108 <!-- hhmts start -->
109 Last modified: Tue Feb 6 13:21:35 GMT 2001
110 <!-- hhmts end -->
111
112 </BLOCKQUOTE>
113 </BODY>
114 </HTML>