-
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

Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026
$12.99

Microsoft SQL Server 2019 Enterprise 40 Core Unlimited CAL Retail License FPP
$299.00

Novell SUSE Linux Enterprise Server 9, Linux Professional 8.2 / 9.1 — 3 DVD Set
$58.00

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$125.00

RED HAT ENTERPRISE LINUX 5 SERVER RHF0382US-R1 for PC x86 AMD 64 INTEL 64 30 Day
$188.24

ESET Server Security (File Security) | Variant Item | Download Version
$215.25

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC
$175.00

Start9 Server Pure 32GB 4TB Intel i7 Node StartOS — Box + PSU
$649.00

SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA
$284.99

Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay
$500.00