* Dom0 memory size is persistent?
@ 2005-11-29 22:54 Yoshi. Oguchi
2005-11-30 7:52 ` Matsumoto
0 siblings, 1 reply; 5+ messages in thread
From: Yoshi. Oguchi @ 2005-11-29 22:54 UTC (permalink / raw)
To: xen-devel
Hi,
I'm having a problem with increasing dom0 memory size.
I can change Dom0 memory size by setting dom0_mem in grub/menu.lst
and reboot.
However, when I start xend, Dom0 memory size is reset to the
previous size (yes, the memory size BEFORE reboot).
It seems when xend starts and xenstored is initialized,
the balloon driver adjusts Dom0 memory to the previous size
recorded in xenstored entry
(/local/domain/0/memory/target @ /var/lib/xenstored/tdb).
Should this entry be initialized at Dom0 boot?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dom0 memory size is persistent?
2005-11-29 22:54 Dom0 memory size is persistent? Yoshi. Oguchi
@ 2005-11-30 7:52 ` Matsumoto
2005-11-30 10:27 ` Keir Fraser
0 siblings, 1 reply; 5+ messages in thread
From: Matsumoto @ 2005-11-30 7:52 UTC (permalink / raw)
To: Yoshi. Oguchi; +Cc: xen-devel
Hi, all
I have the same problem.
The following is additional infomation.
>I can change Dom0 memory size by setting dom0_mem in grub/menu.lstand
reboot.
>However, when I start xend, Dom0 memory size is reset to the
>previous size (yes, the memory size BEFORE reboot).
I tried to test it.
The result is :
1.rm /var/lib/xenstored/tdb
2.setting dom0_mem=262144, and reboot
3.At this time, "xm list" show Dom0 is 256MB.
4.setting dom0_mem=524288, and dom0 is rebooted.
5.BUT "xm list" remain in 256MB.
1.rm /var/lib/xenstored/tdb
2.setting dom0_mem=262144, and reboot
3.At this time, "xm list" show Dom0 is 256MB.
4.rm /var/lib/xenstored/tdb
5.setting dom0_mem=524288, and dom0 is rebooted.
6.YES "xm list" show Dom0 is 512MB.
I think tdb should be re-create every time dom0 is started.
Am I correct?
Sincerely Yours,
Nakato
On Wed, 30 Nov 2005 07:54:02 +0900
"Yoshi. Oguchi" <y-oguchi@jp.fujitsu.com> wrote:
> Hi,
>
> I'm having a problem with increasing dom0 memory size.
>
> I can change Dom0 memory size by setting dom0_mem in grub/menu.lst
> and reboot.
> However, when I start xend, Dom0 memory size is reset to the
> previous size (yes, the memory size BEFORE reboot).
>
> It seems when xend starts and xenstored is initialized,
> the balloon driver adjusts Dom0 memory to the previous size
> recorded in xenstored entry
> (/local/domain/0/memory/target @ /var/lib/xenstored/tdb).
>
> Should this entry be initialized at Dom0 boot?
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dom0 memory size is persistent?
2005-11-30 7:52 ` Matsumoto
@ 2005-11-30 10:27 ` Keir Fraser
2005-11-30 15:01 ` Anthony Liguori
0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2005-11-30 10:27 UTC (permalink / raw)
To: Matsumoto; +Cc: xen-devel, Yoshi. Oguchi
On 30 Nov 2005, at 07:52, Matsumoto wrote:
> I think tdb should be re-create every time dom0 is started.
> Am I correct?
Yes, that is a perfectly good fix. We are even thinking about adding an
init script to our install that will delete the tdb database file
automatically for you.
-- Keir
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dom0 memory size is persistent?
2005-11-30 10:27 ` Keir Fraser
@ 2005-11-30 15:01 ` Anthony Liguori
2005-12-01 12:09 ` Ewan Mellor
0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2005-11-30 15:01 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel, Yoshi. Oguchi, Matsumoto
Keir Fraser wrote:
>
> On 30 Nov 2005, at 07:52, Matsumoto wrote:
>
>> I think tdb should be re-create every time dom0 is started.
>> Am I correct?
>
>
> Yes, that is a perfectly good fix. We are even thinking about adding
> an init script to our install that will delete the tdb database file
> automatically for you.
And blow away the entire store? Why not just blow away the domain
configuration paths (/local and /vm)? I thought the /tool path was
going to persistent across reboots.
Regards,
Anthony Liguori
> -- Keir
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dom0 memory size is persistent?
2005-11-30 15:01 ` Anthony Liguori
@ 2005-12-01 12:09 ` Ewan Mellor
0 siblings, 0 replies; 5+ messages in thread
From: Ewan Mellor @ 2005-12-01 12:09 UTC (permalink / raw)
To: Anthony Liguori; +Cc: xen-devel, Yoshi. Oguchi, Matsumoto
On Wed, Nov 30, 2005 at 09:01:31AM -0600, Anthony Liguori wrote:
> Keir Fraser wrote:
>
> >
> >On 30 Nov 2005, at 07:52, Matsumoto wrote:
> >
> >>I think tdb should be re-create every time dom0 is started.
> >>Am I correct?
> >
> >
> >Yes, that is a perfectly good fix. We are even thinking about adding
> >an init script to our install that will delete the tdb database file
> >automatically for you.
>
> And blow away the entire store? Why not just blow away the domain
> configuration paths (/local and /vm)? I thought the /tool path was
> going to persistent across reboots.
I have changed xenstored to remove /local when it starts, and I have changed
Xend to ignore the maxmem and memory settings for Dom 0 when _it_ starts.
These two things together should be sufficient to ensure that stale data are
not used, while preserving the contents of /tools, /vm etc. This should solve
your problem.
Cheers,
Ewan.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-01 12:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-29 22:54 Dom0 memory size is persistent? Yoshi. Oguchi
2005-11-30 7:52 ` Matsumoto
2005-11-30 10:27 ` Keir Fraser
2005-11-30 15:01 ` Anthony Liguori
2005-12-01 12:09 ` Ewan Mellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.