Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- post_install() {
- echo '--------------------------------------------------------------------------'
- echo' INTRODUCTION'
- echo
- echo 'e4rat reduces disk access times through physical file reallocation. It is based'
- echo 'on the online defragmentation ioctl EXT4_IOC_MOVE_EXT from the ext4 filesystem,'
- echo 'which was introduced in Linux Kernel 2.6.31. Therefore, other filesystem types'
- echo 'or earlier versions of extended filesystems are not supported.'
- echo
- echo 'e4rat consists of three binaries. The first is e4rat-collect. Its purpose is to'
- echo 'gather relevant files by monitoring file accesses during an application startup.'
- echo 'The generated file list is the fundament of the second step. With the second'
- echo 'step, e4rat-realloc, files are placed physically in a row on disk.'
- echo 'The reallocation of the files' content yields a higher disk transfer rate which'
- echo 'accelerates program start processes.'
- echo
- echo 'Third, you can also read-ahead files to gain a higher cache hit rate.'
- echo 'e4rat-preload transfers files into memory in parallel to program startup.'
- echo
- echo 'Because a file consists of file content and its I-Node information the'
- echo 'preloading process is divided into two steps. First, it reads the I-Nodes'
- echo 'information which are still spread over the entire filesystem. In the second'
- echo 'step, the files' content is read without causing any disk seeks.'
- echo
- echo 'For more information see: e4rat-collect(8), e4rat-realloc(8), e4rat-preload(8)'
- echo ' and e4rat.conf(5).'
- echo
- echo
- echo 'SAMPLE USAGE: Accelerate the boot process'
- echo '-------------'
- echo
- echo 'Run e4rat-collect as init process through adding following line to Kernel'
- echo 'parameters:'
- echo ' init=/usr/sbin/e4rat-collect'
- echo
- echo 'After e4rat-collect has terminated the generated file list is stored at:'
- echo ' /var/lib/e4rat/startup.log'
- echo
- echo 'Before reallocating boot files it is recommaned to switch to runlevel 1 to'
- echo 'stop most of all running proceses to gain write access to the process binary'
- echo 'file:'
- echo ' init 1'
- echo
- echo 'Reallocating boot files:'
- echo ' e4rat-realloc /var/lib/e4rat/startup.log'
- echo
- echo 'To start e4rat-preload as initial process append following to kernel your'
- echo 'parameters:'
- echo ' init=/usr/sbin/e4rat-preload'
- echo
- echo 'DEPENDENIES'
- echo '-----------'
- echo 'The e4rat toolset has the following external dependencies:'
- echo ' - Linux Kernel (>= 2.6.31)'
- echo ' - CMake (>= 2.6)'
- echo ' - pod2man'
- echo ' - Boost Library (>=1.41): You need the following components installed:'
- echo ' system, filesytem, regex, signals2'
- echo ' - Linux Audit Library (libaudit >=0.1.7)'
- echo ' - Block Device Identification Library (libblkid)'
- echo ' - Ext2 File System Utilities (e2fsprogs)'
- echo
- echo 'BUILDING'
- echo '--------'
- echo
- echo 'The build system is based on CMake, which will generate a Makefile.'
- echo 'To build the release version of e4rat run the following command:'
- echo ' cmake . -DCMAKE_BUILD_TYPE=release'
- echo ' make'
- echo
- echo 'The default behaviour of cmake is to install binaries and libraries to'
- echo '/usr/local. To use a different install prefix add the command line parameter to'
- echo 'cmake as follow:'
- echo ' cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release'
- echo
- echo 'Once you have successfully built the source code install e4rat as root:'
- echo ' make install'
- echo
- echo 'If you are running a Debian based Linux you can also install e4rat by'
- echo 'generating a Debian package:'
- echo ' make package'
- echo ' dpkg -i e4rat-<version>-<arch>-release.deb'
- echo
- echo
- echo 'AUTHORS'
- echo '-------'
- echo
- echo 'e4rat has been developed by Andreas Rid <conso@hs-augsburg.de> under the'
- echo 'guidance of Gundolf Kiefer <gundolf.kiefer@hs-augsburg.de> at'
- echo 'the University of Applied Sciences, Augsburg.'
- echo '--------------------------------------------------------------------------'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement