Hi all,
I am trying to get my head around how mount mode and copy mode work.
Through reading the book / online pages I think I may understand both of them. Here is what I currently understand, please let me know if this is right or if I have misinterpreted something:
Mount Mode
- Extensions exist compressed on the disk in a squashfs format
- These files can be mounted to the disk - this is basically an abstraction where files in the compressed archive are overlayed onto the file system as if they are just normal files
- Mounting therefore must be almost instantaneous, but reading these files has the overhead of needed to decompress them
- Because the mount is just an abstraction, the only space taken up on the disk is that of the compressed archive
Copy mode
- Extensions are fully uncompressed into RAM, and then overlayed onto the file system
- This takes time, but once done the extensions can be loaded very quickly
- The extension files then exist in two places, both compressed on disk and uncompressed in RAM
- When the program is launched memory is effectively wasted because the binary will exist both on the ramdisk and in working ram
So therefore it seems:
Mount mode - Faster boot, slower application launches but more optimal use of memory
Copy mode - Slower boot, faster application launches but memory is effectively wasted
Is my understanding correct?