Re: om-2.6 patch for kcomd (pre-pre-alpha)

shogunx <[email protected]>
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Well done Matt.


On Tue, 11 Jul 2006, Matt Dew wrote:

> Hi all,
>   Here's a patch to the current git tree (7/11/06) that contains the new
> kcomd code.   kcomd is the new kernel daemon that handles migration for
> the processes.
>
> Moshe, Bruce, if this patch is too large I can put it on a web server
> for people to download.   ?
>
> There is a README included but here's a quick intro.
>
> All communication between nodes is done via packets.  Each packet
> consists of a header, which has information about which pid this packet
> belongs to, how much data accompanies this packet, the type of packet
> (initial migration, system call, signal, etc), and the payload of data
> that immediately follows.
>
> The processes are responsible for generating the packets, adding them to
> linked lists and then signalling the kcomd daemon that a packet is ready
> for transmission.  All this is done in the kernelspace stubs of the
> userspace processes.  The userspace programs don't see anything.
>
> kcomd sleeps until there is work to do. Either a received packet to
> process or a packet to send.  Then goes back to slees.
>
> kcomd wakes up on the signal and sends the packet to the corresponding
> node.  When a packet is received, kcomd wakes up and checks to see which
> process this packet belongs to, puts it into the process's linked list
> and informs the process it has either new data or a response to a
> previously sent packet.
>
> The code isn't very clean but if I wait until I'm happy with it I'll
> never send it. :)
>
> compile kcomd as a module.
>
> Currently, issuing a migration command (echo $IP > /proc/../om/where)
> will send a migration init packet to the other node, which sends a
> reply.   You can run as many simulaneously as you want.  There doesn't
> appear to be any memory leaks.
>
> This is just to show that communications are working and the foundation
> plan is solid.  Adding the code for real migrations is next, as is a
> massive cleanup.  :)
>
> Please try the patch and review the code. I'm not a programmer and I am
> asking for help.  There are plenty of commented printk statements you
> can uncomment to get a better idea of what's happening.
>
>
> config options:
> #
> # HPC options
> #
> CONFIG_KCOMD=m
> CONFIG_OPENMOSIX=y
> # CONFIG_OPENMOSIX_VERBOSE is not set
> # CONFIG_OPENMOSIX_DEBUG is not set
> # CONFIG_OPENMOSIX_CTRL_FS is not set
>
> Matt
>
>

sleekfreak pirate broadcast
http://sleekfreak.ath.cx:81/



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.