InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Linden Labs Help Mono Fix Leaks

Posted by Jonathan Allen on Jan 23, 2007

Sections
Development
Topics
.NET
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

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.