한국어  |  日本語
Your browser either does not support Javascript or you have it disabled. Please enable Javascript to be able to navigate our site and utilize features.

Montavista


Cache: the key to multicore performance

October 10th, 2008

If you attended my multicore webinar last month then you know that I’m a big fan of looking out the window at existing open source applications and seeing how they tackle performance issues. The webinar used the Apache HTTP server as an example. A recent Intel engineering study uses a modified version of snort as a test application for improving multicore performance.

The Intel study, commented extensively on by Lori Matassa, indicated performance scaling on a 4 core system of 6.2x. This is notable because the generally expected benefit from adding a core is typically slightly under 1. For example moving an application to a 4 core system and then getting a 3.8x performance boost would be expected and would likely require some work to attain.

The Intel engineering study is notable because it indicates something that experienced practitioners have always known: efficient cache usage is a critical factor in multicore performance. It simply makes no sense to play games elsewhere until you’ve got a grasp on cache efficiency and have maximized that aspect of your system performance.

The Intel engineering study did something interesting with “flow pinning”. Each TCP flow through the system was handled, for the lifetime of the flow, by a single assigned core. This improves cache efficiency by optimizing locality of reference.

The Intel paper also prompts some thoughts in my mind regarding those who are migrating RTOS applications from their dead-end platform to the new funky Linux world. A vogue thought these days is that a virtualization platform can be used to just run your RTOS side-by-side with the new Linux platform. My concern is that taking a non-multicore aware RTOS based application and just moving it to a new multicore processor implies either no cache efficiency or a decrease in cache efficiency. The RTOS based application never had multiple cores and hence has no awareness or ability to do flow-pinning as discussed in the paper.

Potentially a better approach is to migrate the RTOS application’s algorithms to a consistent Linux platform and then do cache optimization work now that you’ve eliminated other variables and have design flexibility. If you want to learn more about RTOS to Linux migration we’ve got an upcoming webinar on that, too.

Take a read… the paper is compelling. 6.2x performance boost on 4-cores is impressive.


It’s all over now except for the laughs.

October 6th, 2008

I returned home to Atlanta on Saturday still pumped about the great learning and fun that we had that week at the Vision 2008 Embedded Linux Conference. I wanted to share with you a few of them.

I’m sure you saw the splash on the Dell Lattitude ON announcement. Many of my MV colleagues have been nose to the grindstone for months on this project. They were asked to be the systems software provider (using Mobilinux 5.0) and to do the software integration for the application stack. I’ve not seen much of it myself personally but I hear good reports. Hopefully this will be a great success for Dell.

Since I was working and presenting at the event I didn’t get to attend many of the sessions. I did attend one of the last sessions of the conference by Matt Porter of Embedded Alley. His topic was the new Unsorted Block Image (UBI) and the UBI Filesystem (UBIFS) that can be layered upon it. What was superb about Matt’s presentation was that it wasn’t just a summary of information you could have learned off of Google. Matt went beyond the basics and delved into how to model your application’s usage profile to predict how quickly your product will consume the flash lifecycle of modern multilayer NAND flash memories.

I’ll repost if we can get a video of Matt’s presentation up on the web.

The other big highlight of the event was the Thursday night “Streets of San Francisco” party. This was the brainchild of our events manager Pamela Sherwood and it turned out great. The hotel ballroom was converted into street scenes from San Francisco. Tucked in the nooks and crannies was the dinner for the evening and ample adult beverages. All of this led up to what I think was the highlight of the evening… the Rock Band 2 show. I’ve played Rock Band quite a lot but it is a different experience with a stage, lights, and a real sound system.

We’ve got all the videos up on YouTube.

That’s our European FAE team giving a spirited rendition of Girls on Film.


Vision is here… bootcamp in progress!

October 1st, 2008

Bootcamp

Bootcamp!

The last few weeks at MontaVista have been quite hectic. Our Vision 2008 Embedded Linux Developer’s conference is finally here and getting everything prepared has been a huge effort for many of the MontaVista family. Now that the conference is in progress it is fun to see colleagues from around the world and meet embedded Linux enthusiasts from around the world. The photo above is from the “Bootcamp” training session being held right now. Most everyone has brought their laptops, loaded Linux in a virtualized environment, and are up and learning.

We’ve got two more days of the Vision conference and you haven’t missed out yet. If you are in the San Francisco area the get yourself to the registration page and use the promo code “BRAD”. You’ll get a discount that is steep enough you won’t mind having to upend your week to learn something very useful to your day job.

I’m having a great time at Vision… hope you can join us!

Brad


What a week

September 19th, 2008

I just got off the plane from a great week visiting HQ in Santa Clara, CA. It is always fun to spend some time with my colleagues out there. Read to the bottom if you’d like to save some money and get some geek training.

I can’t say enough how thankful I am for everyone attending last week’s multicore webinar. The turnout was great. I enjoyed doing it and I hope you found it valuable. We’ve got some great upcoming sessions that we’ll mention closer to the broadcast date.

When preparing the session I tried very hard to focus on technology and techniques rather than products. That might seem a little odd coming from someone in the vendor community but I’m enough of a geek that I get a little bored listening to someone drone on about their datasheet. Let me know if that was the right balance for you in the comments, please.

If you didn’t watch the session you can catch the recording.

On the flight home I was reviewing presentations for the Vision 2008 Embedded Linux Conference. There are some really great sessions planned. If you’ve not heard Paul McKenney, Jonathan Corbet, or Chris Hallinan speak I think you’ll be in for a treat. Paul’s presentation wins kudos for best cartooning. I’m also very interested in catching up with Deepak Saxena on the work he is doing at One Laptop Per Child. There are also some hands on training events that I’m hoping I can shoehorn myself into.

I took some time in the office to strong-arm our event planner, Pamela, into giving me a discount code for my loyal blog readers. I could have asked for some of her chocolate chip cookies instead… but I was thinking of you. If you would like to attend Vision 2008 you can get a serious discount. Just go to the registration page and enter the discount code BRAD on the payment page. The discount isn’t as good as the student rate of $130 but it is darn close.

I’ll buy a beer for any blog reader (who I don’t already know from work) who says hello and joins me onstage for a song when we play Rock Band 2 on Thursday night.

Brad


Thank you for attending!

September 11th, 2008

Thank you to all of you who attended “Multicore 101: Migrating Embedded Applications to a Multicore Environment with Linux“. I am grateful to Ian Forsyth of Freescale as my co-presenter for the fruitful collaboration on this topic. Some quick reminders:

  • Vision 2008: October 1-3, 2008 in San Francisco, California. This year’s top conference for embedded Linux developers will include a number of valuable technical presentations. Here are a few of them:
  • Hands-on multicore Linux lab
  • Linux synchronization mechanisms in driver development
  • The Kernel Report by Jonathan Corbet of LWN.net
  • Fast boot: Tips and techniques for improving Linux startup time
  • Real time vs. real fast: How to choose? by Paul McKenney

Vision 2008 is sponsored in part by Freescale.

  • Test Drive: If you’d like to take MontaVista Linux for a spin register for a free Test Drive session. You’ll be able to access a live system over the web including access to a Virtutech Simics powered hardware simulator.
  • If you have more questions please enter your questions as a comment below. Ian and I will post all the answers we can get to.
  • Subscribe to my blog for other posts from me concerning multicore, embedded Linux, security, the GPL and open source licensing and a little about MontaVista. Just click here for to subscribe via RSS.

Thank you again for your attendance and questions!

 

Brad Dixon


A thank you to a great customer

September 10th, 2008

It seems a little odd to say thank you in a public setting to a customer you can’t name but that’s the odd spot I find myself in.

Back in 2003 I was drafted as an emergency fill in for a colleague at an important meeting. I thought I was just doing a quick favor. In actuality the potential customer had about a hundred fairly complicated questions to discuss about Linux in the telecom environment. Answering their questions turned into an all day meeting. I was exhausted at the end of it.

After a brief pause I’ve been associated with this customer almost continually. I’ve worked closely with them on technical, business, and of course around requirements for new products. I can say confidently that this engineering team is one of the most professional that I’ve ever worked with. Even when they are under fire they work with each other and their partners with respect.

They are also incredibly competent. The nature of their applications and their customers demands the utmost accountability for failure and expertise at every level of abstraction. One technical issue literally had to be tracked down to a defect in an upgraded firmware load delivered in a new batch of hard drives. The systematic analysis skills and discipline required to kill that problem are not demonstrated widely.

I’m taking on a new set of responsibilities at MontaVista and as such I’m having to, after 5 years, back away a bit from my favorite customer. As I do so they should know that they have my respect and that I’m always a phone call or email away.

Thank you!

Brad


Freescale/MontaVista webinar on multicore…. Vision, too!

September 4th, 2008

It’s been a really busy week for me. Just put the wraps on a webinar that is premiering next week discussing multicore computing with Freescale. Ian Forsythe of Freescale will discuss the multicore challenge and their announced 8-core processor the P4080. I’ll follow up with a discussion of a strategy to migrate your application from single core to multicore.

Just a little taste of what will be in the session:

Linux’s inherent readiness for multicore

LongMarch

I hope you’ll attend. You can register for one of two timeslots:

Here’s the more official description:

When considering a move to a multicore environment, the number one
question embedded developers ask is “how do I leverage the work I’ve
already done in my applications?” Though multicore hardware has
provided improved performance for the embedded market, software
developers are challenged with taking advantage of the millions of
lines of single-threaded legacy code they have already written. This
creates a paradigm shift in how developers must think about and
implement future programs. This webinar will discuss the benefits of
embedded Linux as a solution with multicore and help systems engineers
consider what’s important as they make the transition. We will
conclude with an overview of MontaVista TestDrive, a virtual
evaluation of MontaVista Linux on a Virtutech Simics model of the
Freescale QorIQ P4080 and MPC8641D Power Architecture processors. We
invite attendees to sign-up for an evaluation of MontaVista software
on the latest Freescale multicore environments.


Practical GPL compliance advice

August 26th, 2008

The Software Freedom Law Center (SFLC) describes itself succinctly:

We provide legal representation and other law-related services to protect and advance Free and Open Source Software (FOSS). Founded in 2005, the Center now represents many of the most important and well-established free software and open source projects.

Have you heard of them? If not then maybe their actions are a little more familiar. The SFLC has been involved in GPL compliance actions and lawsuits against companies such as Supermicro, Extreme Networks, Bell Microproducts, and other notable companies. Most of the time these enforcement actions are centered on the busybox application since the SFLC represents the authors of busybox and this tool is commonly shipped with embedded devices.

My position on GPL compliance is simple: I want the company I work for to comply and the customers I work with to comply with all relevant software licenses both proprietary and open source. Compliance often is a natural outcome of having a well designed engineering process. Bradley M. Kuhn in his blog says that “…I’ve found myself repeating this advice on the phone, again and again, to another new GPL violator who screwed it all up, just like the last one did.” My limited observations mesh with his. I’ve see far more simple compliance issues caused by ignorance or oversight and zero complex violations caused by forethought and malice.

Of course… I’m not in the enforcement business. I’m just not looking with the same intent that the SFLC is. My role has mostly been educational.

The SFLC just published “A Practical Guide to GPL Compliance” by Kuhn, Williamson, and Sandler to their website. I’d consider this a “must read” for a few reasons:

  • They offer what I consider to be some great advice on the practicalities of compliance. Simple edicts like making sure that you don’t have one “build guru” who holds the sole knowledge of how to assemble your product.
  • They clearly have an understanding of the embedded software realm from both the technical and business perspective. Direct commentary on how to work with 3rd party contractors or ODM’s is included.
  • The SFLC is also a likely opponent in a GPL compliance issue if it were to face your company. They want you to comply and do so without coercion. If one were to fail to comply then the SFLC might well knock on your door. Their advice on how they view compliance is enlightening and reading up on it could be considered a risk mitigation strategy.

I do have some criticisms of the document, however. My engineering perspective of the world has often caused frustration as I’ve learned about legal issues from experts like MontaVista’s Jason Wacha. I’ve always looked for a “license compliance compiler” that would crunch your code and tell you if you were in compliance with the applicable licenses. The truth of the matter is that no such tool will ever exist. Yes, I know about Black Duck and Palamida. These tools just correlate source code to the licenses conventionally associated with the code. Not the problem I’m concerned about here.

The reason that there will never be a “license compliance compiler” is that, at least in civil law in the US, much of it seems to be about risk. My engineer observations are that attorneys view the situation and then describe the risks of proposed decisions to management. The GPL does not provide complete and total guidance on all aspects of compliance. Much of the risk evaluation comes from the viewpoints and opinions of groups who have standing to sue… in this particular case the SFLC!

[Note that this lack of complete and total guidance for complying with the GPL isn’t a criticism of the GPL. Many (all?) contracts and licenses seem to be like this.]

My criticism is that there are some places where the SFLC’s compliance guide represents their opinion of necessary compliance steps as something grander. An example:

“We consider the name of the [proprietary] compiler [that can’t be shipped with source code], its exact version number, and where it can be acquired as information that must be provided as part of the Corresponding Source.” [emphasis theirs]

The “We” in this statement is the SFLC which represents the authors of various open source licensed code. The word “must” really means that it is SFLC’s strong opinion that one should provide this information. It is also my opinion that this is a common courtesy that is painless to implement. Why not provide this information?

My opinion on the matter, and SFLC’s as well, should be more clearly designated as just that: opinion. My last nuance on this before I end is that not all opinions are created equally. SFLC can enact a GPL compliance action against your company. I can’t. You should read this document and factor the advice it offers as both practical advice for complying with the GPL and for avoiding the ire of the friends of the open source communities at the SFLC.


The interesting problems just start at the kernel

August 25th, 2008

It has been a very interesting year looking out the window at the embedded Linux scene. I see total mainstream adoption as a clear and present trend. I base this off of “man-on-the-street” conversations with acquaintances. I was at a training conference on a non-technical topic. Asked what MontaVista did I gave my non-technical explanation. Quick as anything the person replies… “oh, embedded Linux. Yes, our engineers use that.”

Linux and the importance it has to technology product companies is now common awareness. That means something significant.

I’ve also seen a strong trend in recognition that the compelling problems of today are well outside the realm of just kernels, toolchains, and booting. The profound increase in potential software capability that open source brings to bear on new products has its one set of challenges. You can do media, office applications, advanced networking, wireless networking, power management, etc… but making choices and integration are far more challenging.

We’ve been able to help many of our clients to fabricate compelling products using a whole range of technologies north of the kernel. We’ll have some fun time discussing these in the coming months, I hope.

So since the action just starts at the kernel let’s take a moment to plug some upcoming conferences where you can explore these issues:

  • Linux Plumbers Conference, September 17th-19th in Portland, OR: If you’ve ever been to the Ottawa Linux Symposium then I imagine this will be like that… just with a focus on all of the interfaces that bridge the kernel/userspace/application divide.
  • MontaVista’s own Vision 2008 conference, October 1-3rd in San Francisco, CA: We had 400 attendees from 13 countries attend last year on this inaugural event. If you’re focus is on commercial product creation using Linux then this is a great even to network, learn, and brainstorm at.
  • DESIGN & ELEKTRONIK Entwicklerforum, Oct 15, 2008 in Stuttgart: I had not heard of this conference before but there are a number of interesting presentations scheduled including two of from my fine colleague, Klaas van Gend and Ned Miljevic.
  • Embedded Linux Conference Europe, November 6-7th in Ede, The Netherlands: One of the big dogs of the annual embedded Linux conferences. The Klaas & Ned show is making an appearance here as well.

So there you go… blow your annual travel budget out and make them all!

If you can only pick one then pick Vision 2008. :)

Brad


Why am I smiling?

August 8th, 2008

In this line of work there are often things you can’t say. You just can’t go around talking about what our customers do with MontaVista Linux. Like I couldn’t possibly talk about the smile I get on my face when the chock-full-of-MontaVista-goodness high speed 3G cellular data network delivers packets to my <insert the name of the absurdly popular phone>. Can’t talk about that.

A few LinuxDevices.com articles will show you what other folks have said, though. Over on linux.com read up about how RipCode is helping MySpace to deliver video using MontaVista Linux.

Or you can read about how seven new MontaVista powered LiMo based phones were announced.

[Note… I don’t have a problem directly linking to LinuxDevices.com… maybe they’ll return the favor the next time they mention my blog!]

I stared with MontaVista back in 2000. Long time ago. I spent all my time answering questions about what Linux was, why open source wasn’t communism, and how someday our erstwhile competitors would come to regret the FUD they spread about Linux. Now a days I get to go to Best Buy and point out MontaVista powered products all over the place.

It makes me smile not because of some corporate dominance game. It makes me smile bcause I was part of this fight in the war for open source ascendancy and we won it. Reading Cuong Nguyen of RipCode say “We only considered Linux” makes me smile and would make me smile even if they weren’t our customers.


Close
  • Social Web
  • E-mail
Developer Resources
search
Contact Us    Careers    Blogs    Request Information    Resource Download Library
©2008 MontaVista Software, Inc. All Rights Reserved