Szwg Spec Xip
Revision as of 20:38, 5 March 2007 by RBot (Bot (Edward's framework))
- This method is for Kernel RAM size reduction.
- XIP(eXecution In Place) is the technique that kernel image is directly executed from ROM/Flash, instead of copying.
- This technique saves Kernel RAM usage by not making copy on RAM, while it requires a little bit more ROM because the kernel in ROM is the executable image - not compressed.
- Please refer to the BTWG Kernel XIP page:
Notes(informational and non-normative)
Pros and Cons:
- Compared to typical boot(normalizer), RAM usage decreases more than 80% (or 1Mbyte to 1.4Mbyte).
- ROM usage increases about twice (or 600Kbyte to 680Kbyte).
- As positive side effect, the boot up time becomes 30% faster. This is because of the following reason.
- XIP avoids copying the executable and read-only data portions, but not the read/write data segments;
- Technically, a non-XIP kernel need not be stored compressed, although some amount of additional time would be needed to copy the uncompressed data from ROM to RAM.
- As negative side effect, the execution speed is slow. (note: bigger number shows faster execution in Unix Bench. The number of 10 correspond the performance of SPARC 60MHz). This is because of the memory access speed.
- There may be some limitation on Kernel debug. Usually, debugger replace the program code with "trap instruction" to set breakpoint. This method can be used only when the code is in re-writable memory (RAM). Flash can be re-writable memory but it requires sector by sector write. It would be too slow if the debugger does that way.
Actual data is shown in Appendix ( [wiki:Appendix A_R2])
XIP is implemented in CELF 1.0.
- Some data on the platform are still missing.