-
Junior Member
registered user
Optimising load time.
Here is a useful technique to improve loading times, cut from the following URL:
http://www.tina-vision.net/tina-knop...mastering.html

Originally Posted by
Tina
KNOPPIX boots quickly from CD in part because the ordering of the files on the disk has been optimised (think defrgamentation for the CD). In order to perform this optimisation, you need a sort list, which is generated using this script and this file. The timestamp file is only used to provide a comparative file time: the script looks at the file access times and sorts them into order, so that the files are burned onto the CD in the order in which they are needed when the disk boots.
Code:
#!/bin/sh
find / -anewer /mkisofs.timestamp -not \( -type d -o -path /KNOPPIX\* -o -path /tmp\* -o -path /proc/\* -o -path /mnt/\* \) -printf '%p %A@\n' | sort -rn +1 -t' ' | awk -F' ' '{print $1 " " ++i}' > /mkisofs.sort
echo "/bin/mkdir 10090" >> /mkisofs.sort
echo "/bin/chown 10080" >> /mkisofs.sort
echo "/bin/cp 10070" >> /mkisofs.sort
echo "/bin/ln 10060" >> /mkisofs.sort
echo "/bin/rm 10050" >> /mkisofs.sort
echo "/dev/* 20000" >> /mkisofs.sort
echo "/etc/* 30000" >> /mkisofs.sort
Code:
mkisofs -R -U -V "Custom KNOPPIX Live CD 1.0" -P "author" -sort /knoppix/KNOPPIX/scripts/mkisofs.sort -hide-rr-moved -cache-inodes -no-bak -pad ./ | nice -5 ./usr/bin/create_compressed_fs - 65536 > /knoppix/KNOPPIX/KNOPPIX
I have not tested this but it looks sound. The mkisofs is to illustrate the use of -sort , directory names will need adjusting.
Thanks to Paul for posting that technique.
Similar Threads
-
By edallica in forum Hardware & Booting
Replies: 2
Last Post: 05-30-2005, 04:22 AM
-
By n()()dle in forum General Support
Replies: 4
Last Post: 12-23-2004, 01:39 AM
-
By tofu in forum MS Windows & New to Linux
Replies: 1
Last Post: 12-14-2004, 03:56 AM
-
By Medicate in forum General Support
Replies: 3
Last Post: 11-26-2004, 07:08 AM
-
Replies: 4
Last Post: 11-25-2003, 04:28 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED
$34.95

Lot of 4 USED IPitomy IP620-B with IPX-32 DSS Expansion Module VoIP Phone POE
$225.00

SIM Bank 32 SIM Card Slots Ethernet SIM Server for GoIP
$400.00

Lot of 9 Used IPitomy IP320-P HD POE Voice Speakerphone 12-Line VoIP Phone
$225.00

Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply
$25.00

Grandstream HT801 Answering Machine VoIP Home Phone Adapter Ethernet Black
$29.99

Grandstream HT701 1-Port FXS Analog Telephone Adapter ATA VoIP Gateway -Free S/H
$19.99

Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$49.28

Grandstream VoIP Phone Adapter ATA 1-Line Black Ethernet (RJ-45) Micro USB
$27.07

Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019
$49.99