Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Forum

  Home arrow Linux For Devices Articles arrow Embedded Linux ecology

Embedded Linux ecology
By Linux Devices

Rate This Article: Add This Article To:

Foreword: This brief article presents tips and tricks for reducing the consumption of power, paper, RAM, storage, and processor cycles in Linux systems. It was written by Michael Opdenacker, of Free Electrons, a training and consulting company that publishes free presentations and training materials about embedded Linux. Enjoy . . . !





The Linux Ecology HOWTO is a document that gathers ideas and techniques for using Linux in an environmentally friendly way. Free Electrons has just added new useful resources to this document, some used in traditional computing, and some coming from its experience with embedded system development.

The HOWTO was started and is maintained by Werner Heuser, the creator of TuxMobil. The main topics are about reducing the consumption of resources, such as power and paper, but also RAM, storage and CPU resources, making it possible to recycle old PCs, or to extend their lifetime, reducing the consumption of PC materials.

As far as traditional computing is concerned, the document now explains how to hibernate a desktop or notebook PC to disk with Suspend 2, how to automatically scale CPU frequency according to its activity or to other criteria (board temperature, power state...), and how to reduce hard disk consumption with laptop mode. Another new idea for servers is to take advantage of virtualization techniques (such as User Mode Linux or Xen) to consolidate several idle servers into a single one or just a few with a much better utilization.

Now, let's highlight a few ideas coming from embedded Linux system development...

Reducing power consumption:
  • Dynamic tick -- Disables timer interrupts when the processor is idle, until something really happens, such as a hardware interrupt. This way, the processor doesn't get woken up 100 to 1000 times per second, just to realize there is nothing to do. This saves power in laptops. Dynamic tick was pioneered on the TI OMAP (arm) platform, and is now available on x86.

  • noatime mount option -- Useful to prevent a write to disk to happen every time a file is read (dictated by the POSIX standard, to store the latest access time), even if the file is read from RAM cache. This reduces hard disk power consumption, and doesn't disturb any application (except perhaps backup utilities). Many embedded Linux system developers are familiar with this option. Without it, too many write operations to flash storage would happen, reducing its lifetime.

Extending the lifetime of computers:
  • The former recommendation of the HOWTO for old computers was to use old versions of distributions, kernel and sotfware in general, which do not have the bloat accumulated in newer versions. Thanks to embeddded Linux projects, this recommendation no longer holds. Now, you can use fresh versions!

  • Many lightweight or tiny, but feature rich Linux distributions are now available for use on old PCs. The smallest ones now rely on components embedded Linux system developers are very familiar with, such as the Busybox tool box (implementing most UNIX commands in less than 500 KB), or the uClibc lightweight but full-featured library. The most spectacular example is Basic Linux, which only needs 3 MB of RAM and 6 MB of disk.

  • To bear with limited storage space, the strip command is useful to shrink libraries and executables by removing unnecessary debug information. Most tools used in embedded systems undergo this postprocessing. Files which need stripping can be identified with the file command, or even automatically found with findstrip from the perforate Debian package.

  • Reducing storage space can also be done by putting read-only parts of a filesystem (typically application files) in a compressed filesystem. SquashFS is very popular in embedded systems and yields excellent performance compared to read-only ext2 on slow storage.

  • A new alternative to explore for read-write filesystems is the compression plugin for the Reiser4 filesystem.

  • Kernel size can also be reduced with the Linux Tiny patches, developped for embedded systems.

  • Old computers are great for simple server applications (files, http, media streaming...) or network appliances (firewall, gateway, proxy...). If you do not have an old PC to implement such a device, do not buy a new one! Consumer devices running Linux are great alternatives. The most popular choices are the
    Linksys NSLU2 network attached storage device and wireless routers built arount the Linksys WRT chipset. You save money (those devices don't exceed $100), power and materials compared to a PC. In addition, these devices have a big and active user and developer community.

  • To rejuvenate an old PC, or to get the best performance out of a low-profile system, you may also try the real-time preemption patches from Ingo Molnar. These patches can give unprecedented responsiveness to your system.

So, while embedded Linux systems greatly benefited from prior development on PC computers, development on embedded Linux systems now also brings many new features and possibilities to GNU/Linux on traditional computers. This is particularly true when the goals are to reduce power consumption, to extend the lifetime of computers or to use lower-profile hardware manufactured at lower environmental costs.

Last but not least, compared to proprietary embedded systems, free and open-source operating systems like Linux or eCos also have another nice ecological advantage: a reduction in paper consumption!

A fellow embedded system developer told me he was approached once by the salesperson from a proprietary RTOS vendor. He got scared when he saw that the license manual was bigger than the user manual! With embedded Linux, just download the kernel and software you need. There is no paperwork, no NDAs to sign, no unnecessary travel to your place by salespeople. And there is so much documentation on so many places that even your boss will not be tempted to print it!

Free Electrons also created a new presentation summarizing the key ideas and techniques from the new HOWTO. Both this presentation and the updated HOWTO can be found here.



About the author: Michael Opdenacker founded Free Electrons in 2004. Located in the South of France, near Sophia Antipolis, Free Electrons offers training and consulting services to silicon vendors, systems vendors, and universities in France, the US, and elsewhere around the world. Free Electrons publishes its training materials and presentations under a free content license.



Related Stories:


Discuss Embedded Linux ecology
 
>>> Be the FIRST to comment on this article!
 
 
 
>>> More Linux For Devices Articles Articles          >>> More By Linux Devices
 



FUEL Database on MontaVista Linux
Whether building a mobile handset, a car navigation system, a package tracking device, or a home entertainment console, developers need capable software systems, including an operating system, development tools, and supporting libraries, to gain maximum benefit from their hardware platform and to meet aggressive time-to-market goals.

Breaking New Ground: The Evolution of Linux Clustering
With a platform comprising a complete Linux distribution, enhanced for clustering, and tailored for HPC, Penguin Computing¿s Scyld Software provides the building blocks for organizations from enterprises to workgroups to deploy, manage, and maintain Linux clusters, regardless of their size.

Data Monitoring with NightStar LX
Unlike ordinary debuggers, NightStar LX doesn¿t leave you stranded in the dark. It¿s more than just a debugger, it¿s a whole suite of integrated diagnostic tools designed for time-critical Linux applications to reduce test time, increase productivity and lower costs. You can debug, monitor, analyze and tune with minimal intrusion, so you see real execution behavior. And that¿s positively illuminating.

Virtualizing Service Provider Networks with Vyatta
This paper highlights Vyatta's unique ability to virtualize networking functions using Vyatta's secure routing software in service provider environments.

High Availability Messaging Solution Using AXIGEN, Heartbeat and DRBD
This white paper discusses a high-availability messaging solution relying on the AXIGEN Mail Server, Heartbeat and DRBD. Solution architecture and implementation, as well as benefits of using AXIGEN for this setup are all presented in detail.

Understanding the Financial Benefits of Open Source
Will open source pay off? Open source is becoming standard within enterprises, often because of cost savings. Find out how much of a financial impact it can have on your organization. Get this methodology and calculator now, compliments of JBoss.

Embedded Hardware and OS Technology Empower PC-Based Platforms
The modern embedded computer is the jack of all trades appearing in many forms.

Data Management for Real-Time Distributed Systems
This paper provides an overview of the network-centric computing model, data distribution services, and distributed data management. It then describes how the SkyBoard integration and synchronization service, coupled with an implementation of the OMG¿s Data Distribution Service (DDS) standard, can be used to create an efficient data distribution, storage, and retrieval system.

7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
PLATINUM SPONSORS

 
 

 
 

 
 

GOLD SPONSORS


(Become a sponsor)

(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

Mobile phones!

MIDs, UMPCs
& tablets

Mobile devices

Other cool
gadgets

Resource Library

• Unix, Linux Uptime and Reliability Increase: Patch Management Woes Plague Windows Yankee Group survey finds IBM AIX Unix is highest in ...
• Scalable, Fault-Tolerant NAS for Oracle - The Next Generation For several years NAS has been evolving as a storage ...
• Managing Software Intellectual Property in an Open Source World This whitepaper draws on the experiences of the Black Duck ...
• Open Source Security Myths Dispelled Is it risky to trust mission-critical infrastructure to open source ...
• Bringing IT Operations Management to Open Source & Beyond Download this IDC analyst report to learn how open source ...


BREAKING NEWS

• NAS system houses 2.5-inch drives for up to 6TB
• Atom SBC boasts special low-power mode
• Android leaps to rugged handheld, and more phones
• Simulator runs Android apps on Ubuntu
• Fanless industrial PC taps Atom
• Router platform runs OpenWRT Linux
• Feature-packed UMPC survives four-foot drops
• UMPC pioneer gives up the ghost
• Biodegradable, solar-powered netbook runs Linux
• Hypervisor rev'd for higher reliability
• Eurotech spins Atom development kits
• Home media server to demo on Intel Atom platform
• Atom boards feature fanless DC operation
• Low-cost pluggable NAS adds Linux support
• Taiwan open source conference sets agenda


Most popular stories -- past 90 days:
• Linux boots in 2.97 seconds
• Tiniest Linux system, yet?
• Linux powers "cloud" gaming console
• Report: T-Mobile sells out first 1.5 million G1s
• Open set-top box ships
• E17 adapted to Linux devices, demo'd on Treo650
• Android debuts
• First ALP Linux smartphone?
• Cortex-A8 gaming handheld runs Linux
• Ubuntu announces ARM port


DesktopLinux headlines:
• Simulator runs Android apps on Ubuntu
• Hypervisor rev'd for higher reliability
• Pluggable NAS now supports Linux desktops
• Moblin v2 beta targets netbooks
• Linux-ready netbook touted as "Student rugged"
• USB display technology heading for Linux
• Ubuntu One takes baby step to the cloud
• Game over for Linux netbooks?
• Linux Foundation relaunches Linux web site
• Dell spins lower-cost netbook


Also visit our sister site:


Sign up for LinuxForDevices.com's...

news feed


Or, follow us on Twitter...