Debian Codegraph @

whelp/wspec.html

raw
1 <head>
2 <title>The wspec directory</title>
3
4 <LINK rel=stylesheet type="text/css"
5 href="./whelp.css"
6 title="Style sheet for whelp documents">
7
8 </head>
9
10 <BODY>
11
12 <h2>The wspec directory</h2>
13
14 <P>Sadly this file is only just started, but at least its started.
15
16 <P>The intention is to document the various files in the wspec subdirectory
17 of an acedb database.
18
19
20 <h3>cachesize.wrm</h3>
21
22 <P>A user said (and Jean replied):
23
24 <pre>&gt; I have created a new acedb database from scratch using 4.9z code. When I
25 &gt; start it I get a popup: "The cache1 is full do you want write access"
26 &gt;
27 &gt; I'm guessing it's because I have 2 large sequence objects
28 &gt;
29 &gt; In cachesize.wrm I have:
30 &gt; CACHE1 = 4000
31 &gt; CACHE2 = 4000
32 &gt; DISK = 4000
33 &gt;
34 &gt; Presumably I can alter the above to fix this?
35 &gt;
36 &gt; 1) Is there a way of estimating what to set this to
37
38 well, if you get a warning, you may wish to increase
39 the values are in kb, so here you ask for
40 4M of cache 1 and cache 2
41 this is very little on todays computer
42
43 my own human genome config has
44 CACHE1 = 60000 // Size of first cache, as used in w5/blocksubs.c
45 CACHE2 = 100000 // Size of second cache, as used in w5/objcache.c
46
47 so 60M and 100M
48
49 If you are interested in understanding the gloomy details:
50 the minimal cache 1 size is
51 size of biggest obj, normally the ?Text disctionary and the size
52 of that is given in the graphic interface
53 main-acedb-window-&gt; admin button right mouse menu-&gt; program status
54 in that window : right mouse button -&gt; number of obj per class
55
56 plus about 1 kb per object you which to have in the cache
57 so at minimum 1000 * 1 k = 1M
58
59 but all this is really irrelevant,
60 just see how big your machine is a put at least 10 M 10 M
61 i do not know why you got so small numbers (4M/4M) to begin with
62
63
64 &gt; 2) Do I have to recompile and/or re-read the data
65
66 No,
67 in fact acedb adapts itself automatically
68 if the cache is smaller than the biggest object the cache is
69 simply doubled, the limit you give is an indication not a
70 hard limit
71
72 if the cache is full objects get deleted
73 however if they have been updated/modified, they should not
74 be deleted, so the program asks you to get write access so it
75 can save the changes
76
77 so my guess is that you got this message while changing the
78 data, is that correct ?
79
80
81 &gt; 3) If i have to re-read data will it dump correctly in it's current state
82
83 you do NOT need to dump reload
84
85 but if you did, the cache size would not prevent dumping.
86
87 By the way, if some day you get a disk error, those happen
88 sometimes on machines running over NFS on a heavy network
89 it is nearly guaranteed that you can still open the dabase
90 dump and reload. This works because acedb keeps shadow copies
91 of previous states of the database, so the dump normally does does not
92 need to access the corrupted block which is normally detected during a
93 write operation.
94
95 By the way again, acedb runs much faster (factor 3 to 10) off a local
96 disk relative to off an NFS mounted disk
97
98 &gt; 3) What are the consequences of doing nothing
99
100 you may get the warning often
101 but the largest effect is that too small a cache, and yours is very
102 small, just good for a demo database, slows the program because
103 there will be more disk access
104
105 please how did you inherit such a config
106 where did you get your wspec directory from ?
107
108 by the way also, i suppose you know that the same code may
109 work on several databases with totally different schemata
110 and cache sizes etc, each database has its own wspec config dir
111
112 </pre>
113
114 </BODY>
115 </HTML>