I need to change the Xen''s memory limit (max_pages) for running domains. xm does not appear to have a command line option to do that. David ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
>I need to change the Xen''s memory limit (max_pages) for runningdomains.>xm does not appear to have a command line option to do that.Yep, it''s currently missing. We need to add a new xend -> domain control message that sets a domain''s mem_target. This can be plumbed in in an identical fashion to the shutdown/halt message requests that xend sends to domains. We then need to add a new command to xend to send the message. We should then add stuff to the domain polling code to check that the domain actually does what it''s been instructed to do, otherwise xend should consider terminating it. Ian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Oops, I wasn''t clear and meant something a bit simpler. It appears the DOM0_SETDOMAINMAXMEM op does not exist in xm. libxc has it, but it seems to be missing higher up in xend. I was surprised xm didn''t cover all the dom0 ops -- unless I''m being dumb and missed it. I''m using my perl script to handle that op for now. btw, I''ve also hit that problem people mentioned before about domains restarting too fast to kill. They are real hard to destroy when the domain dies instantly. Fortunately killing xend itself does the trick. I''d prefer if xm could accept the domain-name to identify domains (as well as the xen assigned domain number). ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > Oops, I wasn''t clear and meant something a bit simpler. It appears the > DOM0_SETDOMAINMAXMEM op does not exist in xm. libxc has it, but it > seems to be missing higher up in xend.Ahh, OK.> I was surprised xm didn''t cover all the dom0 ops -- unless I''m being > dumb and missed it.''xm'' is intended to be a smart UI tool, so it doesn''t always make sense to have a 1:1 mapping between xm commands and the underlying dom0 op.>From a UI POV, an ''xm mem max'' command should probably do a bitmore than just the dom0 op. If max_mem is set below target_mem it should automatically reduce target_mem and inform the domain. It should then watch the domain to check it actually gives up the pages. For the moment, just hacking in a command to do the dom0 op will suffice.> btw, I''ve also hit that problem people mentioned before about domains > restarting too fast to kill. They are real hard to destroy when the domain > dies instantly. Fortunately killing xend itself does the trick.Yep, it''s annoying. We should reboot domains at most once every 30s. (i.e. a long lived domain will reboot immediately, but looping domains are rate limited.)> I''d prefer if xm could accept the domain-name to identify domains > (as well as the xen assigned domain number).Yep, that''s the conclusion we''ve come to, and Mike is implementing. We''re inclined to take an even more extreme view and *never* expose Xen domid''s to users: everything will be done by the domain name. We''ll ensure that names are unique across a cluster, which is necessary for things like migration. Ian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
My VM expertise has hit its limit. I''m trying to change pagetable_init() in linux-2.4.26-xenU/arch/xen/mm/init.c to make room for future allocations of new pages from xen. The domain dies as soon as it tries to do this set_pmd() set_pmd(pmd, __pmd(_KERNPG_TABLE + __pa(pte_base))); for any space beyond start_info.nr_pages The values of pte_base and pmd line up with the values for all the other ptes, and fall within the "Page tables" region of the domain memory arrangement. Does domain creation somehow freeze the page table size for a domain? ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
No, you should be able to install zeroed page tables anywhere beneath HYPERVISOR_VIRT_START. The page table must be read only, of course. -- Keir> > My VM expertise has hit its limit. I''m trying to change > pagetable_init() in linux-2.4.26-xenU/arch/xen/mm/init.c > to make room for future allocations of new pages from xen. > The domain dies as soon as it tries to do this set_pmd() > set_pmd(pmd, __pmd(_KERNPG_TABLE + __pa(pte_base))); > for any space beyond start_info.nr_pages > > The values of pte_base and pmd line up with the values for all the other > ptes, and fall within the "Page tables" region of the domain memory > arrangement. > > Does domain creation somehow freeze the page table size for a domain? > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel