| New kernel boosts embedded |
Oct. 10, 2008
[Updated 1:45 PM] -- Linus Benedict Torvalds today blessed the 2.6.27 kernel, making the release official after nine "release candidate" iterations. For embedded hackers, the new kernel offers "Ftrace" and "Sysprof" trace tools, a new "UBIFS" flash filesystem, and support for network drivers with multiple transmit queues, among other enhancements.
Merging a new, more modern flash filesystem has been among the top priorities for Linux's new embedded maintainers, so let's start with that one. Two filesystems were vying for merger, including Jörn Engel's LogFS, and UBIFS, spearheaded by Nokia. At this point, UBIFS has been merged, while work on LogFS appears to be stalled for now.
Like JFFS2 (which incidentally was written by David Woodhouse, one of the new embedded maintainers), UBIFS works with raw flash devices attached via the MTD (Memory Technology devices) kernel subsystem, rather than with flash devices like CompactFlash cards that emulate block devices. Compared to JFFS2, UBIFS should offer journaling, write-back, on-the-fly compression, and faster mount times.
Another newly merged flash filesystem is OMFS, or "Optimized MPEG File System," reportedly used in ReplayTV and Rio Karma music players. OMFS's merger was a little bit controversial.
Two new system profiling tools
The new Ftrace tool appears to have grown out of Ingo Molnar's work on real-time extensions to the Linux kernel. However, it may well prove more broadly useful for embedded developers. A static function tracing tool similar to strace, but residing inside the kernel, ftrace aims to tell you where the kernel is spending its time. Thus, it may help developers figure out which functions in their code are causing bottlenecks. Traditionally, embedded developers have used LTTng for this, but Ftrace may prove simpler and easier to use, it appears.
Ftrace puts out its data to files in the kernel's debugfs filesystem, and can be configured by echoing values into files there as well. According to documentation in the kernel source tree, it can be configured with the following tracers:- ftrace - function tracer that uses mcount to trace all functions
- sched_switch - traces the context switches between tasks
- irqsoff - traces the areas that disable interrupts and saves the trace with the longest max latency.
- preemptoff - Similar to irqsoff but traces and records the amount of time for which preemption is disabled.
- preemptirqsoff - Similar to irqsoff and preemptoff, but traces and records the largest time for which irqs and/or preemption is disabled.
- wakeup - Traces and records the max latency that it takes for the highest priority task to get scheduled after it has been woken up.
- none - To remove all tracers, echo "none" into current_tracer.works
Also newly merged in 2.6.27 is "Sysprof," described in its Readme as a "sampling profiler that uses a kernel module to generate stacktraces which are then interpreted by the userspace program 'sysprof.'"
Other new features
David Miller's multiqueue transmit patches have been merged in 2.6.27. These are aimed at letting complicated network devices -- those using the Wireless Multimedia Extensions, for example -- to have different network transmit queues, with different rules about queue length, when to drop packets, and so on. Reportedly, the patches were built in such a way as not to affect existing network drivers, while opening the door to new drivers that support multiple transmit queues. Further details may be available here.
Wait, there's more
The new kernel offers plenty for enterprise users, too, with ext4 getting closer to readiness for prime time. The scsi and sata subsystems have added support for checksumming data written to block devices at write time, apparently a high priority for enterprise users.
For desktop users, a new GSPCA driver system brings world-class support for webcams under Linux. A long list of supported products can be seen here.
For a full summary of salient merges in 2.6.27, try this 2.6.27 change summary at KernelNewbies.
Related Stories:
(Click here for further information)
|
|
|
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.
|
|
|
|
|