nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

XEN Linux VPS reclaim or recover memory when a guest domain 0 is shutdown

This is a discussion on XEN Linux VPS reclaim or recover memory when a guest domain 0 is shutdown within the XEN forums, part of the Linux virtualization category; When a domain shuts down, Domain 0 doesn't actually reclaim the memory since it is expecting to start another guest ...


Go Back   nixCraft Linux Forum > Linux virtualization > XEN

Linux answers from nixCraft.


XEN Discussion about Xen virtual machine monitor (VPS)

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-06-2007, 09:50 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 703
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default XEN Linux VPS reclaim or recover memory when a guest domain 0 is shutdown

When a domain shuts down, Domain 0 doesn't actually reclaim the memory since it is expecting to start another guest domain in that memory. However you can free that memory too using virsh or xm command.

The xm program is the main interface for managing Xen guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains, enable or pin VCPUs, and attach or detach virtual block devices.

The virsh program is the main interface for managing virsh guest domains. The program can be used to create, suspend, resume, save, and shutdown domains.

So if guest is using 128M use following command to reclaim memory:
Code:
xm mem-set 0 <memory-size>
For 128M, enter command:
Code:
xm mem-set 0 128
Above command force domain 0 to reclaim all of memory. Above will set the domain's used memory using the balloon driver. Because this operation requires cooperation from the domain operating system, there is no guarantee that it will succeed. Warning: there is no good way to know in advance how small of a mem-set will make a domain unstable and cause it to crash. Be very careful when using this command on running domains.
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Howto: Linux recover lost partitions? chimu Linux software 4 14-09-2009 02:48 PM
Track last reboot / shutdown time on linux server sweta Linux software 1 16-07-2007 06:20 AM
Add or attach new virtual usb block device for Linux XEN guest VPS rockdalinux XEN 0 15-06-2007 09:31 PM
Linux shutdown computer specific time chiku Linux software 1 27-04-2007 04:53 PM
Linux my laptop computer unable to power off when I shutdown cityblogger Linux software 1 05-07-2006 12:24 PM


All times are GMT +5.5. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38