On Sun, Apr 1, 2012 at 4:06 PM, Bharathi Subramanian <bharathi.l...@gmail.com> wrote: > On Wed, Mar 28, 2012 at 5:13 PM, Arun Venkataswamy <arun...@gmail.com> wrote: > > Arun pointed out the main reason for not including the Swap in > Embedded device. I will try to add some more info
Let me confuse you all a little bit.. > >> - From a design perspective, the design team will know how much RAM is >> required for a purpose built embedded device. This amount of RAM would have >> been provisioned physically. > > Embedded System is for a specific set of task Yes this is true for deeply embedded systems running without os or small RTOS. But now days, in the world of linux, the line is just merging. With Embedded Linux you can virtually do anything what a desktop does, except things will be slow because of low processing power limited by the hardware. And thus to limit it, just cross-compiled what is need the application needed and will be carefully choosing what is need + additional softwares which will not hang the system. > estimate the memory utilization. So most of the time, system will be > having enough RAM to do the core functions. If not enough RAM, > unwanted application will be kicked-out of the RAM. Read about Android > Low Memory Killer. > >> - For a general purpose device, we can safely assume permanent storage >> would typically be on board flash or memory cards. Any flash based >> permanent storage has a fixed `life` or write cycles after which it is >> likely to fail. Continuous use of swap file will reduce the effective life >> of the device. > > Read http://en.wikipedia.org/wiki/Wear_leveling yes. this is the reason why swap is not in embedded linux. But if you wish you can have it. In my point of view, every thing is embedded systems from wrist watch to super computer and desktop is a special case. And even in the desktop if you wish you can remove swap partition. Please see this link, it says why swap is need. https://help.ubuntu.com/community/SwapFaq. -- Regards, Sathishkumar D _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc