All of lore.kernel.org
 help / color / mirror / Atom feed
* xl mem-max error
@ 2014-11-06 22:17 Zhigang Wang
  2014-11-07 11:05 ` Wei Liu
  0 siblings, 1 reply; 19+ messages in thread
From: Zhigang Wang @ 2014-11-06 22:17 UTC (permalink / raw)
  To: xen-devel

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

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

end of thread, other threads:[~2014-11-28 12:12 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 22:17 xl mem-max error Zhigang Wang
2014-11-07 11:05 ` 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

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.