L4Linux/shmnet

From TUDOS-Wiki
Revision as of 21:48, 13 December 2010 by Adam (talk | contribs) (Created page with "== L4Linux shared memory network == The driver '''l4shmnet''' can connect two L4Linuxes, providing network interfaces and using a shared memory to exchange data. To use the driv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

L4Linux shared memory network

The driver l4shmnet can connect two L4Linuxes, providing network interfaces and using a shared memory to exchange data. To use the driver to make sure to include in your L4Linux build, it's available under that L4Linux/stub drivers menu.

For the first Linux add as a kernel parameter:

l4shmnet.add=shmns,macpart=1,create

For the second add as a kernel parameter:

l4shmnet.add=shmns,macpart=2

In the start script, add:

local shmns = L4.default_loader:create_namespace({ shm = "placeholder" });

and add shmns with rw rights to both L4Linuxes:

caps = { .... , shmns = shmns:mode("rw"), .... }

When starting the Linuxes you should see a ethX in each instance running. Add (different) IPs and pinging should work.