stasis-aries-wal/utilities
2012-12-04 18:17:23 -08:00
..
swig Remove hardcoded path from parser; tell automake not to bother with swig or parser 2008-09-28 07:35:20 +00:00
trace tell oink to instrument more functions 2011-03-25 20:01:30 +00:00
.cvsignore Added .cvsignore files. 2007-03-04 00:40:15 +00:00
check_compensations More error handling... 2005-02-22 03:10:54 +00:00
CMakeLists.txt add C utilities to CMake build system 2008-09-28 02:39:14 +00:00
cpp_no_inc Heuristic perl script to check for proper use of compensations. 2005-02-16 02:11:01 +00:00
delete_log bugfixes and optimizations for the new log format; log preallocation and truncation utilities 2011-05-14 03:49:38 +00:00
logfile_dump.c change declartions of fcn() to fcn(void) 2012-12-04 18:17:23 -08:00
Makefile.am do away with librw 2008-11-07 03:44:41 +00:00
preallocate_log bugfixes and optimizations for the new log format; log preallocation and truncation utilities 2011-05-14 03:49:38 +00:00
README.log bugfixes and optimizations for the new log format; log preallocation and truncation utilities 2011-05-14 03:49:38 +00:00
run_recovery.c remove compensations.h (This is a big change, and impacts lots of whitespace. I have left some indentation breakage in place in order to minimize the size of the diff) 2011-06-12 08:13:34 +00:00
truncate_log.c remove compensations.h (This is a big change, and impacts lots of whitespace. I have left some indentation breakage in place in order to minimize the size of the diff) 2011-06-12 08:13:34 +00:00

Stasis' default log implementation ("filePool") creates a directory
full of 64MB log "chunk" files.  Synchronously extending these files
one entry at a time is extremely expensive, as the filesystem must
repeatedly update its metadata.  The "preallocate_log" utility in this
directory creates a Stasis log directory, and fills it with some
number of empty log chunks.  It is safe to run this utility against an
existing Stasis log directory, but Stasis will not use the new chunks
until it is restarted.  Also, although it is safe to mix and match log
chunk sizes, Stasis will continue to use its compiled-in size, wasting
the end of overly large chunks, and incrementally extending undersized
ones.

preallocate_log usage:

The first parameter is an integer, and specifies the number of log
chunks to be created.  The second parameter is the name of the Stasis
log directory, and defaults to "stasis_log", the current default name.
The third parameter is the log chunk size, in the format extended by
dd's "bs" option (eg: 64MB, 1GB, and so on).

delete_log usage:

This script renames all of the files in a log directory so that they
end in "~".  This will cause Stasis to reuse the files, but ignore
their contents (which avoids the cost of re-creating them).