OpenVZ Forum


Home » General » Support » Disable migration
Disable migration [message #37591] Mon, 28 September 2009 19:19 Go to next message
tyggna is currently offline  tyggna
Messages: 1
Registered: September 2009
Junior Member
Is there a configuration directive I can use to disable the migration feature?

I'm in an environment where kernel memory is scarce--and being rid of the 8 process threads that migration spawns would be very helpful.
Re: Disable migration [message #37595 is a reply to message #37591] Tue, 29 September 2009 07:31 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

you can disable to load OpenVZ migration/checkpointing linux kernel modules, vzrst and vzcpt in vz init script

---8<...
if [ "${MODULES_DISABLED}" != "yes" ]; then
PRELOAD_MODULES="af_packet"
MODULES="vzmon vzdquota vzdev"
----> #CPT_MODULES="vzcpt vzrst" <----
MODULES_OTHER="vzcompat ${CPT_MODULES}"
---8<...

or add a directive, in /etc/vz/vz.conf

---8<...
MIGRATION="no"
---8<...

and a patched vz init.d script:

--- /etc/init.d/vz 2009-09-29 09:24:36.336995392 +0200
+++ /etc/init.d/vz-new 2009-09-29 09:26:31.398503384 +0200
@@ -60,7 +60,9 @@
if [ "${MODULES_DISABLED}" != "yes" ]; then
PRELOAD_MODULES="af_packet"
MODULES="vzmon vzdquota vzdev"
- CPT_MODULES="vzcpt vzrst"
+ if [ "${MIGRATION}" != "no" ]; then
+ CPT_MODULES="vzcpt vzrst"
+ fi
MODULES_OTHER="vzcompat ${CPT_MODULES}"
VNET_MODULES="vznetdev vznet"
VETH_MODULES="vzethdev"


Bye,
Thorsten
Previous Topic: 2.6.18 in debian/ubuntu
Next Topic: Open VNC console and Windows
Goto Forum:
  


Current Time: Mon Oct 21 05:05:56 GMT 2024

Total time taken to generate the page: 0.06049 seconds