hi all, i want to know when exactly does the memory get released back to dom0 when domU is shutdown are destroyed. Actually i was just playing with the code, and it so happened that now when i shutdown/destroy my domU memory is not getting released back to dom0. The bad part is that even after undoing all the changes the problem persists.. I did a bit of debugging, and it looks like domain_destroy is able to return successfully, i mean functions like relinquish_memory and domain_relinquish_resources are returning as expected. But after all that when i do xenstore-ls/xm list, it shows dom0 with the reduced memory itself. thanks, Sandesh Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Luke S Crawford
2008-Jul-08 19:58 UTC
Re: [Xen-devel] domU unable to release memory to dom0
Sandesh <sandesh.ahiremath@wipro.com> writes:> i want to know when exactly does the memory get released back to dom0 > when domU is shutdown are destroyed. Actually i was just playing with > the code, and it so happened that now when i shutdown/destroy my domU > memory is not getting released back to dom0. The bad part is that even > after undoing all the changes the problem persists..>From what I understand, when a XenU exits, it frees the memory back to thexen free pool, but does not automatically baloon that ram back to the Dom0. look at ''xm info'' - is the ram from the DomU being sent back to the free_memory pool? if so, and you want the ram back in the Dom0, just ''xm mem-set 0 [megabytes]'' Personally, I have had some problems with balooning the Dom0 up and down, so I set dom0_mem on the kernel command line and dom0-min-mem in xend-config.sxp to the same value. I don''t ever do anything in the Dom0 anyhow, so there is no reason to keep free ram in the Dom0 rather than the free pool. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> from what I understand, when a XenU exits, it frees the memory back tothe xen free pool is this done by domain_relinquish_resources which eventually calls relinquish_memory??> but does not automatically baloon that ram back to the Dom0.is it done by xend then???> > look at ''xm info'' - is the ram from the DomU being sent back to the > free_memory pool?yes its in the free pool. But it is inconsistent. It does not come back immediately, after shuting down multiple domU, the whole chunk of it comes under free pool at once, instead of for each termination of domU.> > if so, and you want the ram back in the Dom0, just ''xm mem-set 0 [megabytes]'' >Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 8/7/08 22:44, "Sandesh" <sandesh.ahiremath@wipro.com> wrote:>> but does not automatically baloon that ram back to the Dom0. > is it done by xend then???xend only automatically frees memory from dom0 to build domUs. The reverse, on domU destruction, is not implemented. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel