[erlang-questions] Ling: Erlang over Xen, no OS required

659 views
Skip to first unread message

Viktor Sovietov

unread,
Jul 13, 2012, 3:30:41 AM7/13/12
to erlang-q...@erlang.org
Ling is highly compatible (with R15B) Erlang VM that is capable to run
over bare virtual iron on Xen hypervisor without the need in
underlying operating system.

Learn more on : http://erlangonxen.org/

There are similar projects for OCaml http://www.openmirage.org/
and Haskell http://halvm.org/

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Pierpaolo Bernardi

unread,
Jul 13, 2012, 3:51:18 AM7/13/12
to Viktor Sovietov, erlang-q...@erlang.org
That's incredibly cool!

Viktor Sovietov

unread,
Jul 13, 2012, 4:19:02 AM7/13/12
to erlang-q...@erlang.org
Probably, it is, the next step is implementing really elastic scalable
service.

On 13 Лип, 10:51, Pierpaolo Bernardi <olopie...@gmail.com> wrote:
> That's incredibly cool!
>

> On Fri, Jul 13, 2012 at 9:30 AM, Viktor Sovietov<victor.sove...@gmail.com> wrote:
> > Ling is highly compatible (with R15B) Erlang VM that is capable to run
> > over bare virtual iron on Xen hypervisor without the need in
> > underlying operating system.
>
> > Learn more on :http://erlangonxen.org/
>
> > There are similar projects for OCaml  http://www.openmirage.org/

> > and Haskellhttp://halvm.org/
>
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questi...@erlang.org


> >http://erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list

> erlang-questi...@erlang.orghttp://erlang.org/mailman/listinfo/erlang-questions

Miles Fidelman

unread,
Jul 13, 2012, 8:14:19 AM7/13/12
to erlang-q...@erlang.org
+1
--
In theory, there is no difference between theory and practice.
In practice, there is. .... Yogi Berra

JD Bothma

unread,
Jul 13, 2012, 8:20:43 AM7/13/12
to Viktor Sovietov, erlang-q...@erlang.org
Probably a silly question but...

How does networking work without an OS? Do you just assign an
interface in Xen that Ling knows how to manage directly? Is Ling
'basically' the standard VM with this and other facilities that the OS
would provide hacked on?

Why does Ling mean "no more out of memory crashes"? How does Ling deal
with using up its allocated memory?

Sounds cool! Is it open source?

JD

Viktor Sovietov

unread,
Jul 13, 2012, 9:26:46 AM7/13/12
to erlang-q...@erlang.org

On 13 Лип, 15:20, JD Bothma <jbot...@gmail.com> wrote:
> Probably a silly question but...
>
> How does networking work without an OS? Do you just assign an
> interface in Xen that Ling knows how to manage directly? Is Ling

Both TCP/IP stack and filesystem are accessible by 9P protocol over
Xen's virtual Ethernet. It's quite efficient, since it uses zero-copy
scheme to pass pages to dom0. In dom0 we run resource re-export server
that maps network and filesystems to Ling instances. That part is
still far away from being optimal, but it'll improve in near future.

> 'basically' the standard VM with this and other facilities that the OS
> would provide hacked on?

Ling uses only basic mechanisms of resource management which are
necessary to compile and run Erlang code. All of the are much easier
than their analogs in major OSes, because there is no need to share
resources with other processes. Everything which can be externalized
is served by dom0 services and the hypervisor itself.

>
> Why does Ling mean "no more out of memory crashes"? How does Ling deal
> with using up its allocated memory?

It's well-known BEAM's disadvantage to behave inadequately when OOM
happened. Ling has predictable behavior when all memory is gone and
able to sort out things even in such tough conditions.

>
> Sounds cool! Is it open source?

That's still under consideration. In any case, binaries will be
accessible soon.

>
> JD
>
> On 13 July 2012 09:30, Viktor Sovietov <victor.sove...@gmail.com> wrote:> Ling is highly compatible (with R15B) Erlang VM that is capable to run


> > over bare virtual iron on Xen hypervisor without the need in
> > underlying operating system.
>
> > Learn more on :http://erlangonxen.org/
>
> > There are similar projects for OCaml  http://www.openmirage.org/

> > and Haskellhttp://halvm.org/
>
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questi...@erlang.org


> >http://erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list

> erlang-questi...@erlang.orghttp://erlang.org/mailman/listinfo/erlang-questions

fr...@circlewave.net

unread,
Jul 13, 2012, 5:08:33 PM7/13/12
to Viktor Sovietov, erlang-q...@erlang.org
On Fri, Jul 13, 2012 at 12:30:41AM -0700, Viktor Sovietov wrote:
> Ling is highly compatible (with R15B) Erlang VM that is capable to run
> over bare virtual iron on Xen hypervisor without the need in
> underlying operating system.
>
> Learn more on : http://erlangonxen.org/

Interesting -- it's looking like it's not a port of BEAM? Is source code
available somewhere? How do you handle TCP/IP networking + persistent
storage without an OS?

BR,
-- Jachym

Viktor Sovietov

unread,
Jul 15, 2012, 4:31:24 PM7/15/12
to erlang-q...@erlang.org

On 14 Лип, 00:08, fr...@circlewave.net wrote:
> On Fri, Jul 13, 2012 at 12:30:41AM -0700, Viktor Sovietov wrote:
> > Ling is highly compatible (with R15B) Erlang VM that is capable to run
> > over bare virtual iron on Xen hypervisor without the need in
> > underlying operating system.
>
> > Learn more on :http://erlangonxen.org/
>
> Interesting -- it's looking like it's not a port of BEAM? Is source code

You're correct, it's different VM developed from the scratch.


> available somewhere?

We didn't publish sources yet for number of reasons - the business
model of this product isn't defined yet, VM itself is under heavy
development, it's quite specific piece of code which requires deep
knowledge of BEAM, etc, etc, etc.

> How do you handle TCP/IP networking + persistent
> storage without an OS?

It had been done through 9P client in VM and re-export server in dom0
that shares filesystems and network access for Ling instances.

>
> BR,
>         -- Jachym
> _______________________________________________
> erlang-questions mailing list

> erlang-questi...@erlang.orghttp://erlang.org/mailman/listinfo/erlang-questions

Reply all
Reply to author
Forward
0 new messages