XEN kernel consumes memory?

Hello.
This is a strange problem I have.
My computer has 4GB installed but for some reason I could only see the 2 of the 4.

At first I thought that this was because the XEN virtual operating system manager was running but even after I turned it off the problem exists. I could only see and use the 2GB of memory.

free -m
             total       used       free     shared    buffers     cached
Mem:          1914       1874         39          0          9        295
-/+ buffers/cache:       1570        343
Swap:         2062       1934        128

I am not sure what I have to do to fix this “Strange problem”

I would like to thank you in advance for your help. Best Regards

alaios wrote:
> My computer has 4GB installed but for some reason I could only see the
> 2 of the 4.

actually, it is not so strange…there are (probably) 25 or 50 (or
650) threads in these fora asking pretty much this same question, and
the answers are all pretty much the same:

  • some motherboards can only support 2 GB of ram, but you can put a
    lot more than that in, just can’t “see” it…

  • some motherboards were born with a BIOS which only supports 2GB, but
    there may be a newer BIOS which supports more…

  • some kernels only support 2GB and 32 bit processors…but, there is
    also a “pae” kernel which supports more RAM…

if you installed a 32 bit system with the default or desktop kernel
you will be stuck at 2GB until you install the pae kernel if the
motherboard actually supports more than 2GB RAM

use the forums advanced search engine or google with the site
specifier

site:opensuse.org

to read all about it…


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio

Hi Alaios,

To build on what DenverD said:

The first thing you should try is to take a look at the BIOS information. Does it report 2 or 4GB installed? If it’s 2GB, then there are three possibilities:

-The RAM isn’t installed correctly (or you don’t have as much as you think you do).
-The motherboard needs a firmware update.
-You need a new motherboard.

If the BIOS shows 4GB, then try a “more /proc/version” and see if the kernel version has “-pae” appended to it. If it doesn’t, try “yast -i kernel-pae” to install the PAE kernel. Reboot and see if that helps.

Cheers,
Jeremy

Thanks for your replies.
It seems that I didn’t explain my problem very well.

When my linux boots always depicts the right amount of memory (4 GB). When I launch (using Xen virtual manager) windows 7, 1 gb of memory is reserved in advance for windows 7 and thus linux depicts 3gb of memory.
The problem is that when I close (turn off) windows 7 the 1gb reserved memory doesnt return back to the native linux host (domain-0 called in xen). Even though when I close the virtual manager still this 1Gb memory is lost.

So I have the following two questions

a) Is it possible somehow to make XEN to make dynamic memory allocation. Even though that windows 7 uses usually up to 600MB of memory always 1Gb is statically reserved (ofc it is configured for that).

b) Why my memory does not return back to the operating system even though when my XEN (and guest operating system) is shut down?

Best Regards
Alex.

alaios wrote:
> a) Is it possible somehow to make XEN to make dynamic memory
> allocation. Even though that windows 7 uses usually up to 600MB of
> memory always 1Gb is statically reserved (ofc it is configured for
> that).
>
> b) Why my memory does not return back to the operating system even
> though when my XEN (and guest operating system) is shut down?

great questions…but it has nothing to do with openSUSE…

so, great questions for a XEN guru…
one here (if there are any) might find your Q, if you wait long enough…

personally, i think you will have better (and faster) answers if you
find a place with a lot of XEN folks, like maybe:
http://www.xen.org/support/ or http://www.xen.org/community/

but, if it were me i’d solve the problem by never using Win7 :stuck_out_tongue:


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio

Thanks for the output. I have to use windows 7 for the Microsoft office. I posted here as I though that XEN is an opensuse technology :frowning: sorry for the inconvenience.

Although some replies here might also help me :slight_smile: