-
Junior Member
registered user
mount --bind v.s. link or program install to “knoppix core&q
Normally, custom programs are structured to install to /usr directory, which is blocked as read-only at knoppix running from core.
In addition to updated "Optimal man HD install" ( http://www.knoppix.net/forum/viewtopic.php?t=17024 ) I use might be fancy way to overwrite this accordingly with my nation worn saying: “If mountains do not go to Mohammed then Mohammed goes to mountains”.
Have (or make) a file system with at least ~94000 inodes available. To check this, type df –m ~for disk space, and df –i ~for inodes available and used in mounted file systems. Each Linux file has its own inode, which is a special block with information about this file. 100000 inodes occupy ~12 MB of disk space. A new file can’t be created if no free inode is available; i.e., you may meet situation when you copy files to a partition with a plenty of free space, but system says: “no free space”; simply no free inode is available.
Inodes are created at the file system formation. To change inodes number and size the file system should be re-formatted (data will be lost), e.g., by:
mke2fs /dev/hdax -F -m 0 -i 1024 -N 100000 ; # use additional -n option to preliminary test without actual formatting.
Next, at any knoppix session:
=====================
mkdir –p $mydir/usr
/bin/cp -aus /KNOPPIX/usr/* $mydir/usr ; # links files from /KNOPPIX/usr to the real directory $mydir/usr
=====================
These 92800 links (~5 MB of disk space) occupy ~92800 inodes, You can free inodes for future use by reducing number of links, e.g., by re-linking (as simply as pressing Cntr(x)-s in mc) a directory as hole, one inode per a directory; but these directories will be closed for writing. E.g., only re-linking all xx/doc and xx/man directories number of links was reduced to ~61000. Actually, you can create enough inodes and don’t care about reducing, or at the limit, keep opened only directories where your custom installation will go, checking a package content before installation.
To automatically link at boot your customized $mydir/usr to /usr add to the knoppix.sh:
=========================
[ -d $mydir/usr ] && { [ -h /usr ] && unlink /usr; [ -d /usr ] && rm –f /usr ; [ -d /usr ] || mkdir -p /usr ;
mount --bind $mydir/usr /usr ; }
=========================
Next, you can make normal installation to root / >> /usr until your partition will be full, or all inodes will be used (you can delete unnecessary links, as mentioned above). No needs to correct PATH and LIB_PATH, only it’s useful to run ldconfig after a new installation.
At reboot /usr will be umounted, and knoppix.sh will mount it automatically at the next boot.
Latest KOffice-1.3.5 is installed in such a way, and it opens significantly faster that knoppix OpenOffice.
Such installation works OK, but I’m not sure what’s better for performance: “mount --bind” or “link”?
1. I believe that “mount -bind" refers to inode locations, but soft link to files path. Both have preferences: “mount -–bind” does not use inodes and hd space, but if you accidentally delete directory all data will be lost. In the case of soft links, only link will be deleted, but links add path for files search and execution.
But how all these are reflected on performance efficiency?
2. What is the main delay in knoppix core performance – hd reading or core decompressing?
Does somebody have experience or information about performance efficiency in the mentioned above cases?
I’ll, appreciate any information that help to improve system performance.
Best, Alex
Similar Threads
-
By rossi in forum Hardware & Booting
Replies: 5
Last Post: 05-28-2006, 03:41 PM
-
By markpelletier in forum Networking
Replies: 0
Last Post: 10-31-2005, 07:06 PM
-
By Ommadawn in forum The Lounge
Replies: 1
Last Post: 08-05-2005, 09:20 AM
-
By superjoe in forum Customising & Remastering
Replies: 0
Last Post: 06-01-2005, 02:09 PM
-
By kn2user in forum Networking
Replies: 3
Last Post: 11-24-2004, 04:58 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
![Lot of 10 4GB PC4-2666V Laptop Ram / Memory - Mixed (SK Hynix, Kingston, etc.) picture](/store/img/g/tL0AAOSwxiZmRm5b/s-l225/Lot-of-10-4GB-PC4-2666V-Laptop-Ram-Memory-Mixed-SK.jpg)
Lot of 10 4GB PC4-2666V Laptop Ram / Memory - Mixed (SK Hynix, Kingston, etc.)
$109.99
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/g/RCAAAOSweqdeWaui/s-l225/A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![Micron 8GB DDR4 1Rx16 PC4-3200AA Laptop RAM Memory MTA4ATF1G64HZ-3G2E2 picture](/store/img/g/PxMAAOSw~T1mYfdq/s-l225/Micron-8GB-DDR4-1Rx16-PC4-3200AA-Laptop-RAM-Memory.jpg)
Micron 8GB DDR4 1Rx16 PC4-3200AA Laptop RAM Memory MTA4ATF1G64HZ-3G2E2
$10.00
![8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture](/store/img/g/tmAAAOSwxu1mDNSQ/s-l225/8GB-PC3L-12800S-1600MHz-SODIMM-DDR3-RAM-Grade-A.jpg)
8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A
$12.00
![Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture](/store/img/g/~u4AAOSwK-liKn7t/s-l225/Team-T-FORCE-VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-32.jpg)
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
![HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture](/store/img/g/XNYAAOSwg81kv6CG/s-l225/HyperX-FURY-DDR3-8GB-16GB-32GB-1600-MHz-PC3-12800-.jpg)
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$15.90
![Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture](/store/img/g/uPEAAOSw0-1mBgnN/s-l225/Team-T-FORCE-VULCAN-Z-16GB-2-x-8GB-288-Pin-PC-RAM-.jpg)
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel
$33.99
![A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture](/store/img/g/HVQAAOSwZR1fWlxU/s-l225/A-Tech-8GB-PC3-12800-Desktop-DDR3-1600-MHz-Non-ECC.jpg)
A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G
$13.99
![LOT 280 - 2GB PC3 RAM STICKS picture](/store/img/g/4NsAAOSwxsNmheAI/s-l225/LOT-280-2GB-PC3-RAM-STICKS.jpg)
LOT 280 - 2GB PC3 RAM STICKS
$250.00
![Hynix 64GB 2Rx4 PC4-3200 RDIMM DDR4-25600 ECC REG Registered Server Memory RAM picture](/store/img/g/9nQAAOSwpFRkAmU7/s-l225/Hynix-64GB-2Rx4-PC4-3200-RDIMM-DDR4-25600-ECC-REG-.jpg)
Hynix 64GB 2Rx4 PC4-3200 RDIMM DDR4-25600 ECC REG Registered Server Memory RAM
$129.99