OPPSS!!!!!!!!!!
Something is going wrong with forum websites. Several time I simpy edited a post, but it dublicated many time. Remove present dublication please.
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
OPPSS!!!!!!!!!!
Something is going wrong with forum websites. Several time I simpy edited a post, but it dublicated many time. Remove present dublication please.
Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W
$3472.00
Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...
$689.99
Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...
$489.99
AMD Ryzen 9 5950X 16-core 32-thread Desktop Processor
$319.99
Apple Mac Pro Processor Tray 5,1 2010 2012 2.4ghz 8 core
$79.99
Lenovo ThinkCentre M910q Tiny Core i5-6500T 2.5GHz 8GB RAM AC ADAPTER - Wi-Fi
$79.99
HP EliteDesk 800 G4 Micro Intel Core i5-8500T 2.1GHz 8GB RAM 256GB SSD W11P WIFI
$120.00
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
Dell Optiplex 5060 SFF 8th Gen Core i7 3.2GHZ 16GB 512GB Win 11 Pro
$249.00
Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H
$429.99