Ceci est la version HTML du fichier http://prdownloads.sourceforge.jp/lcat/19117/lcat_1.0.0_manual.pdf?use_mirror=osdn
Lorsque G o o g L E explore le Web, il cr? E automatiquement une version HTML des documents r? Cup? R? S
Pour cr? Er un lien avec cette page ou l'inclure dans vos favoris/signets, utilisez l'adresse suivante: http://www.google.com/search?q=cache:lgXnf3HgC2kJ:prdownloads.sourceforge.jp/lcat/19117/lcat_1.0.0_manual.pdf%3Fuse_mirror%3Dosdn+%22accelerated+knoppix%22++cloopoptimizer&hl=fr&gl=fr&ct=clnk&cd=3


Google n'est ni affili? Aux auteurs de cette page ni responsable de son contenu.

Page 1
First half of 2005
Open source software application building of infrastracture business
" Development " of speed improvement driver of CD/DVD starting Linux
Starting acceleration application manual
2006/2/28
Corporation alpha systems

Page 2

Page 3
Concerning copyright
Copyright (C) 2006 Alpha Systems Inc. All rights reserved.
As for this document, the corporation alpha systems have kept copyright. GNU Public
The License (the GPL) of on the basis, duplication and redistribution and correction are permitted. As for modification non- permission part,
It is this " concerning copyright " page.
When you did modification, please communicate as much as possible even in us. As for mostly modification, appropriate
If it is judged, it is the thing, with other modifications it is reflected on the original copy.
* UNIX is registered trade mark of the The Open Group.
* As for the Linux the Linus Torvalds person and the registered trade mark in American other countries or
It is trade mark.
* In addition as for system name, product name and the trade name which are picked up in this book, generally each development
Registered trade mark of the manufacturer / it is trade name.
* In in context, we do not clearly write the TM mark.
February 28th of 2006 first edition issue
Author: Corporation alpha systems
Issue: Corporation alpha systems
Printed IN Japan
As for this book there is no notice there are times when it is reformed improvement of the product depending upon in addition.
II

Page 4

Page 5
Renewal past record
Date
Renewal contents
2006. 02. 28
First edition
III

Page 6

Page 7
Terminology definition
Terminology
Meaning
Live CD
Are started with the CD or DVD one of the operating systems which
In this document can start the especially GNU/LINUX system those which
It points.
KNOPPIX
Kind of live CD. The German Klaus? Knopper person Debian?
The GNU/LINUX is developed in the base.
Compressed loop device
(Cloop)
Can handle the block device image which was compressed hypothetical Bu who
Lock device.
IV

Page 8

Page 9
Concerning inscription
* Like under you describe the appointment of the UNIX command input, in the framework.
Example)
* Like under you describe the example of file output, in the framework.
Example)
* You describe the example of starting option of the Linux, in the following kind of framework.
Example)
* The parenthesis which is bound is standardized to every element of the window.
Element of window
Inscription
Declared example
Button of window
< > So it binds
< Play > < Next >
Of pull-down menu and pop rise menus
Button
' ' With it binds
' File ' and ' View '
Selective button
<< >> With it binds
<< Select >>
* Like below you describe the operation of the mouse.
The left button depression
-> The left click
The left button with two continuations depression
-> The left double click
The right button depression
-> The right click
The right button with two continuations depression
-> The right double click
* When with operation of the window, it operates plurally, like below it has shown with itemization.
- It operates 1
- It operates 2
- It operates 3
# cloopprofiler
Boot: Kernel
Cloop device: 0
Total blocks: 36865
 
V

Page 10

Page 11
Table of contents
1.?概要..............................................................................................................1
1.1. ? Starting acceleration of live CD...........................................................................................1
1.1.1. ? Starting speed problem of live CD................................................................................1
1.1.2. ? Live CD starting acceleration technique................................................................................2
1.1.3. ? Flow of starting acceleration..............................................................................................4
1.2. ? Live CD starting acceleration tool kit " Live? CD? Acceleration? Tool? Kit (LCAT)".....5
1.3. ? Concerning this document.....................................................................................................5
2. ? For starting acceleration enviroment for software development..............................................................................6
2.1. ? Recommendation hardware.....................................................................................................6
2.2. ? The software which becomes necessary...........................................................................................6
3. ? Preparation of enviroment for software development............................................................................................7
3.1. ? Installation from deb package.........................................................................7
3.1.1.?lcat_1.0.0_i386.deb...........................................................................................7
3.1.2.?lcat?cloop?module?2.6.12_1.0.0_i386.deb.........................................................7
3.2. ? Installation from source archive.....................................................................8
4.?Live?CD?Acceleration?Tool?kit?(LCAT).......................................................9
4.1. ? LCAT の概 要.............................................................................................................9
4.2. ? Various utility commands..................................................................................10
4.2.1. ? Block reference circumstance profiler tool (cloopprofiler).....................................10
4.2.2. ? Image optimization tool ( cloopoptimizer ...........................................................21
4.2.3. ? Block reading program (cloopreadahead? Rblk2bl? Appblk2bl)..............22
4.3. ? Optimization image corresponding driver (cloop.ko)..................................................................24
4.4. ? The KNOPPIX starting script the patch for variously.....................................................26
5. ? Starting acceleration of KNOPPIX...........................................................................28
5.1. ? Introduction of optimization image corresponding cloop driver.............................................................29
5.2. ? Acquisition of the block reference circumstance data with starting with the profiling mode..............33
5.3. ? Analysis of block reference circumstance.........................................................................................34
5.4. ? Data block arrangement optimization of existing cloop image file....................................36
5.5. ? Compilation of pre-reading designated block list when starting............................................................36
5.6. ? Compilation of the iso image file which houses the optimization cloop image file................37
5.7. ? Acceleration of further starting................................................................................................37
6. ? Thanks............................................................................................................38
Vi

Page 12

Page 13
1. Summary
As for this document, first half of 2005 speed of open source software application building of infrastracture business " CD/DVD starting Linux
Development of the improvement driver " being similar, was developed the live CD starting acceleration tool kit " Live CD Acceleration Tool which
The case where acceleration of starting is applied the kit (the LCAT)" of making use, vis-a-vis the existing live CD with the manual which explains procedure
It does.
Here, accelerates summary of starting acceleration of the live CD, and starting of the live CD machine of the tool kit LCAT which
Talent is explained simply.
1.1. Starting acceleration of live CD
Here, summary of starting acceleration of the live CD is explained.
1.1.1. Starting speed problem of live CD
As for the live CD it can start the system set of the OS from one CD-ROM or the DVD-ROM.
The CD media thing and the media itself whose mass production is possible cheaply read and it is exclusive use and even high robust characteristic っ
The て it is. In addition, we have possessed relatively powerful device detection function in the system, it utilizes with most PC with the fact that
It comes. To utilize these features, as for the live CD the supplement of utilization in education field and system recovery and the magazine of emergency, test
Diversity such as distribution of the offering/accompanying edition software it crosses and is utilized.
But, as for the live CD in order from the optical type media which assumes seeking is slow, to start, in the usual HD in Stowe
When it compares with the PC which utilizes the OS which Lu is done, in a state where starting time very much is long, as for the user can utilize the PC as the instrument
Until it becomes, it is necessary to wait. Therefore, the live CD the frequency which is utilized as the usual OS to be low, the OS for the emergency
When it is used as large portion is occupied.
As for the cause starting the live CD being slow separately there is two largely. As for one, those which originate in the CD read-out when starting,
And depending being something which exists in the starting sequence which includes the automatic detection processing and the like of the peripheral device it does one more. Below this two
The point is collected.
Read-out of CD
With the live CD, the file which becomes necessary for starting the system everything is read out from the CD-ROM. CD-ROM
Read-out correspondence and the like at high speed there is also a product which has been praised in drive. But, to the last at the time of continual read-out
So it is inscription at instantaneous full speed, under the usage condition which refers to the various files such as starting the system maximum of
Almost there are no times when it takes part in benefit of speed. Especially, it occurs with random access of the file seeking the pickup which
By comparison with the storage of the HD and the like is made very slow, mean access time to the data which we would like to read out long,
It has become with one of the る primary factor.
Starting sequence
With the live CD the peripheral device which can be used with the Linux, the hand of the user can be troubled with automatic detection * automatic setting is dense
With it is not and becomes active state. Processing of this automatic detection * setting to be done in the starting sequence of the system, ま
It does, but, with present mounting the Linux corresponding equipment being to process in order one each, it is not efficient. In addition,
In the starting sequence, the processing which is read out from the CD-ROM media in the point in time when the data becomes necessary action
It increases. Because of that, when the I/O request where process issues congests, seeking the pickup to increase, after all the I/O 待
State of the ち continues long, becomes to require time for processing of the starting sequence.
1

Page 14
1.1.2. Live CD starting acceleration technique
Here, unintentionally in the respective solution concerning two points which are the primary factor regarding the starting time of the live CD which is listed in the foregoing paragraph,
The て it explains.
Optimization of file system image
As a solution of CD reading out problem of the live CD, file system image of the live CD is optimized. ラ
Random access generates the line of data block of file system image of eve CD, as little as possible
The way it arranges. This continuing in the order which is read, by the fact that it arranges, sea of the pickup of CD-ROM drive
ク time is decreased. At a stroke from the CD-ROM where because of this, optimization of file system image was done
It reaches the point where it can transfer the data which it needs.
Being something which shows the summary of optimization of file system image it does figure 1. With " block reference profiler " ラ
Profiling it does file system image of eve CD how is read when starting.
On the basis of the data of the profiling which is obtained with the " image optimization tool " data in the cloop image file
It lines up into the order which reads out block and changes. Line was changed as for optimization file system image フ ァ I
The Lu format part being to differ, it reads out making use of the " optimization image corresponding driver ".
2
Figure 1: Summary of file system image optimization technique

Page 15
Optimization of starting sequence
With the starting sequence detection of the peripheral device is converted in parallel as a solution of serial processing problem. With this, system
It means to start quickly. In addition, pre-reading the data which becomes necessary in the starting sequence beforehand, in cash storing
The め て by the fact that you put, competition of I/O demand for the CD-ROM drive in the time of each process starting can be decreased. This day
Simultaneously with タ pre-reading detection of the peripheral device executes the starting sequence in parallel, in the time of starting efficiency of the resource utilization which
Conversion is assured.
Being something which shows the summary of starting sequence optimization technique it does figure 2. Simultaneously with starting, データブロッ the inside CD-ROM
While starting pre-reading the ク, lining up, it processes the starting sequence and advances the detection of the peripheral device. In addition, applique -
By the fact that it pre-reads also the data which becomes necessary for Shaun's starting, it can shorten also the starting time of application. In addition,
On the basis of these ideas, it takes a second look the starting sequence and total optimization.
3
Figure 2: Summary of starting sequence optimization technique

Page 16
1.1.3. Flow of starting acceleration
The flow which does the starting acceleration of the live CD becomes like below.
I. Introduces the optimization image corresponding driver compilation of the ISO image which
II. Analysis of block reference circumstance
III. Block arrangement optimization
IV. Compilation of starting acceleration ISO image
Being something which shows the concrete flow when starting acceleration is administered to the KNOPPIX making use of the LCAT it does figure 3. In figure, arrival
The part which color is done, becomes the part where it modifies with starting acceleration.
Figure 3: Flow of live CD starting acceleration
4
Starting acceleration
KNOPPIX
For profile acquisition
KNOPPIX
KNOPPIX
In addition
Cloop?
Readahead
Modules/
Cloop.ko
Linuxrc
Optimization image corresponding driver
Reorganization of starting script
Block pre-reading program
Block reference circumstance analysis
Image optimization
In addition
Block reference circumstance
* System when starting
* Application when starting
Minirt.gz
Cloop
In addition
Cloop?
Readahead
Modules/
Cloop.ko
Linuxrc
Minirt.gz
Optimization being completed
Cloop
Modules/
Cloop.ko
Linuxrc
Minirt.gz
Cloop

Page 17
1.2. Live CD starting acceleration tool kit " Live CD Acceleration Tool kit (LCAT)"
The LCAT is the tool kit which is mounted in order to apply the starting acceleration technique of the live CD which is expressed so far.
As for the LCAT the live CD of the KNOPPIX and the like has adopted イメージファ of the compressed loop back block device cloop which
It is possible to optimize I Lu's block arrangement. In addition, inside package of LCAT starting シーケン of KNOPPIX
The starting script which optimizes the ス is done bundled. To apply the tool inside the LCAT to the cloop image file, starting
By replacing the starting script inside the initrd which is the temporary route file system of business, starting high the live CD
Fast conversion can be actualized.
1.3. Concerning this document
As for this document, first half of 2005 speed of open source software application building of infrastracture business " CD/DVD starting Linux
Making use of the live CD starting acceleration tool kit LCAT which is the result of development of the improvement driver ", starting high the live CD
Being something which explains the method of doing fast conversion, it does.
This document supposed that it utilizes the occasion where the live CD developer applies starting acceleration to the KNOPPIX derivative
It does with the thing. As for the live CD developer this document and each README file which was recorded inside the package of the LCAT in reference
It is possible to do the starting acceleration of the KNOPPIX derivative by the fact that it does. In addition, live CD other than KNOPPIX starting
It is possible even with when it deals with of acceleration to apply this technique.
5

Page 18
2. For starting acceleration enviroment for software development
Here, the hardware of the enviroment for software development which is recommended the occasion where starting acceleration of the CD edition KNOPPIX is done making use of the LCAT and
It explains the び, concerning the software which becomes necessary.
2.1. Recommendation hardware
Recommendation environment in order to develop smoothly making use of the LCAT is shown in chart 1.
Chart 1: Recommendation hardware requirement
CPU
PC/AT compatible machine (i386), clock frequency above 1gHz
Memory
Above 512MB
Storage region
Above 10GB
CD drive
CD of 24 time speeds or more? R drive
When efficiency of the hardware is not sufficient, it reaches the point where you can see somewhat delay in behavior of the program.
2.2. The software which becomes necessary
The program which is included in the LCAT everything the software which becomes necessary by those where it operates is shown in chart 2.
Chart 2: Is necessary for the LCAT the software summary which
OS
The after the Linux kernel 2.6.12 (necessity the after the 2.6)
Necessary library
Libc6 and development package libc6? Dev (the after the 2.3.2)
Gtk2.0 and development package libgtk2.0? Dev (the after the 2.4)
Glib2.0 and development package libglib2.0? Dev (the after the 2.0)
The LCAT has done operation verification with environment below.
* KNOPPIX4.0.2DVD edition (knoppixc4.0.2dvd_20050923-20051006+IPAFont.iso)
* KNOPPIX4.0.2DVD edition HD installation
* Debian GNU/LINUX Sarge 3.1
* Fedora the Core 4 (the kernel module you exclude)
6

Page 19
3. Preparation of enviroment for software development
Here, it explains concerning the installation of the LCAT. The method of introducing the deb package, the そ it does in installation,
There are two kinds of method of compiling from the て source.
3.1. Installation from deb package
The deb package of the LCAT has consisted from the next two packages.
* Lcat_1.0.0_i386.deb
* Lcat-cloop-module-2.6.12_1.0.0_i386.deb
The utility program is recorded in the lcat_1.0.0_i386.deb. And lcat-cloop-module-
The optimization image corresponding cloop driver (kernel module) is recorded in the 2.6.12_1.0.0_i386.deb.
With the gcc3.3, it constructs this kernel module, to the one for kernel2.6.12. Other than this kernel optimization イメー
When the G corresponding cloop driver is utilized, it is necessary under the environment which conforms to construct from the source. Below that
Installation method of the package of the れ is explained.
3.1.1. Lcat_1.0.0_i386.deb
It is the package of the utility program of the LCAT. In this package optimization image corresponding cloop dry
Kernel module of the バ is not included. In installation, command below is executed with root authority.
3.1.2. Lcat-cloop-module-2.6.12_1.0.0_i386.deb
It is the package of kernel module of the optimization image corresponding cloop driver. Before this package introducing, pas ッ k
When G cloop-module is installed, collision of the package occurs. In this case, package
Un please install the cloop-module. In installation, command below is executed with root authority.
When installation it does from the deb package, as for the utility of the LCAT in " the /usr/local/bin/ ", optimization イメー
The G corresponding cloop driver is arranged in " the /lib/modules/2.6.12/kernel/drivers/block/ ".
7
# dpkg -i lcat-1.0.0_i386.deb
# dpkg -i lcat-cloop-module-2.6.12_1.0.0_i386.deb

Page 20
3.2. Installation from source archive
At the directory subordinate for job the source archive lcat_1.0.tar.gz is developed. Was drawn up the directory which
To ". it moves the /lcat_1.0, " compiles. Command below is executed in compiling.
As for configure command, argument " --prefix= " is taken. By the fact that this argument is appointed optional ディレ
The utility of the LCAT can be installed to the クトリ. Ahead installing the default, with " /usr/local/bin/ "
It does.
In installation, command below is executed with root authority.
The utility and kernel module of the LCAT are installed by the fact that the " make install " is executed.
When only the utility it installs, after moving the current directory to " the lcat_1.0/util ",
Please execute the " make install ". As for kernel module of optimization image corresponding cloop driver,
It is drawn up as " lcat_1.0/cloop-2.02-opt/cloop.ko ".
8
$ tar xvfz. /lcat_1.0.tar.gz
$ cd. /lcat_1.0
$. /configure
$ make
# make install

Page 21
4. Live CD Acceleration Tool kit (LCAT)
Here, summary of live CD starting acceleration tool kit LCAT, optimization image corresponding cloop driver, and each
It explains concerning the kind utility.
4.1. Summary of LCAT
Various utilities which form the LCAT, the driver, various scripts and the function are shown below.
Block reference circumstance profiler tool (cloopprofiler)
On the basis of the block reference circumstance data file which can by profiling mode, reference circumstance of block ア
It is the tool which is visualized with the ニメーション.
Image optimization tool (cloopoptimizer
On the basis of the block reference circumstance data file, it is the tool which rearranges the data block which is in the midst of cloop representing.
Block reading program (cloopreadahead, rblk2bl and appblk2bl)
It reads the cloopreadahead, on the basis of the block designated list, データブロッ in the optimization cloop image file
It is the program which reads the ク. In addition, the rblk2bl and the appblk2bl read from the block reference circumstance data file, Bu
It is the program which draws up the lock designated list.
Optimization image corresponding cloop driver (cloop.ko)
As for the cloop image file which rearranges data block with the image optimization tool, existing cloop イメー
The G file and the part format differ. It corresponded to this format, it is the compressed loop device driver. ま
It is, it is profiling mode, there is also a function which keeps the reference circumstance of data block.
The KNOPPIX starting script for variously the patch
Attendant upon starting acceleration, processing of the starting sequence was rearranged. As for these, at the time of system starting temporary Lu who is referred to -
By the fact that it houses in the To file system initrd at the time of system starting it is replaced and is optimized the existing script the happening which
The dynamic sequence can be applied. In addition, planned the non- synchronization of peripheral device detection, adjusted the device recognition program which
Also the hwsetup and the kudzu bundled are done in the LCAT.
9

Page 22
4.2. Various utility commands
Here, it explains concerning various utilities which form the LCAT.
4.2.1. Block reference circumstance profiler tool (cloopprofiler)
Summary
As for the cloopprofiler, it is the tool which visualizes the block reference circumstance in the cloop image file. Cloopprofiler
At the time of system starting and to visualize the block reference circumstance at the time of application starting, with block of the stain coming, block reading
It puts out and animation indicates circumstance. In addition, it mentions later such as cloopoptimizer and rblk2bl and the appblk2bl which
Other than the LCAT it is equal to the command line utility with, as a starting acceleration wizard of the live CD utilization
It is possible.
When the cloopprofiler is started, the window in figure 4 is indicated.
10
Figure 4: Cloopprofiler main window

Page 23
It is the block territory where half on the picture indicates the block arrangement of the cloop. When block reference circumstance is played back, this Bu Ro ッ
While the ク drawing territory to do animation, it changes.
The cloopprofiler separately largely, block reference circumstance visualization function and live CD starting acceleration functional two functions
It has.
Block reference circumstance visible yes function
The animation indication with the block ID of block reference circumstance.
The animation indication with the block offset value of block reference circumstance.
Header information indication of cloop image file.
Control of playback, halt, fast forward and rewind et cetera of animation.
Color classification of block indication at the time when it requires for block read-out.
Color classification of block indication at block read-out frequency.
Data quantity of drawing block / resolution modification of block count.
Details indication of the data block by the pop rise window in the block drawing territory.
List indication of block reference circumstance.
It is due to the element selection of above-mentioned list indication, emphasis indication of the block drawing territory.
Playback time modification of the block reference circumstance animation by the slider.
Live CD starting acceleration function
It depends on cloop image optimization wizard, compilation of the optimization cloop image file.
It depends on pre-reading designated block list compilation wizard, compilation of the pre-reading designated block list.
Block reference circumstance day optimization image corresponding cloop driver starting with profiling mode
Initialization of タ.
11

Page 24
Usage
It starts the cloopoptimizer, in command below.
Main use method of the cloopprofiler is explained.
With the block ID of block reference circumstance the animation indication
The menu bar ' File ' -> ' the Open read_blocks ' to select, (figure 5), at file dialogue block reference circumstance day
When the タファイル is opened, it becomes a state where block reference circumstance can be visualized with drawing mode with the block ID.
It controls animation with the button and the slider of window sublevel, (figure 6).
With the offset position of block reference circumstance the animation indication
After opening the block reference circumstance data file, the menu bar ' File ' -> ' the Open CLOOP ' to select, (figure 7), ファイ
When at Lu dialogue the cloop image file is opened, block reference circumstance with drawing mode at offset position visualization
It becomes a state where it is achieved.
12
$ cloopprofiler
Figure 5: ' Open read_blocks ' selection
Figure 6: ' Cloopprofiler ' animation control button
Figure 7: ' Open CLOOP ' selection

Page 25
Block ID of block reference circumstance / as for drawing mode change at offset position, menu bar ' View ' -> ' draw
The resource ' ' the read blocks log ', ' the cloop header ' with it does, (figure 8).
Optimization of cloop image
The menu bar ' Tools ' -> ' the Accelerate Wizard ' to select the image optimization of the cloop, (figure 9), Cloop
Optimize Wizard dialogue (figure 10) you open.
In cloop image optimization wizard dialogue, in " Block List " pre-reading designated block list file,
It appoints ahead retaining the optimization cloop image file to the " Optimized Cloop ", < Next > By the fact that the button is pushed down most
Suitable conversion is executed.
13
Figure 8: ' Draw resource ' selection
Figure 9: ' Accelerate Wizard ' selection

Page 26
Menu bar summary
Here, it explains concerning the menu bar of the cloopprofiler.
' File ' menu
' The File ' menu (figure 11) with, appoints the block reference circumstance data file and the cloop image file the diamond which
It can open the log.
' Open read_blocks '
The dialogue which appoints the block reference circumstance data file is opened. ' Open CLOOP ' menu selection
Before, corresponds to the cloop image file which first becomes the object of visualization with this menu the block reference circumstance which
It is necessary to appoint the data file.
As for the block reference circumstance data file which can be appointed with this menu, optimization image opposite after the LCAT1.0
14
Figure 10: ' Cloop Optimize Wizard ' dialogue
Figure 11: ' File ' menu

Page 27
Is just the block reference circumstance data file which is outputted from the application/response cloop driver.
' Open CLOOP '
The dialogue which appoints the cloop image file is opened. In appointing the cloop image file
Depending, the menu bar ' View ' -> ' it reaches the point where it can select draw resource ' empty block indicatory mode ま
It does. In addition in the same way, the menu bar ' Tools ' -> ' the Accelerate Wizard ' it to reach the point where it can do selection, cloop イメー
It reaches the point where G optimization wizard dialogue can be executed.
When the cloop image file which it visualizes is modified, becomes the object of the cloop image file which
It is necessary re-to appoint the block reference circumstance data file.
' Quit '
It ends this application.
' View ' menu
' The View ' menu adjusts the indication of block reference circumstance.
' Draw resource ' container
It changes block reference circumstance drawing mode, (figure 8).
' Read_blocks log '
Drawing of block reference circumstance, could be obtained from the block reference circumstance data, it draws making use of the block ID
It is る mode.
' Cloop header '
Drawing of block reference circumstance, on the basis of header information of cloop image file, offset of block
It is the mode which is drawn making use of position.
' Block color ' container
Method of attaching the color of drawing block is modified. Because of this, are referred to frequently data block and the read-out which
It can distinguish the data block which requires time at the glance, (figure 13).
' Read time '
At the time when it requires for reading, dividing the color of the drawing territory of block, it is the mode which it draws. In reading main point
The time when it does about is long, color becomes deep.
' Read count '
At reading frequency, dividing the color of the drawing territory of block, it is the mode which it draws. Frequency of reading multi
About it is and, color becomes deep.
' Time/count '
The territory of drawing block to divide into half with the diagonal, the triangular part above ' read time ' mode, triangular section under
Amount is drawn ' with read count ' mode.
' Count/time '
15

Page 28
The drawing territory of drawing block to divide into half with the diagonal, the triangular part above ' read count ' mode, under
The triangular part is drawn ' with read time ' mode.
' Tools ' menu
' With the Tools ' menu, it uses with starting acceleration of the live CD, cloop image optimization wizard and pre-reading appointment
It starts block list compilation wizard, (figure 14). As for these, the cloop image file is appointed the place where
It can select only combination.
' Accelerate Wizard '
On the basis of the block reference circumstance data file which you open, is opened block distribution of the cloop image file which
The wizard which draws up the position optimization and pre-reading designated block list is started.
' Make readahead list '
Pre-reading designated block list compilation wizard is started.
' Optimize Cloop '
Cloop image optimization wizard is started.
' Help ' menu (figure 15)
' Info '
Information of this program is indicated.
16
Figure 13: ' Tools ' menu
Figure 12: ' Block color ' container

Page 29
Interface summary
Here, it explains concerning the function of each interface. As for arrangement of the main button please refer to figure 6.
< > > ( < || > Button
When being in a state where the block reference circumstance data file has been opened, block reference circumstance with animation playback
It does. The inside of playing back the animation becomes the halt button.
< * > Button
Playback of animation is stopped, the time counter is reset to initial value.
< >> > Button
Playback of animation is advanced.
< << > Button
Playback of animation is rewound.
Block drawing territory
It is the territory where animation of block reference circumstance is drawn. In animation, presently has been read the ブロッ which
The ク is indicated, being surrounded with the blue framework. The data block which drawing being completed block (is plugged, is referred to) in the territory マウ
By the fact that it moves the スポインタ, the right it clicks, details of the data block which is suitable to the territory of the drawing block ポッ
The プアップ doing, it indicates.
Time progress slider
The slider which is indicated under the truth of the block drawing territory shows the advancing condition of playback time. Toggle ドラッ
By the fact that the グ it does, playback time can be modified.
< Block/Cell > Selective button
The data quantity which is included in one drawing block is modified. With the indicatory mode due to the block ID block count, オ
With the drawing mode due to フセット position data size of block (power bytes in selective value of 2), in one drawing block
It reaches the data quantity which confronts. After the modifying the data quantity, < > > ( < || > Button, < * > Button, < Change > The button is pushed down
It is reflected on the block drawing territory due to especially. Stop of animation is accompanied to modification of this data quantity.
' Draw Color ' pull-down list (figure 16)
17
Figure 14: ' Help ' menu

Page 30
The menu bar ' View ' -> ' the draw color ' with it is similar function.
' Statistical Analysis ' list
From the block reference circumstance data file, the statistical analysis result is indicated.
' Block Data ' list
Block reference circumstance the list is indicated in reference order. By the fact that the list is clicked, in the data block which corresponds phase
This drawing block of the block drawing territory which is done is emphasized is indicated.
18
Figure 15: ' Draw Color ' pull-down list
Figure 17: ' Indication of Block Data ' list
Figure 16: ' Indication of Statistical Analysis ' list

Page 31
' Is started from the Tools ' menu the wizard summary which
Here, it explains ' concerning each wizard which is started from the Tools ' menu.
' Accelerate Wizard '
' The Accelerate Wizard ' by the fact that it selects, Cloop Optimize Wizard dialogue (figure 10) it indicates.
Presently you open this Cloop Optimized Wizard, on the basis of the block reference circumstance yes data file, presently opening
It optimizes the cloop image file which is. With the processing of optimization, optimization being completed cloop image
The file and the pre-reading designated block list are formed. Interface of Cloop Optimize Wizard dialogue
It collects below concerning
Read_blocks
Pass of the block reference circumstance data file which presently is opened is indicated.
Cloop image
Pass of the cloop image file which presently is opened is indicated.
Block List
It appoints ahead outputting the pre-reading designated block list.
Burst size
Size of the data which the case of data block pre-reading is read with the request of 1 time, at the kilobyte unit appointment
It does.
Optimized Cloop
It appoints ahead outputting the cloop image file which it optimizes.
' Make readahead list '
' The Make readahead list ' by the fact that it selects, Create Block List Wizard dialogue (figure 19) indicatory stripe
It does. As for Create Block List Wizard, from optional block reference circumstance data file, pre-reading block list
It draws up. This does the operation which is similar to the LCAT utility command rblk2bl. Create Block List
Concerning the interface of Wizard dialogue, it collects below.
Input File
The block reference circumstance data file which it inputs is appointed.
Output File
The pre-reading designated block list which it outputs is appointed.
Burst block
Size of the data which the case of data block pre-reading is read with the request of 1 time, at the kilobyte unit appointment
It does.
19

Page 32
' Optimize Cloop '
' The Optimize Cloop ' by the fact that it selects, Optimized Cloop Image Wizard dialogue (figure 20) it indicates,
It increases. As for Optimized Cloop Image Wizard, block arrangement of optional cloop image file, optional Bu
It optimizes on the basis of the lock reference circumstance data file. In of Optimized Cloop Image Wizard dialogue
Concerning the タフェース, it collects to writing.
Input Cloop
The cloop image file which becomes the object of optimization is appointed.
Input Block List
The block reference circumstance data file of the cloop image file which becomes the object of optimization is appointed.
Output Cloop
Is outputted the cloop image file which is optimized is appointed.
Butst block
Size of the data which the case of data block pre-reading is read with the request of 1 time, at the kilobyte unit appointment
It does.
20
Figure 18: Make readahead list dialogue
Figure 19: Optimized Cloop Image Wizard dialogue

Page 33
4.2.2. Image optimization tool (cloopoptimizer
Summary
As for cloopoptimizer, from cloop image file of existing format cloop イメージファ of optimization format
I Lu is drawn up. As for the optimization cloop image file which was drawn up with the cloopoptimizer, is included in the LCAT the optimization I which
It reads from only the メージ corresponding cloop driver and becomes possible.
The cloop image file which can be handled with the cloopoptimizer is corresponding after the V2.0 of the existing format. That
You cannot use the cloop image file of version of the time before.
Usage
The cloopoptimizer takes the argument below.
Pass of the cloop which it optimizes , the block reference circumstance data file when booting
Block reference data>, block reference circumstance data file of application
It appoints to the data>. is abbreviation possible.
The result of the cloopoptimizer is outputted by standard output, progress circumstance is outputted to standard error output.
Execution example of the cloopoptimizer is shown in figure 19. With execution example, profiling mode (5.2 " profiling Mho
Acquisition of the block reference circumstance data with starting with the ド " reference) with on the KNOPPIX which is started, the cloopoptimizer actual
Line it has done.
21
$ cloopoptimizer
Data> [ ]
Figure 20: Execution example of cloopoptimizer
$ cloopoptimizer /cdrom/KNOPPIX/KNOPPIX /proc/cloop/read_blocks >
/KNOPPIX.opt
Block_size = 65536
Num_blocks = 29859
Header write.
Start_offset = 477896
Opt_blk_info_sum = 721645729, (704732KB)
Block info table write.
Block data write.
00001/29859: 0.000%, optidxno=00001, optidxsize=30220, write=30220
00002/29859: 0.003%, optidxno=00002, optidxsize=30491, write=30491
00003/29859: 0.007%, optidxno=00003, optidxsize=32705, write=32705
00004/29859: 0.010%, optidxno=00486, optidxsize=10347, write=10347
00005/29859: 0.013%, optidxno=00487, optidxsize=9412, write=9412
00006/29859: 0.017%, optidxno=00488, optidxsize=10374, write=10374
:

Page 34
4.2.3. Block reading program (cloopreadahead, rblk2bl and appblk2bl)
Cloopreadahead
Summary
As for cloopreadahead, on the basis of pre-reading designated block list, data block in optimization cloop image file
It is the program which it reads. As for the data of the block which is read, virtual storage subsystem of the kernel manages the ペー which
It is stored to G cash. The case of system starting of live CD, in temporary route file system initrd for starting
It is possible to shorten the I/O waiting of the process which is formed in the starting sequence by calling.
This program is optimization cloop image file exclusive use.
Usage
The cloopreadahead takes the argument below.
Pass to optimization cloop image file , pre-reading designated block list
It appoints to the list file>.
The cloopreadahead outputs block number of the cloop block which is read to standard output.
Rblk2bl
Summary
It could by the optimization image corresponding cloop driver which is operational with profiling mode, block reference condition
The circumstances data file, at the time of system starting to the pre-reading designated block list which refers to being the cloopreadahead is converted the professional who
It is gram.
Usage
The rblk2bl takes the argument below.
Block reference circumstance data file , size of reading unit finger
Fixed it does. This value the case where block is read with the cloopreadahead to reach grain size, be too large and be too small starting high
It seems that becomes the harmful influence of fast conversion. With default the 262144b (the 256KB) with it has become.
The rblk2bl outputs the pre-reading designated block list to standard output. The rblk2bl outputs the pre-reading designated block lith which
To's example, is shown in figure 20.
22
$ rblk2bl [ ]
$ cloopreadahead

Page 35
Appblk2bl
Summary
It could by the optimization image corresponding cloop driver which is operational with profiling mode, block reference condition
The circumstances data file, before the application starting to the pre-reading designated block list which refers to being the cloopreadahead conversion
It is the program which it does.
Usage
The appblk2bl takes the argument below.
Block reference circumstance data file at time of system starting , rhinoceros of reading unit
and application starting
It appoints to the reference data>. Be able to appoint the block reference circumstance data file at the time of plural application starting,
It increases.
The appblk2bl outputs the pre-reading designated block list to standard output. As for output format of appblk2bl,
It is identical with the rblk2bl.
23
$ appblk2bl
...
Figure 21: Example of pre-reading designated block list
# burst_size = 262144 (256 KB)
Burst_start
0
32
34816
36352
4096
4480
20480
20992
12288
12928
22528
23296
16384
17408
24576
26112
# block = 17, size = 262346
Burst_end
Burst_start
26624
28160

Page 36
4.3. Optimization image corresponding driver (cloop.ko)
Summary
As for optimization cloop image file for position information retention of data block, existing cloop image file
The part file format differs. Corresponds to this format the cloop driver which, optimization image correspondence
It is the driver. In addition, becomes necessary for rearranging the data block, keeps the block reference circumstance data the function which pursuit
Adding it is done.
By installing in the temporary route file system initrd which is used the occasion where the live CD starts this driver,
It mentions later starting and the existing cloop image file and optimization being completed cloop image file with the profiling mode which
It reaches the point where it can handle as the route file system device.
Usage
This optimization image corresponding driver is offered kernel module doing. Module parameter below
The り it increases.
When loading the module pass of the file which sets as device image , block going/participating
The maximum value which keeps the illuminating circumstance data is appointed to . When this value is 0 or more, optimization image corresponding gong
The イバ operates with profiling mode. The procfs is utilized in interface of block reference circumstance.
As for the next execution example, after the LCAT compiling from the source, cloop image file
With the setting which appoints " the /cdrom/KNOPPIX/KNOPPIX ", 10,000 blocks keeps the block reference circumstance data
It has loaded.
When module parameter " chkblks " is appointed, the directory of the cloop to be drawn up by " the /proc " subordinate, ま
It does. The file of this directory subordinate, is collected below.
/proc/cloop/read_blocks
By the fact that this file is read out, block reference circumstance can be acquired. Example of block reference circumstance in figure 23
It shows. This file and it is read-only.
/proc/cloop/reset_read_blocks
By the fact that you write to this file, the block reference circumstance which has been kept is cleared. As for this file, root
It can write in with only authority.
/proc/cloop/reset_profile
By the fact that you write to this file, the statistical data of the block reference circumstance which has been kept is cleared. This
It can write in the file, with only root authority.
24
# insmod cloop.ko file=
Chkblks=
# insmod. /cloop-2.0.2-opt/cloop.ko \
File=/cdrom/KNOPPIX/KNOPPIX \
Chkblks=10000

Page 37
In reset of block reference circumstance data " /proc/cloop/read_blocks ", command below with root authority execution stripe
It does.
25
# echo 1 > /proc/cloop/reset_read_blocks
Figure 22: Example of block reference circumstance /proc/cloop/read_blocks
Cloop device: 0
# cloop device ID
Total blocks: 36865
# entire cloop block count
File format
Optimized
# optimization it is completed, / existing format
Now jiffies
35549.0288
Uptime at time of # acquisition
Cloop kernel thread mode.
With # thread mode starting
----------------------------------------------------------------------
Call cloop_request
135551 times
# cloop reading request several
Call load_buffer ()
485448 times
# load_buffer () call several
Call read_from_file (): 42441 times
# read_from_file () call several
Read_time_max
0.0039 Ms
# maximum reading time
Read_time_min
0.0000 Ms
# smallest reading time
Read_time_sum
12.0818 Ms
The # entire it reads, time
Read length sum
820170874 bytes
The # entire it reads, size
Extract_time_max
0.0009 Ms
# maximum extension time
Extract_time_min
0.0000 Ms
# smallest extension time
Extract_time_sum
21.0215 Ms
# entire extension time
Extract length sum
2781413376 bytes
After the # entire extending size
----------------------------------------------------------------------
No
Blknum
Size
Access
Read
Extract
----------------------------------------------------------------------
0
0
5435
25113.0688
0.0000
0.0001
1
32
26021
25137.0298
0.0001
0.0000
2
33
28640
25139.0024
0.0058
0.0002
# No
->
Reading ID
# blknum
->
Block ID
# size
->
Block size
# access
->
Jiffies when accessing
# read
->
It requires for reading the time when
# extract
->
It requires for the extension of block the time when

Page 38
4.4. The KNOPPIX starting script the patch for variously
Summary
In starting acceleration of live CD, other than data block arrangement optimization of cloop image one more, peripheral detection and the like
There is optimization of the starting sequence which it includes. In case of the KNOPPIX, is executed with starting the system each スクリプトファイ which
Lu is housed in the file system in regard to all cloop images excluding the linuxrc. With this, test to acceleration
The process which draws up cloop image in degree of line occurs, Labor effectiveness decreases. Then, early step of starting the system
The processing which replaces each script file which executes the processing of the starting sequence has been added to the floor. In addition, each スクリ
Part it has modified also the command which is called from the プト.
The script summary which adds modification (starting order)
Here, it explains concerning the file which adds modification attendant upon the starting acceleration of the knoppix-4.02 Japanese edition CD.
Linuxrc
As for this, is in the initrd which is the temporary route file system when starting the kernel most first it starts the スクリプ which
It is To.
When the cloop image file after the detecting, the pre-reading designated block list exists in the CD-ROM device, Bu Ro ッ
The ク reading program is started. In addition, in order to acquire the block reference circumstance data of the cloop, boot option
The character string is analyzed, module parameter of the cloop driver is modified. In addition, the starting sequence was optimized
Various scripts are installed at the time of route file system construction.
Inittab
 
With the file which sets the init where this manages run level and becomes parent process of all process,
It is placed in " the /etc/inittab ".
 
With the existing setting file, run level becomes with 5 and immediately before starting the X server who is environment of the GUI, 2 seconds waits
Processing had entered. This time the processing was removed.
Knoppix-autoconfig
 
As for this, compilation of the setting file of each software which is adjusted to the hardware environment which is started and, each it services the day when
With the script file which starts the モン, it is placed at " /etc/init.d/knoppix-autoconfig ".
With existing mounting, until the processing which becomes critical path ends it had become mounting which it waits simply with the sleep. Now
In order to judge that the processing ends positively, it mounted the time. In addition, process of service one at a time
It was not to start, it collected and tried to start. In peripheral device detection the hwsetup which is prepared newly (later description)
It tried to execute. In addition, the command which draws up the setting file of the X server, is prepared newly the mkxf86config which
(Later description) it tried to execute.
26

Page 39
Xsession
With the script file where this forms the root of GUI environment of the Linux, starts the X server, in " the /etc/init.d " the position
The れ it increases.
This, similar to description above knoppix-autoconfig, waiting S with the sleep which is in the part of the processing which becomes critical path
It stopped processing, positively tried to do the starting verification of process.
45xsession
As for this, after the completing the starting the X server, with the script in order to start desktop environment,
It is placed in " the /etc/X11/Xsession.d/45xsession ".
Collecting those which one at a time process the sequential were executed, in the range which does not have influence, it tried to start. In addition, デ
To pre-read the data block which is executed after the completing the スクトップ starting, refers to at the time of application starting in order
Script formation processing was added.
Replaces the command summary which
Here, it calls from the script file which adds modification and attendant upon the starting acceleration of the knoppix-4.02 Japanese edition CD, comes out
It explains the れ る, concerning the command which is prepared anew.
Hwsetup
Is called as part of as for the hwsetup which peripheral device detection from the existing knoppix-autoconfig script, the execution time
It understood that when time is required for detection of the serial bus is many. Then, way each bus detection processing can be separated,
The hwsetup which is done was prepared. It modified, the knoppix-autoconfig to correspond to the new hwsetup, of the serial buses
Detection processing is done with another process.
Mkxf86config
It is called for setting file formation of the X server from the existing knoppix-autoconfig script
The mkxf86cofnig had when time is required for detection of the monitor. With existing mkxf86config, the processing
2 times being to execute, in order the 2nd execution part, to reuse the 1st processing result, it modified.
27

Page 40
5. Starting acceleration of KNOPPIX
Here, it explains concerning the procedure which really does starting acceleration with the KNOPPIX which is the live CD as an object.
With starting acceleration of the KNOPPIX, it is main to optimize the cloop image file which is housed in the CD-ROM the job whose
With it becomes.
In optimization of the cloop image file, data block in the cloop how is read out the information of,
It becomes necessary. This it starts reading and it is information of condition, the block reference circumstance data, aforementioned sort, really system starting
Doing, you acquire. In order to acquire this block reference circumstance data, profiling function is attached the optimization image opposite where
It introduces into the KNOPPIX which deals with the application/response cloop driver of starting acceleration.
Next, the KNOPPIX where the cloop driver where this profiling function is attached is installed profiling Mho
It moves really with the ド, it acquires the reference circumstance of the data block which is in the midst of cloop representing.
And, this to optimize the block arrangement of cloop image on the basis of the block reference circumstance which is acquired, again of the ISO9660
By the fact that it collects to the image file, the KNOPPIX where starting acceleration is applied completes.
* Note *
To operate this chapter, the LCAT becomes necessary. As for installation method of LCAT, 3rd chapter going/participating
Please illuminate.
It operates this chapter with all root authority. With failure, there is also a possibility of destroying enviroment for software development ま
It does. The case where starting acceleration is done, to peruse this chapter procedure, after understanding, please work.
The relatively big file of size is handled. Please verify the being less crowded capacity of the hard disk. Application
When the media which it does is the CD, about approximately 10GB it is less crowded and the territory is necessary.
28

Page 41
5.1. Introduction of optimization image corresponding cloop driver
Here, the optimization image corresponding cloop driver the procedure which is installed in the KNOPPIX which becomes the object which administers acceleration theory
You reveal.
First, before the applying ISO image file of KNOPPIX (here, knoppix_4. 0. 2cd_j. The iso) is housed the ファ which
The I Lu group is copied in the directory for job.
With this, ". The file which in the /MASTER " subordinate before the applying is housed during ISO representing of the KNOPPIX was even.
With the KNOPPIX, the cloop driver refers to when starting image file of the temporary route file system initrd which
Minirt. Being to be recorded in the gz, it does the preparation which replaces this image file.
With this, the loop back image miniroot was mounted, ". the /tmp_mount ".
First, the existing cloop driver the optimization image corresponding cloop driver is replaced. Place of binary installation
As for combination, " /lib/modules/2. 6. When it compiles from the 12/kernel/drivers/block/cloop.ko " and the source, party
The directory subordinate " lcat_1 which executed I Lu. 0/cloop-2. 02-opt/cloop.ko ", ". /tmp_mount/modules " subordinate
It copies.
In order next, to be able to utilize the profiling mode of the optimization image corresponding cloop driver, the linuxrc is corrected.
Concretely, in the part of the processing which loads the driver of the cloop with the insmod, it adds argument processing, (list 1). Lee
As for line number of strike 1, KNOPPIX4. 0. It is the linuxrc of 2CD Japanese edition.
29
# mkdir. /tmp_mount
# mount -t iso9660 -o loop and ro. /knoppix_4.0.2cd_j.iso. /tmp_mount
# cp -pRv. /tmp_mount. /MASTER
# umount. /tmp_mount
# mV. /MASTER/boot/isolinux/minirt.gz
/MASTER/boot/isolinux/minirt.gz.org
# gzip -cd. /MASTER/boot/isolinux/minirt.gz.org >. /miniroot
# mount -t ext2 -o loop. /miniroot. /tmp_mount
# mV. /tmp_mount/modules/cloop.ko \
/tmp_mount/modules/cloop.ko.org
# cp < copy origin >/cloop.ko /tmp_mount/modules
# cp -a. /tmp_mount/linuxrc. /tmp_mount/linuxrc.bak
# emacs -nw. /tmp_mount/linuxrc

Page 42
List 1: Correction of linuxrc (addition of profiling mode of optimization image corresponding cloop driver)
In addition, the processing which pre-reads the data block which is in the midst of cloop representing is added, (list 2).
KNOPPIX4. 0. In 2CD Japanese edition, the part which processes the boot option " of the toram ", " the tohd " and " the bootfrom " (577-
586th line) it executes first, it judges the execution of pre-reading processing of data block making use of the result. In addition, データブロッ
While pre-reading the ク, the mount (575-576 the line eye) it does the cloop image file.
30
396
Mount_knoppix ()
397
{
398
If test -n " $cFound_knoppix " -a -f \\ <- one line
" $1/$cKnoppix_dir/$cKnoppix_name "; Then
---- from here: Comment out
399
#
# DEBUG
400
#
# echo " 6 " > /proc/sys/kernel/printk
401
#
CInsmod -f /modules/cloop.ko \\ <- one line
File= " $1/$cKnoppix_dir/$cKnoppix_name "
---- to here: Comment out
---- from here: Addition
#
Accelerated-knoppix Cloop-opt.ko
#
Echo " 6 " > /proc/sys/kernel/printk
THREAD= " thread_mode=1 "
CHKBLK= " 0 "
For I IN $cCmdline; Do
Case " $i " IN chkblkc=*|chkblk=*) eval $i; \\ <- one line
[ -n " $chkblk " ] && CHKBLK= " $chkblk "; Esac
Case " $i " IN *noclpthreadc*|*noclpthread*) THREAD= " "; Esac
Done
Echo " "
CInsmod -f /modules/cloop.ko chkblks=$cChkblk \\ <- one line
" $cThread " file= " $1/$cKnoppix_dir/$cKnoppix_name "
Echo " 0 " > /proc/sys/kernel/printk
---- to here: Addition
402
Mountit /dev/cloop /KNOPPIX " -o ro " || FOUND_KNOPPIX= " "
403
# Allow multi-image KNOPPIX mounts
404
If [ -n " $cFound_knoppix " -a -x " $cDynloader " \\ <- one line
-a -x /KNOPPIX/sbin/losetup ]; Then
---- from here: Comment out
405
#
Echo " "
---- to here: Comment out
406
Echo -n " $ { CRE } $ { GREEN } Found primary KNOPPIX compressed
Image at
$ { MAGENTA } $1/$cKnoppix_dir/$cKnoppix_name$ { GREEN }. $ { NORMAL } "
407
For C IN 1 2 3 4 5 6 7; Do

Page 43
List 2: Correction of the linuxrc (addition of the processing which pre-reads the data block which is in the midst of cloop representing)
31
496
Copy_to ()
497
{
|
573
}
574
---- from here: Movement
577
COPYTO= " "
578
BOOTFROM= " "
579
DO_REMOUNT= " "
580
REAL_TARGET= " "
581
UNIONFS= " "
582
583
Case " $cCmdline " IN *toram*) DO_REMOUNT= " yes "; \\ <- one line
COPYTO= " ram "; Esac
584
Case " $cCmdline " IN *tohd=*) DO_REMOUNT= " yes "; \\ <- one line
COPYTO= " hd "; Esac
585
Case " $cCmdline " IN *bootfrom=*) DO_REMOUNT= " yes "; \\ <- one line
BOOTFROM= " yes "; Esac
586
---- to here: Movement
---- from here: Addition
#
# accelerated-knoppix Cloop blocks readahead
#
If test -z " $cDo_remount " -a -n " $cFound_knoppix "; Then
If test -x /accel/cloopreadahead; Then
CLOOPREADAHEAD= " yes ";
Case " $cCmdline " IN *nocbrc*|*nocbr*) CLOOPREADAHEAD= " "; Esac
If test -n " $cCloopreadahead " -a -f
/ <- One line
/cdrom/$ { KNOPPIX_DIR } /$ { KNOPPIX_NAME }.boot.lst; Then
Echo " "
Echo -n " $ { GREEN } Reading cloop / <- one line
Blocks.... $ { BLUE } (Backgrounding) $ { NORMAL } "
/accel/cloopreadahead /cdrom/$cKnoppix_dir/$cKnoppix_name \
/cdrom/$ { KNOPPIX_DIR } /$ { KNOPPIX_NAME }.boot.lst \
> /.cloopreadahead.log 2>&1 &
Fi
Fi
Fi
----
To here Addition
----
From here Movement
575
Mount_knoppix /cdrom
576
---- to here: Movement
587
# Remount later after copying/isoloading/driverloading?
588
# pre-test if everything succeeded
589
If
Test -n " $cDo_remount " -a -n " $cFound_knoppix "

Page 44
When compilation of the linuxrc ends, the command cloopreadahead which pre-reads the data block which is in the midst of cloop representing
It introduces. Case of binary installation, it compiled from " the /usr/local/bin/cloopreadahead " and the source
When, the directory subordinate " lcat_1 which executed compiling. 0/util/cloopreadahead " ". /tmp_mount/accel "
It copies in the subordinate.
When everything of above-mentioned job ends, to do the mount cancellation of the loop back image miniroot, the minirt. It arranges, as the gz
It increases.
With this, file set of KNOPPIX for profile. It was even in the /MASTER subordinate. This ISO イメージファ
I Lu (knoppix_4. 0. 2cd_j_prof. The iso) it collects.
ISO I of the KNOPPIX for profile which introduces the optimization image corresponding cloop driver where profile function is attached
メージファイル (knoppix_4. 0. 2cd_j_prof. The iso) is formed under the job directory.
Next to start the KNOPPIX which introduces this optimization image corresponding cloop driver with the apparatus, profiling line
It is.
32
# mkdir. /tmp_mount/accel
# cp < copy origin >/cloopreadahead /tmp_mount/accel
# umount. /tmp_mount
# gzip -c. /miniroot >. /MASTER/boot/isolinux/minirt.gz
# mkisofs -l -r -J -V " KNX402CDJ_PROF " -hide-rr-moved -v \
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-o. /knoppix_4.0.2cd_j_prof.iso. /MASTER

Page 45
5.2. Acquisition of the block reference circumstance data with starting with the profiling mode
Here, the foregoing paragraph 5.1. with the KNOPPIX for profile which was drawn up " introduction of the optimization image corresponding cloop driver "
Using, it explains the procedure which acquires the block reference circumstance data.
It starts making use of the KNOPPIX for profile which was drawn up with front theory, making use of the hypothetical PC of the apparatus or the QEMU et cetera.
At that time, by the fact that the next boot option is appointed it starts with profiling mode.
After the completing the starting the desktop to open the console, with operation below the block reference circumstance data at the time of system starting harvesting/adopting
Taking it does.
With this, block reference circumstance data at time of system starting " /tmp/boot. The read_blocks " it was retained.
If in the application which is recorded in the KNOPPIX, there are some whose utilization frequency is high, that application
It can accelerate. Here, OpenOffice. Starting acceleration of the org is done.
Before the block reference circumstance data picking at the time of the application starting, present block reference circumstance with operation below Lee
You set.
Next, it is, the application which such as launcher idea contest is dealt with with a some method and menu, the OpenOffice. Org
It starts. After verifying the completion of application starting, with operation below with the console at the time of application starting
The block reference circumstance data is extracted.
With this, block reference circumstance data at time of application starting " /tmp/appli. The read_blocks " it was retained.
When application of several types becomes the object, vis-a-vis the respective application starting * end after doing, Bu
Please extract the lock reference circumstance data.
It picked with this profile mode, block reference circumstance data file at the time of system starting
(Boot. Read_blocks), block reference circumstance data file at time of application starting (appli. Read_blocks),
Making use of removable media, or network such as USB memory key, it is enviroment for software development, the foregoing paragraph 5.1 " optimization
Introduction of the image corresponding cloop driver " you referred to being you referred to, ". The /MASTER " in the job directory subordinate which is transfer
It does.
33
Boot: Knoppix chkblk=10000 nocbr
# cat /proc/cloop/read_blocks > /tmp/boot.read_blocks
# echo 1 > /proc/cloop/reset_read_blocks
# cat /proc/cloop/read_blocks > /tmp/appli.read_blocks

Page 46
5.3. Analysis of block reference circumstance
Here, foregoing paragraph 5.2. With is collected " acquisition of the block reference circumstance data with starting with the profiling mode " the cis which
At the time of テム starting, and concerning each block reference circumstance data file at the time of application starting the cloopprofiler using
The procedure which analyzes block reference circumstance is explained.
The file which was transferred in the foregoing paragraph (the boot. Read_blocks and appli. The read_blocks) being to be the text file that way 閲
You can view, but, by the fact that the cloopprofiler which is the block reference circumstance visualization tool is used sea of CD-ROM drive
Occurrence condition of the ク understands.
The cloopprofiler is started with operation below.
After the completing the starting the cloopprofiler, the menu bar ' File ' -> ' the Openread_blocks ' to select, file dialogue
Using the block reference circumstance data file which was transferred is appointed. After the reading the data, < > > In pushing down the button
Depending, at actual time it indicates the block reference in the cloop with animation. As for modification of block resolution of indicatory territory,
< Block/Cell > It does with the spin button.
Animation of block reference circumstance with default has drawn with the block ID. This indication actual
It draws at offset position in the cloop image file, it deals with the occasion where the block reference circumstance data is extracted
Is the cloop image file becomes necessary. As for appointment of cloop image file, menu bar ' File ' -> ' Open
The CLOOP ' it selects, it appoints the cloop image file making use of file dialogue. As for cloop image file,
The directory subordinate for job, ". there is a /MASTER/KNOPPIX/KNOPPIX ". After the reading the cloop image, メ
The new bar ' View ' -> ' the draw resource ' -> ' the cloop header ' by selecting, in the cloop image file
It becomes the mode which is drawn at position.
34
# cloopprofiler

Page 47
35
With the figure 23:cloopprofiler visualization of the block reference circumstance

Page 48
5.4. Data block arrangement optimization of existing cloop image file
Here, foregoing paragraph 5. 2. With is collected " acquisition of the block reference circumstance data with starting with the profiling mode " the cis which
At the time of テム starting, and, on the basis of each block reference circumstance data at the time of application starting, is in the midst of existing cloop representing the ブロッ which
The procedure which optimizes ク arrangement is explained.
Block arrangement of cloop image is optimized, the utility command cloopoptimizer of the LCAT is used
There are two kinds of method, or method of using the GUI of the cloopprofiler. Here, command cloopoptimizer business
It does with the method of being. When the cloopprofiler is used, 4.2.1. " Block reference circumstance profiler tool
(The cloopoptimizer " please refer to.
With operation below, existing cloop image file alias (KNOPPIX. The normal) after modifying, the cloopoptimizer
It executes, the optimization cloop image file ". draws up the /MASTER/KNOPPIX/KNOPPIX ".
With this, optimization being completed cloop image file ". You could prepare in the /MASTER " subordinate.
5.5. Compilation of pre-reading designated block list when starting
Here, the foregoing paragraph 5.2 with was picked " acquisition of the block reference circumstance data with starting with the profiling mode " the cis which
From the block reference circumstance data at the time of テム starting, the procedure which draws up the list of data block in the cloop which is pre-read theory
You reveal.
The pre-reading designated block list is drawn up, the method of using the utility command rblk2bl of the LCAT, or,
There are two kinds of method of using the GUI of the cloopprofiler. Here, it does with the method of using the command rblk2bl.
When the cloopprofiler is used, 4.2.1. " The block reference circumstance profiler tool (the cloopoptimizer " referring to, く
The occasion where is.
With operation below, from the block reference circumstance data file at the time of system starting, when starting is pre-read the cloop イメー which
Data block list and pre-reading designated block list in G ". /MASTER/KNOPPIX/KNOPPIX.boot.lst " compilation
It does.
With this, pre-reading designated block list when starting ". You could prepare in the /MASTER " subordinate.
36
# mV. /MASTER/KNOPPIX/KNOPPIX. /KNOPPIX.normal
# cloopoptimizer /KNOPPIX.normal. /boot.read_blocks \
/appli_read_blocks >. /MASTER/KNOPPIX/KNOPPIX
# rblk2bl. /boot.read_blocks >. /MASTER/KNOPPIX/KNOPPIX.boot.lst

Page 49
5.6. Compilation of the iso image file which houses the optimization cloop image file
 
Foregoing paragraph 5. 1. " Introduction of optimization image corresponding cloop driver ", 5.4. " データブロッ of existing cloop image file
Optimization of ク arrangement ", and, 5,5. With " the compilation of the pre-reading designated block list when starting ", optimization image corresponding cloop
Driver and optimization being completed cloop image file, pre-reading designated block list when starting ". In /MASTER " subordinate set
It was.
This, with operation below, ISO image file (knoppix_4. 0. 2cd_jc_ac. The iso) it collects.
With this, the ISO image file of the KNOPPIX which optimizes cloop image ". /knoppix_4.0.2cd_j_AC.iso "
You completed.
5.7. Acceleration of further starting
In this chapter, optimization of cloop image was explained on the center. In starting acceleration of live CD, of peripheral device detection
There is also a technique which non- such as synchronization the starting sequence optimizes. As for this, with the type and version of live CD opposite
The place differs.
KNOPPIX4. 0. Application example in 2CD Japanese edition LCAT archive " lcat_1. You stored to the 0/KNOPPIX/ " subordinate.
Please refer.
37
# mkisofs -l -r -J -V " KNX402CDJ_AC " -hide-rr-moved -v \
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-o. /knoppix_4.0.2cd_j_AC.iso. /MASTER

Page 50
6. Thanks
As for development of LCAT, independent administrative corporate body information processing propulsion mechanism (IPA) 2005 " open source software application basis
It was done as portion of development ' " project of the speed improvement driver of the board service ' CD/DVD starting Linux.
It received wide support from the IPA concerning advance such as planning, developing and collating this project. In thick support
We appreciate.
This development to become opportunity, the KNOPPIX-BOF of the open source conference and the Kansai open forum,
And the Yokohama Linux Users Group (the YLUG) introduces this project in the kernel book-reading meeting which is sponsored the machine which
There was a meeting. You appreciate even in the people giving the place of story and the people who participated. In addition, YLUG-ML
The じ め, to offer useful information with small Edo LUG-ML and the KNOPPIX-ML, the people arguing, the rear Blog and インターネッ
You appreciate even in the people whom with To's bulletin board you comment in this project.
Thank you.
Team Accelerated KNOPPIX
Advanced Technology Research Dept.
Alpha System, Inc.
Mailto:knoppix@alpha.co.jp
38

Page 51
39
Http: //www.alpha.co.jp/ac-knoppix