Re: how to echo to stay in openmosix 2.6.17?
Niels de Vos <[email protected]> Fri, 30 Mar 2007 19:56:46 +0200
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0326561627== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-1KdK/AVOeWBGT/TSyyJM" --=-1KdK/AVOeWBGT/TSyyJM Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Apollo, On Wed, 2007-03-28 at 09:02 -0400, Apollo Wong wrote: > I need to protect the Xvnc process on each node not to be migrated. I > was trying to manually echo some stay reason into /proc/$PID/om/stay, > but all I got is invalid arguments from bash. So my question is how > can I protect a process manually from migrating in om2.6? Am I on the > right track to try using om/stay? Or there are something else. Thanks. os/stay is created by the om-kernel. If the kernel says it's possible to migrate the process, omd will migrate it. To prevent something like this, omd needs to be extended. Processes are normally 'blacklisted' if om/stay is not empty. The check to see if a process is blacklisted can be extended to check processnames against a list which contains "don't migrate these processes". This requires reading some config-file and creating such a list with processnames. I think the check against the list should be done in libom.py ProcessList.getProcessInfo(pid). If you're able to create a patch, I'll happily integrate it into SVN. At the moment I do not have much time for stuff like this, unfortunately. For now I've noted it on the TODO-list in the README. Cheers, Niels --=-1KdK/AVOeWBGT/TSyyJM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGDU9eUHyL+FAJ7UYRAlvWAKDGHeTJCpFpiHiP9kyk7r1MZ5LW7QCePDgn hOjXTtru1GxfXGO8A7jMUdQ= =mBrq -----END PGP SIGNATURE----- --=-1KdK/AVOeWBGT/TSyyJM-- --===============0326561627== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============0326561627== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel --===============0326561627==--