* PageReserved ?
@ 2005-07-15 18:26 aq
2005-07-15 18:48 ` Keir Fraser
0 siblings, 1 reply; 10+ messages in thread
From: aq @ 2005-07-15 18:26 UTC (permalink / raw)
To: xen-devel
hello,
here is my ballon information (domU)
#cat /proc/xen/balloon
Current allocation: 51200 kB
Requested target: 71680 kB
Low-mem balloon: 0 kB
High-mem balloon: 0 kB
Xen hard limit: ??? kB
This looks a little bit strange to me: Low/High-mem is 0K, and that
indicates from 51200K up (Current allocation) to 70MB, all the pages
are reserved, which means I cannot balloon memory (?). Anybody knows
why so much memory are reserved?
Thank you,
aq
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-15 18:26 PageReserved ? aq
@ 2005-07-15 18:48 ` Keir Fraser
2005-07-17 7:30 ` aq
0 siblings, 1 reply; 10+ messages in thread
From: Keir Fraser @ 2005-07-15 18:48 UTC (permalink / raw)
To: aq; +Cc: xen-devel
On 15 Jul 2005, at 19:26, aq wrote:
> This looks a little bit strange to me: Low/High-mem is 0K, and that
> indicates from 51200K up (Current allocation) to 70MB, all the pages
> are reserved, which means I cannot balloon memory (?). Anybody knows
> why so much memory are reserved?
Add a 'mem=' line to your kernel command line (e.g., 'mem=100M' should
work I think). That will ensure the domain makes itself a big enough
memory map to increase its memory reservation.
-- Keir
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-15 18:48 ` Keir Fraser
@ 2005-07-17 7:30 ` aq
2005-07-17 8:25 ` Keir Fraser
0 siblings, 1 reply; 10+ messages in thread
From: aq @ 2005-07-17 7:30 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
On 7/15/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
>
> On 15 Jul 2005, at 19:26, aq wrote:
>
> > This looks a little bit strange to me: Low/High-mem is 0K, and that
> > indicates from 51200K up (Current allocation) to 70MB, all the pages
> > are reserved, which means I cannot balloon memory (?). Anybody knows
> > why so much memory are reserved?
>
> Add a 'mem=' line to your kernel command line (e.g., 'mem=100M' should
> work I think). That will ensure the domain makes itself a big enough
> memory map to increase its memory reservation.
I still cannot create the "LowMem". Any suggestion? (I am running
latest -testing tree)
Here is my domain file:
--
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 32
maxmem = 80
name = "tty"
disk = [ 'file:/home/aq/myxen/rootfs.tty,hda1,w' ]
root = "/dev/hda1 ro"
extra = "mem=150"
---
And here is domU's /proc/xen/balloon (immediately after creating domain):
# cat /proc/xen/balloon
Current allocation: 32768 kB
Requested target: 32768 kB
Low-mem balloon: 0 kB
High-mem balloon: 0 kB
Xen hard limit: ??? kB
Thank you,
aq
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 7:30 ` aq
@ 2005-07-17 8:25 ` Keir Fraser
2005-07-17 9:40 ` aq
0 siblings, 1 reply; 10+ messages in thread
From: Keir Fraser @ 2005-07-17 8:25 UTC (permalink / raw)
To: aq; +Cc: xen-devel
On 17 Jul 2005, at 08:30, aq wrote:
> extra = "mem=150"
Should be 150M.
You are currently specifying a limit of 150 bytes, which gets ignored
by the guest when it boots.
-- Keir
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 9:40 ` aq
@ 2005-07-17 9:39 ` Keir Fraser
2005-07-17 9:49 ` aq
0 siblings, 1 reply; 10+ messages in thread
From: Keir Fraser @ 2005-07-17 9:39 UTC (permalink / raw)
To: aq; +Cc: xen-devel
On 17 Jul 2005, at 10:40, aq wrote:
> Then I tried extra mem: extra = "mem=xxxM" with xxx gets some value
> under 32M, domain boots fine, but then I always got "Low-mem balloon:
> 0 kB"
>
> With xxx > 32M, domain always failed to boot.
>
> Any suggestion now?
It's probably been broken by the 2.6.12 upgrade. I'll look into it.
-- Keir
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 8:25 ` Keir Fraser
@ 2005-07-17 9:40 ` aq
2005-07-17 9:39 ` Keir Fraser
0 siblings, 1 reply; 10+ messages in thread
From: aq @ 2005-07-17 9:40 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
On 7/17/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
>
> On 17 Jul 2005, at 08:30, aq wrote:
>
> > extra = "mem=150"
>
> Should be 150M.
>
> You are currently specifying a limit of 150 bytes, which gets ignored
> by the guest when it boots.
Too bad that I still have problem. My domain file is configured with
memory=32M, and maxmem=80M
--
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 32
maxmem = 80
--
Then I tried extra mem: extra = "mem=xxxM" with xxx gets some value
under 32M, domain boots fine, but then I always got "Low-mem balloon:
0 kB"
With xxx > 32M, domain always failed to boot.
Any suggestion now?
Thank you,
aq
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 9:39 ` Keir Fraser
@ 2005-07-17 9:49 ` aq
2005-07-17 9:53 ` Keir Fraser
0 siblings, 1 reply; 10+ messages in thread
From: aq @ 2005-07-17 9:49 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
On 7/17/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
>
> On 17 Jul 2005, at 10:40, aq wrote:
>
> > Then I tried extra mem: extra = "mem=xxxM" with xxx gets some value
> > under 32M, domain boots fine, but then I always got "Low-mem balloon:
> > 0 kB"
> >
> > With xxx > 32M, domain always failed to boot.
> >
> > Any suggestion now?
>
> It's probably been broken by the 2.6.12 upgrade. I'll look into it.
No, this is -testing tree (kernel 2.6.11.12)
Thank you,
aq
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 9:49 ` aq
@ 2005-07-17 9:53 ` Keir Fraser
2005-07-17 10:48 ` aq
0 siblings, 1 reply; 10+ messages in thread
From: Keir Fraser @ 2005-07-17 9:53 UTC (permalink / raw)
To: aq; +Cc: xen-devel
On 17 Jul 2005, at 10:49, aq wrote:
>>> With xxx > 32M, domain always failed to boot.
>>>
>>> Any suggestion now?
>>
>> It's probably been broken by the 2.6.12 upgrade. I'll look into it.
>
> No, this is -testing tree (kernel 2.6.11.12)
I'd add xprintk's to the domU code (or turn printk into xprintk) and do
a debug build of Xen. That'll get some early output from domU. Then you
can work out how far it is getting and ultimately what line of code is
failing.
-- Keir
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 9:53 ` Keir Fraser
@ 2005-07-17 10:48 ` aq
2005-07-17 10:50 ` Keir Fraser
0 siblings, 1 reply; 10+ messages in thread
From: aq @ 2005-07-17 10:48 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
On 7/17/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
>
> On 17 Jul 2005, at 10:49, aq wrote:
>
> >>> With xxx > 32M, domain always failed to boot.
> >>>
> >>> Any suggestion now?
> >>
> >> It's probably been broken by the 2.6.12 upgrade. I'll look into it.
> >
> > No, this is -testing tree (kernel 2.6.11.12)
>
> I'd add xprintk's to the domU code (or turn printk into xprintk) and do
> a debug build of Xen. That'll get some early output from domU. Then you
> can work out how far it is getting and ultimately what line of code is
> failing.
ah, this is interesting. i will give it a try. lets see how to do that:
- you suggest adding xprintk to domU code - but exactly which code?
- or better redefine printk to xprintk in linux kernel of domU
(linux-2.6.x-xenU/)
- recompile xenU kernel (no need to recompile Xen and dom0 kernel).
is that correct?
thanks,
aq
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PageReserved ?
2005-07-17 10:48 ` aq
@ 2005-07-17 10:50 ` Keir Fraser
0 siblings, 0 replies; 10+ messages in thread
From: Keir Fraser @ 2005-07-17 10:50 UTC (permalink / raw)
To: aq; +Cc: xen-devel
On 17 Jul 2005, at 11:48, aq wrote:
> ah, this is interesting. i will give it a try. lets see how to do that:
>
> - you suggest adding xprintk to domU code - but exactly which code?
Probably you are dying in pagetable_init() in arch/xen/i386/mm/init.c,
but you could possibly be dying earlier than that.
> - or better redefine printk to xprintk in linux kernel of domU
> (linux-2.6.x-xenU/)
> - recompile xenU kernel (no need to recompile Xen and dom0 kernel).
You need to recompile Xen as 'debug=y make'. No need to recompile dom0.
> is that correct?
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-07-17 10:50 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 18:26 PageReserved ? aq
2005-07-15 18:48 ` Keir Fraser
2005-07-17 7:30 ` aq
2005-07-17 8:25 ` Keir Fraser
2005-07-17 9:40 ` aq
2005-07-17 9:39 ` Keir Fraser
2005-07-17 9:49 ` aq
2005-07-17 9:53 ` Keir Fraser
2005-07-17 10:48 ` aq
2005-07-17 10:50 ` Keir Fraser
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.