From: Mick Jordan <Mick.Jordan@Sun.COM>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Size limit on extra argument to xm create
Date: Fri, 09 Oct 2009 12:57:57 -0700 [thread overview]
Message-ID: <4ACF95C5.6090006@Sun.COM> (raw)
In-Reply-To: <4AA8772C.5060601@Sun.COM>
On 09/ 9/09 08:49 PM, Mick Jordan wrote:
> Experimentally there seems to be a 1024 byte limit on the size of the
> extra parameter to xm create (shades of csh!).
>
> Before I dig in to the code, I'm thought I'd check if this a limit in
> xm or a more fundamental limit in the Xen guest interface. I can
> imagine a hard limit of a page in the latter case, but that would be a
> lot better than 1024.
I was too hasty in attributing this to problems with shell variable
length limits. There does seem to be a Xen limit of 1024 characters for
the "extra" argument to "xm create", as shown below. The cmd_line value
passed to the guest is truncated at 1024. So my question above holds.
# xm create -c xmconfigs/domain_config_generic
extra="-XX:+UseVirtualMemory -cp /guestvm/image/GuestVM/bin
test.java.lang.ArgsTest really_quite_a_long_argument_1
really_quite_a_long_argument_2 really_quite_a_long_argument_3
really_quite_a_long_argument_4 really_quite_a_long_argument_5
really_quite_a_long_argument_6 really_quite_a_long_argument_7
really_quite_a_long_argument_8 really_quite_a_long_argument_9
really_quite_a_long_argument_10 really_quite_a_long_argument_11
really_quite_a_long_argument_12 really_quite_a_long_argument_13
really_quite_a_long_argument_14 really_quite_a_long_argument_15
really_quite_a_long_argument_16 really_quite_a_long_argument_17
really_quite_a_long_argument_18 really_quite_a_long_argument_19
really_quite_a_long_argument_20 really_quite_a_long_argument_21
really_quite_a_long_argument_22 really_quite_a_long_argument_23
really_quite_a_long_argument_24 really_quite_a_long_argument_25
really_quite_a_long_argument_26 really_quite_a_long_argument_27
really_quite_a_long_argument_28 really_quite_a_long_argument_29
really_quite_a_long_argument_30 really_quite_a_long_argument_40
really_quite_a_long_argument_41 really_quite_a_long_argument_42
really_quite_a_long_argument_43 really_quite_a_long_argument_44
really_quite_a_long_argument_45 really_quite_a_long_argument_46
really_quite_a_long_argument_47 really_quite_a_long_argument_48
really_quite_a_long_argument_49 really_quite_a_long_argument_50
really_quite_a_long_argument_51 really_quite_a_long_argument_52
really_quite_a_long_argument_53 really_quite_a_long_argument_54
really_quite_a_long_argument_55 really_quite_a_long_argument_56
really_quite_a_long_argument_57 really_quite_a_long_argument_58
really_quite_a_long_argument_59 really_quite_a_long_argument_60"
Using config file "./xmconfigs/domain_config_generic".
Started domain GuestVM-mjj
argc 35
0 GuestVM-mjj
1 -XX:+UseVirtualMemory
2 -cp
3 /guestvm/image/GuestVM/bin
4 test.java.lang.ArgsTest
5 really_quite_a_long_argument_1
6 really_quite_a_long_argument_2
7 really_quite_a_long_argument_3
8 really_quite_a_long_argument_4
9 really_quite_a_long_argument_5
10 really_quite_a_long_argument_6
11 really_quite_a_long_argument_7
12 really_quite_a_long_argument_8
13 really_quite_a_long_argument_9
14 really_quite_a_long_argument_10
15 really_quite_a_long_argument_11
16 really_quite_a_long_argument_12
17 really_quite_a_long_argument_13
18 really_quite_a_long_argument_14
19 really_quite_a_long_argument_15
20 really_quite_a_long_argument_16
21 really_quite_a_long_argument_17
22 really_quite_a_long_argument_18
23 really_quite_a_long_argument_19
24 really_quite_a_long_argument_20
25 really_quite_a_long_argument_21
26 really_quite_a_long_argument_22
27 really_quite_a_long_argument_23
28 really_quite_a_long_argument_24
29 really_quite_a_long_argument_25
30 really_quite_a_long_argument_26
31 really_quite_a_long_argument_27
32 really_quite_a_long_argument_28
33 really_quite_a_long_argument_29
34 really_quite_a_long_argumen
#
next prev parent reply other threads:[~2009-10-09 19:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-10 3:49 Size limit on extra argument to xm create Mick Jordan
2009-09-10 4:00 ` Size limit on extra argument to xm create; RETRACT Mick Jordan
2009-10-09 19:57 ` Mick Jordan [this message]
2009-10-09 20:31 ` Size limit on extra argument to xm create Keir Fraser
2009-10-09 22:32 ` Mick Jordan
2009-10-10 6:30 ` Keir Fraser
2009-10-12 17:05 ` Mick Jordan
2009-10-12 17:15 ` Keir Fraser
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=4ACF95C5.6090006@Sun.COM \
--to=mick.jordan@sun.com \
--cc=xen-devel@lists.xensource.com \
/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.