Memory allocation is important when you run isamchk
. isamchk
uses no more memory than you specify with the -O
options. If you are
going to use isamchk
on very large files, you should first decide how
much memory you want it to use. The default is to use only about 3M to fix
things. By using larger values, you can get isamchk
to operate
faster. For example, if you have more than 32M RAM, you could use options
such as these (in addition to any other options you might specify):
shell> isamchk -O sort=16M -O key=16M -O read=1M -O write=1M ...
Using -O sort=16M
should
probably be enough for most cases.
Be aware that isamchk
uses temporary files in TMPDIR
. If
TMPDIR
points to a memory file system, you may easily get out of
memory errors. If this happens, set TMPDIR
to point at some directory
with more space and restart isamchk