xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: blallo@riseup.net
Cc: Andrew Cooper <Andrew.Cooper3@citrix.com>,
	Jan Beulich <JBeulich@suse.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [Xen-users] xl info displays less ram than the total available
Date: Wed, 5 Oct 2016 14:02:38 +0100	[thread overview]
Message-ID: <c4fe7ec5-adb0-e7b6-14f6-9e9eddc1a593@citrix.com> (raw)
In-Reply-To: <20161005125229.ixcvhldn4ra62prn@riseup.net>

On 05/10/16 13:52, blallo@riseup.net wrote:
> George Dunlap:
>> On Wed, Oct 5, 2016 at 11:16 AM,  <blallo@riseup.net> wrote:
>>>
>>> Hi all,
>>> I have been wondering if I could manage to make Xen function on my
>>> laptop, using as dom0 my Arch Linux installation. As far as I understood
>>> there is no currently supported package in the AUR nor, obviously, in
>>> the official repos. What to do? Compile it by myself! I went under all
>>> the process, in particular
>>>
>>> % PYTHON="/usr/bin/python2" ./configure --enable-stubdom \
>>>                --enable-systemd --prefix=/usr
>>>
>>> % PYTHON="/usr/bin/python2" NO_WERROR=1 make dist
>>>
>>> % sudo PYTHON="/usr/bin/python2" NO_WERROR=1 make install
>>>
>>> After that I manually added a grub entry to boot into my dom0
>>> chainbooted by Xen.
>>>
>>> And it seemed I succeeded, as far as I manage to boot into my system.
>>> Everything seem to work, except that if I look at the features of my
>>> system
>>>
>>> % sudo xl info
>>>
>>> I get a discouraging indication on the total amount of ram I have on my
>>> system
>>>
>>> total_memory           : 1948
>>> free_memory            : 120
>>>
>>> while the total memory is (as measured from Arch booted without Xen)
>>>
>>> % free -m
>>>            total       used     free     shared  buff/cache  available
>>>    Mem:    15924       8756     2206     737     4961        6100
>>>    Swap:   8191        0        8191
>>>
>>> What to do? I am very new to Xen, how can I debug it?
>>
>> Thanks for your report.  Can you please attach the full output of "xl
>> info", as well as the output of "xl dmesg"?
>>
>> Thanks,
>> -George
> 
> I attach the output of xl info, xl dmesg in dom0 *and* dmesg in a normal
> Arch Linux boot (without Xen).

That's quite strange -- the e820 maps reported by Linux and Xen appear
to be almost completely different:

(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009ec00 (usable)
(XEN)  000000000009ec00 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 0000000079cbe000 (usable)
(XEN)  0000000079cbe000 - 00000000bcd2f000 (reserved)
(XEN)  00000000bcd2f000 - 00000000bce7f000 (ACPI NVS)
(XEN)  00000000bce7f000 - 00000000bceff000 (ACPI data)
(XEN)  00000000bceff000 - 00000000bfa00000 (reserved)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fed08000 - 00000000fed09000 (reserved)
(XEN)  00000000fed10000 - 00000000fed1a000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ffc00000 - 000000043e600000 (reserved)

BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
BIOS-e820: [mem 0x0000000000059000-0x000000000008bfff] usable
BIOS-e820: [mem 0x000000000008c000-0x00000000000bffff] reserved
BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000007b82dfff] usable
BIOS-e820: [mem 0x000000007b82e000-0x000000007ba2ffff] reserved
BIOS-e820: [mem 0x000000007ba30000-0x00000000ba1fcfff] usable
BIOS-e820: [mem 0x00000000ba1fd000-0x00000000ba3fcfff] type 20
BIOS-e820: [mem 0x00000000ba3fd000-0x00000000bcd2efff] reserved
BIOS-e820: [mem 0x00000000bcd2f000-0x00000000bce7efff] ACPI NVS
BIOS-e820: [mem 0x00000000bce7f000-0x00000000bcefefff] ACPI data
BIOS-e820: [mem 0x00000000bceff000-0x00000000bcefffff] usable
BIOS-e820: [mem 0x00000000bcf00000-0x00000000bf9fffff] reserved
BIOS-e820: [mem 0x00000000f80f8000-0x00000000f80f8fff] reserved
BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
BIOS-e820: [mem 0x0000000100000000-0x000000043e5fffff] usable

With the key thing being that Xen's version has the range from ~2G-3G
and 4G-17G as 'reserved', while Linux's version has those ranges as
'usable'.

Jan / Andy, any idea what's going on here?

 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

       reply	other threads:[~2016-10-05 13:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20161005101600.odbvl632lmjigvsi@riseup.net>
     [not found] ` <CAFLBxZYWiGWTf2zhVOF3yfWQvtNpndF9avcOVgEGPDg7PZ1wog@mail.gmail.com>
     [not found]   ` <20161005125229.ixcvhldn4ra62prn@riseup.net>
2016-10-05 13:02     ` George Dunlap [this message]
2016-10-05 13:06       ` [Xen-users] xl info displays less ram than the total available Andrew Cooper
2016-10-05 13:32         ` blallo
2016-10-05 14:01           ` Jan Beulich
2016-10-06 10:55             ` George Dunlap
2016-10-06 10:59               ` Blallo
2016-10-06 12:06                 ` Konrad Rzeszutek Wilk
2016-10-06 12:39                   ` blallo
2016-10-06 13:00                     ` Jan Beulich
2016-10-06 12:56                   ` blallo
     [not found]                   ` <20161006125650.ww7lq7gpn7ovvqrr@supernova>
2016-10-06 12:58                     ` blallo
2016-10-06 13:16                       ` Daniel Kiper
     [not found]                         ` <53339FBD-ABBC-4047-A787-74F97867015A@riseup.net>
2016-10-26  8:30                           ` blallo
2016-10-26 13:26                             ` Konrad Rzeszutek Wilk
2016-10-27  8:24                             ` Daniel Kiper
     [not found]                     ` <20161006125857.7kavmrfe27yudsud@supernova>
2016-10-06 13:03                       ` blallo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4fe7ec5-adb0-e7b6-14f6-9e9eddc1a593@citrix.com \
    --to=george.dunlap@citrix.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=blallo@riseup.net \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).