LWN.net Logo

Execute-in-place

Execute-in-place

Posted May 12, 2005 13:58 UTC (Thu) by karim (subscriber, #114)
Parent article: Execute-in-place

It would be important to highlight that there isn't concensus on the availability/use of XIP within the embedded Linux community. David Woodhouse who maintains the MTD layer, for example, has said a number of times that the only ones who profit from XIP are flash manufacturers. The truth of the matter is that flash costs more than RAM and having XIP means having the binaries uncompressed in flash. The more XIP you have, the larger the flash you need. From that point of view, it's clear that having the classic compressed FS in flash and the apps running in RAM is usually the best way to go. ... not that this fact is going to stop developers from asking for this feature ...

There may be an advantage for XIP in the case of mass-produced masked-ROMs, maybe, but that probably benefits to a handfull of companies on this planet only ...


(Log in to post comments)

Execute-in-place

Posted May 12, 2005 19:19 UTC (Thu) by oak (guest, #2786) [Link]

But doesn't RAM need refresh whereas Flash doesn't?
I.e. XIP with less RAM might make your battery last longer...

Execute-in-place

Posted May 13, 2005 6:26 UTC (Fri) by phiggins (subscriber, #5605) [Link]

Depends on the type of RAM. XIP would save a lot of power if you use DRAM, but not so much with SRAM and the Magnetic RAM. I think those cost more than flash right now, though.

Execute-in-place

Posted May 15, 2005 19:57 UTC (Sun) by obobo (guest, #684) [Link]

It is typical for microcontrollers with on-die flash and RAM to have significantly more flash than RAM. Granted that today, most of these microcontrollers don't have enough memory to run Linux with or without XIP, but bigger chips will come through at some point.

Interesting point, though.

Execute-in-place

Posted May 21, 2005 20:17 UTC (Sat) by dmag (subscriber, #17775) [Link]

There is also a latency issue. XIP will boot faster. It will also run faster in the case where you have more flash than RAM.

Execute-in-place

Posted Sep 1, 2005 14:46 UTC (Thu) by jg (subscriber, #17537) [Link]

I see assertions, with no data, I think often by people with no experience in the area.

Certainly on the iPAQ we've lived fine without XIP, and flash is more precious that RAM. And the paging system does very well at throwing away unused pages of text that have been pulled into RAM.

So I think we need data here, rather than proof by loud assertion...
- Jim

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds