InfoQ

News

Linden Labs Help Mono Fix Leaks

Posted by Jonathan Allen on Jan 23, 2007 06:00 AM

Community
.NET
Topics
Tags
Mono

The Second Life developers at Linden Labs, working in conjunction with the Mono team, have been able to fix several memory leaks in Mono, significantly improving the runtime performance and stability of the platform.

Since 2005, Linden Research has been considering Mono as the runtime for their scripting engine. The original plan called for compiling the Linden Scripting Language into CIL. CIL or Common Intermediate Language is an assembly-like language that all higher level programming languages like C# and VB need to be compiled to prior to being run by Microsoft's CLR or the Mono runtime.

Presumably Mono was chosen for its cross-platform capabilities. Mono, which is supported by Novell, is currently the most complete cross-platform implementation of the .NET framework available for commercial projects.

At the LANG.Net 2006 Symposium, Babbage Linden presented their work in integrating LSL. Babbage reports (http://blog.secondlife.com/2006/08/06/langnet-2006/) that the conference went over quite well.

I was initially concerned that the collection of hacks I presented for embedding Mono in SL might appall people, but the consensus seemed to be that they were neat hacks and they generated a lot of discussion about potential future enhancements to the CLR. A lot of discussion at the conference was about supporting dynamic languages like Ruby which, like Second Life, would benefit immensely from support for continuations in the CLI. Hopefully we’ll see them in the future.

During the presentation, Babbage noticed that the simulator memory was steadily growing. Concerned, he first examined his own code for memory leaks. Not finding any, he turned to the Mono runtime itself.

Using Valgrind's memcheck and massif tools, Babbage was able to collect the information needed by Mono's Paolo Molaro to correct the issue. Early results show that Mono is no longer growing in size, indicating that the performance robbing flaws have been corrected.

Babbage concludes with

With this development, the work on Mono takes another step forwards. We’re currently working on moving script compilation to our new web services platform and once that’s done I can wire in the LSL to Mono compiler, bytecode injector and verifier as web services and then the main pieces of the work on Mono will be done.

 

No comments

Watch Thread Reply

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.