unusable migration daemon for 2.6

Niels de Vos <[email protected]>
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Hello everyone,

Today I'be put up an anonymous svn-server for downloading my python
migration daemon. As I'm only having my laptop for testing at the
moment, the daemon is NOT TESTED AT ALL. My previous message was about
kernel-panics on manual migration. As long as I'm not able to migrate a
process by hand, I won't be testing migration-functionality... That far
for a migration-daemon :(

The principle of the daemon is fairly easy. There is an agent and a
master implemented. The master should run on a
'master-server' (processes are started from here), the agent runs on
dumb-nodes. Every second or so, the /proc-directory is checked for
processes to migrate. When a candidate is found, the master sends a
migration-request to a free (load <= 0.50 - for now) agent. The agent
checks the migration-request (containing all info from /proc/<pid>/stat
and more) and decides to accept/decline migration.

An agent anounces itself every 30 seconds, by broadcasting it's
load-info and ip-address. The master keeps a list of migrated-processes,
agents, migratable-processes and things like that.

The real schedulers are very simple, a port of the 2.4-om-scheduler is
planned. Because of the little documentation, this is not expected to be
done soon. For the moment the agent doesn't do any scheduling (always
accepts migrationrequests) and the master takes a random process to
migrate.

If someone could have a look at this and make suggestions of some kind,
I would really be pleased.

You can download my code like this:
$ svn co http://nixbox.nixpanic.net/repos/dev/om-userspace nixpanic-omus

All scripts are than located in 'nixpanic-omus/trunk/src'. The
start-script is called 'omd', use it like './omd agent' or './omd
master'. All debugging is turned on by default, no cmd-line-options to
turn it off at the moment. As said before, it's only tested on
'localhost' without really migrating anything...

Thanks for reading this and sending a reply :)
Niels

PS: As I'm in the middle of moving between appartments, I can only read
my email rarely; living in Berlin (GMT+1) earliest friday afternoon,
don't expect fast replies...sorry
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBDMYfjUHyL+FAJ7UYRApoaAJsGFPqXICl33YH1zPZPJumTAfFXlACg9Sml
f2koMFEv8/FqVTjEmVGhY3o=
=B6eX
-----END PGP SIGNATURE-----
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.