qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to increase ram beyond 756 MB ?
@ 2011-06-14 10:03 मनीष शर्मा 
  2011-06-14 10:22 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: मनीष शर्मा  @ 2011-06-14 10:03 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

Hi All,

I am using arm on x86, running Linux 2.6.33 as guest and fedora 14 as host.
And using Realview board inside Qemu Machine.

Even though I passed 1024 MB as qemu memory in command line,
I can only see ~756MB given to guest. Also I tried passing more than
1024 MB say 2048 MB But I am unable to see increase in RAM in Guest OS.
I checked the /proc/meminfo for guest OS memory details.

What do I missed ? Any help is higly appreciated.

regards,
Manish

-- 
-मनीष

[-- Attachment #2: Type: text/html, Size: 1237 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] How to increase ram beyond 756 MB ?
  2011-06-14 10:03 [Qemu-devel] How to increase ram beyond 756 MB ? मनीष शर्मा 
@ 2011-06-14 10:22 ` Peter Maydell
       [not found]   ` <BANLkTin4ANwn91kMOa=WSA4SwB2bZAT6wg@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2011-06-14 10:22 UTC (permalink / raw)
  To: मनीष शर्मा
  Cc: qemu-devel

2011/6/14 मनीष शर्मा <manishs.in@gmail.com>:
> I am using arm on x86, running Linux 2.6.33 as guest and fedora 14 as host.
> And using Realview board inside Qemu Machine.

Do you mean "realview-eb", "realview-eb-mpcore", "realview-pb-a9",
or "realview-pbx-a9" ? They are different models.

> Even though I passed 1024 MB as qemu memory in command line,
> I can only see ~756MB given to guest. Also I tried passing more than
> 1024 MB say 2048 MB But I am unable to see increase in RAM in Guest OS.
> I checked the /proc/meminfo for guest OS memory details.

For both "realview-eb" and "realview-eb-mpcore" the maximum memory
allowed is 256MB, because the hardware we are modelled has an
address space layout which does not permit more. If you're using
those models, then to use more RAM you must use a different model.

"realview-pb-a9" and "realview-pbx-a9" should both in theory
support 1024MB of RAM as a maximum. Typically to make this work
you need to both pass QEMU the "-m 1024" option (to model the
extra RAM) and also pass the guest kernel an option like "mem=1024M".
(However the pb-a9 hardware has 512MB of RAM as a maximum and
we are providing extra modelled RAM in a "reserved" section of
the address space, so it's possible the guest kernel wouldn't
try to use it.)

-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Fwd:  How to increase ram beyond 756 MB ?
       [not found]   ` <BANLkTin4ANwn91kMOa=WSA4SwB2bZAT6wg@mail.gmail.com>
@ 2011-06-14 12:13     ` मनीष शर्मा 
  0 siblings, 0 replies; 3+ messages in thread
From: मनीष शर्मा  @ 2011-06-14 12:13 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2227 bytes --]

---------- Forwarded message ----------
From: मनीष शर्मा <manishs.in@gmail.com>
Date: 2011/6/14
Subject: Re: [Qemu-devel] How to increase ram beyond 756 MB ?
To: Peter Maydell <peter.maydell@linaro.org>


Thanks Peter.

I am able to change memory size in guest  to 1024 MB now.
After making small change in my kernel file realview_pbx.c.
To changed the address to 0x70000000 instead of 0x80000000
where qemu 0.14.0 is registering the memory.
realview_pbx_fixup () {
....
*-meminfo->bank[2].start = 0x80000000   *
+ meminfo->bank[2].start = 0x70000000
...
}

And to enable *High Memory support* in my kernel.
Now its showing 1024 MB.

Thanks a lot for such a quick reply.

regards,
Manish
2011/6/14 Peter Maydell <peter.maydell@linaro.org>

> 2011/6/14 मनीष शर्मा <manishs.in@gmail.com>:
> > I am using arm on x86, running Linux 2.6.33 as guest and fedora 14 as
> host.
> > And using Realview board inside Qemu Machine.
>
> Do you mean "realview-eb", "realview-eb-mpcore", "realview-pb-a9",
> or "realview-pbx-a9" ? They are different models.
>
> > Even though I passed 1024 MB as qemu memory in command line,
> > I can only see ~756MB given to guest. Also I tried passing more than
> > 1024 MB say 2048 MB But I am unable to see increase in RAM in Guest OS.
> > I checked the /proc/meminfo for guest OS memory details.
>
> For both "realview-eb" and "realview-eb-mpcore" the maximum memory
> allowed is 256MB, because the hardware we are modelled has an
> address space layout which does not permit more. If you're using
> those models, then to use more RAM you must use a different model.
>
> "realview-pb-a9" and "realview-pbx-a9" should both in theory
> support 1024MB of RAM as a maximum. Typically to make this work
> you need to both pass QEMU the "-m 1024" option (to model the
> extra RAM) and also pass the guest kernel an option like "mem=1024M".
> (However the pb-a9 hardware has 512MB of RAM as a maximum and
> we are providing extra modelled RAM in a "reserved" section of
> the address space, so it's possible the guest kernel wouldn't
> try to use it.)
>
> -- PMM
>



-- 
-मनीष



-- 
-मनीष

[-- Attachment #2: Type: text/html, Size: 3788 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-14 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 10:03 [Qemu-devel] How to increase ram beyond 756 MB ? मनीष शर्मा 
2011-06-14 10:22 ` Peter Maydell
     [not found]   ` <BANLkTin4ANwn91kMOa=WSA4SwB2bZAT6wg@mail.gmail.com>
2011-06-14 12:13     ` [Qemu-devel] Fwd: " मनीष शर्मा 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).