All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: xen-devel <xen-devel@lists.xenproject.org>
Subject: xl mem-max error
Date: Thu, 06 Nov 2014 17:17:42 -0500	[thread overview]
Message-ID: <545BF386.1050106@oracle.com> (raw)

Hi,

I get this error:

    # xl mem-max 3 700
    libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max
    : Success
    cannot set domid 3 static max memory to : 700

    # xenstore-ls -f
    ...
    /local/domain/3/memory = ""
    /local/domain/3/memory/static-max = "716800"
    /local/domain/3/memory/target = "716801"
    /local/domain/3/memory/videoram = "-1"

    # xl list -l 3
    [
        {
            "domid": 3,
            "config": {
                "c_info": {
                    "type": "pv",
                    "name": "0004fb0000060000834f0ecf044b2219",
                    "uuid": "0004fb00-0006-0000-834f-0ecf044b2219",
                    "run_hotplug_scripts": "True"
                },
                "b_info": {
                    "max_vcpus": 32,
                    "avail_vcpus": [
                        0,
                        1
                    ],
                    "max_memkb": 716800,
                    "target_memkb": 716800,
                    "shadow_memkb": 38368,
                    "sched_params": {
                        "weight": 55000
                    },
                    "claim_mode": "True",
                    "type.pv": {
                        "bootloader": "/usr/bin/pygrub"
                    }
                },
                "disks": [
                    {
                        "pdev_path": "/OVS/Repositories/0004fb0000030000abbd129258377a77/VirtualDisks/OVM_OL6U4_X86_64_PVM_2GB_UEK3_System.img",
                        "vdev": "xvda",
                        "format": "raw",
                        "readwrite": 1
                    }
                ],
                "nics": [
                    {
                        "devid": 0,
                        "mac": "00:21:f6:00:08:aa",
                        "bridge": "10f36ca5ec"
                    }
                ],
                "vfbs": [
                    {
                        "devid": 0,
                        "vnc": {
                            "listen": "127.0.0.1",
                            "findunused": "True"
                        },
                        "sdl": {
    
                        },
                        "keymap": "en-us"
                    }
                ],
                "vkbs": [
                    {
                        "devid": 0
                    }
                ],
                "on_reboot": "restart",
                "on_crash": "restart"
            }
        }
    ]

Another HVM guest::

    # xenstore-ls -f
    ...
    /local/domain/2/memory/static-max = "716800"
    /local/domain/2/memory/target = "708608"
    /local/domain/2/memory/videoram = "8192"

Testing on:

    commit 816f5bb1f0740be8355e1be6cc24edf09547d984
    Author: Ian Campbell <ian.campbell@citrix.com>
    Date:   Fri Oct 24 10:58:33 2014 +0100

It seems target_mem always bigger than max_mem. Looks wrong.

Thanks,

Zhigang

             reply	other threads:[~2014-11-06 22:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 22:17 Zhigang Wang [this message]
2014-11-07 11:05 ` xl mem-max error Wei Liu
2014-11-07 14:21   ` Zhigang Wang
2014-11-10 12:37     ` Wei Liu
2014-11-10 12:44       ` Ian Campbell
2014-11-10 15:29         ` Zhigang Wang
2014-11-10 15:30           ` Ian Campbell
2014-11-10 15:38             ` Zhigang Wang
2014-11-12 12:03               ` Ian Campbell
2014-11-17 20:03                 ` Zhigang Wang
2014-11-18  9:26                   ` Ian Campbell
2014-11-18 20:57                     ` [PATCH] set pv guest default video_memkb to 0 Zhigang Wang
2014-11-19 21:08                       ` Konrad Rzeszutek Wilk
2014-11-19 21:24                         ` Wei Liu
2014-11-20 15:29                           ` Ian Campbell
2014-11-20 15:48                             ` Wei Liu
2014-11-20 19:44                               ` Konrad Rzeszutek Wilk
2014-11-28 12:12                                 ` Ian Campbell
2014-11-20 15:29                       ` Ian Campbell

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=545BF386.1050106@oracle.com \
    --to=zhigang.x.wang@oracle.com \
    --cc=xen-devel@lists.xenproject.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 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.