Increasing cache size
Submitted by Mike Slinn on December 22, 2006 - 7:59am.
I've got 6 LivePCs installed (Nebulous, Gentoo 2006.1, FreeDOS, One Laptop Per Child, PocketDemocracy and Vista). When I installed Moka5 I accepted the default value for the cache size without understanding the implications.
1) Should I increase the cache size?
2) How do I determine how full it is?
3) How can I increase it without deinstalling and reinstalling Moka5?
4) How do I determine a proper value?
The recommended size of the
The recommended size of the cache will depend on several factors:
1) The number of LivePCs concurrently downloaded
2) The size of each LivePC
To determining the cache:
The "cache-control.exe stats" will report the cache status.
This shows that 144 MBs are used and 472 MBs are still available.
C:\Program Files\moka5\Engine\bin>cache-control.exe stats
Sector size: 2048 bytes
Block size: 131072 bytes
Block allocation stats
capacity: 4953 (619 Mbytes)
data: 1152 (144 Mbytes) (73.85% sectors used)
pinned: 0 (0 Mbytes) (0.00% sectors used)
table: 20 (2 Mbytes)
free: 3781 (472 Mbytes)
Uninstalling/Reinstall the Engine is the easiest way to create a new cache. The cache-control.exe also support the create option. This will automatically replace the current cache file so becareful.
To create a 100 MB Cache, the number of 128K blocks needs to be determined.
Sample: cache-control create 800
Kevin