xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* ocaml parallel build errors
@ 2010-05-17  9:37 Christoph Egger
  2010-05-17  9:55 ` Keir Fraser
  0 siblings, 1 reply; 11+ messages in thread
From: Christoph Egger @ 2010-05-17  9:37 UTC (permalink / raw)
  To: xen-devel


Hi!

On a clean source tree, I get an ocaml build error
with gmake -j4 :

 === building libs/uuid
 === building xenstored
 MLDEP
 MLI      symbol.cmi
 MLI      trie.cmi
 MLOPT    define.cmx
 MLOPT    stdext.cmx
 MLOPT    trie.cmx
 MLOPT    config.cmx
 MLI      uuid.cmi
 MLC      uuid.cmo
 MLOPT    uuid.cmx
 MLOPT    logging.cmx
File "logging.ml", line 20, characters 16-26:
Error: Unbound value Logs.error
gmake[4]: *** [logging.cmx] Error 2
gmake[4]: *** Waiting for unfinished jobs....
 MLA      uuid.cma
 MLA      uuid.cmxa
gmake[3]: *** [SUBDIRS_PROGRAMS] Error 2
gmake[3]: *** Waiting for unfinished jobs....


On a second gmake run I have:

 === building libs/xs
File "transaction.ml", line 193, characters 2-12:
Error: Unbound value Disk.write

On a third gmake run oxenstored builds.

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

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

* Re: ocaml parallel build errors
  2010-05-17  9:37 ocaml parallel build errors Christoph Egger
@ 2010-05-17  9:55 ` Keir Fraser
  2010-05-23  0:48   ` using OCAML xenstored Yuvraj Agarwal
  0 siblings, 1 reply; 11+ messages in thread
From: Keir Fraser @ 2010-05-17  9:55 UTC (permalink / raw)
  To: Christoph Egger, xen-devel@lists.xensource.com

On 17/05/2010 10:37, "Christoph Egger" <Christoph.Egger@amd.com> wrote:

> 
> Hi!
> 
> On a clean source tree, I get an ocaml build error
> with gmake -j4 :

Should be fixed by xen-unstable:21401.

 Thanks,
 Keir

>  === building libs/uuid
>  === building xenstored
>  MLDEP
>  MLI      symbol.cmi
>  MLI      trie.cmi
>  MLOPT    define.cmx
>  MLOPT    stdext.cmx
>  MLOPT    trie.cmx
>  MLOPT    config.cmx
>  MLI      uuid.cmi
>  MLC      uuid.cmo
>  MLOPT    uuid.cmx
>  MLOPT    logging.cmx
> File "logging.ml", line 20, characters 16-26:
> Error: Unbound value Logs.error
> gmake[4]: *** [logging.cmx] Error 2
> gmake[4]: *** Waiting for unfinished jobs....
>  MLA      uuid.cma
>  MLA      uuid.cmxa
> gmake[3]: *** [SUBDIRS_PROGRAMS] Error 2
> gmake[3]: *** Waiting for unfinished jobs....
> 
> 
> On a second gmake run I have:
> 
>  === building libs/xs
> File "transaction.ml", line 193, characters 2-12:
> Error: Unbound value Disk.write
> 
> On a third gmake run oxenstored builds.
> 
> Christoph
> 

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

* using OCAML xenstored
  2010-05-17  9:55 ` Keir Fraser
@ 2010-05-23  0:48   ` Yuvraj Agarwal
  2010-05-23 13:59     ` Pasi Kärkkäinen
  0 siblings, 1 reply; 11+ messages in thread
From: Yuvraj Agarwal @ 2010-05-23  0:48 UTC (permalink / raw)
  To: xen-devel

Hi All,

I would like to give the OCAML version of xenstored a shot, since the
older version (in C) takes a long time to start up a large number of VMs.
I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a try
with. Is there something else that I need to do besides the following: 

1. Build the 2.6.32 pvops kernel as specified in:
http://wiki.xensource.com/xenwiki/XenParavirtOps   
   < DONE >  
2. Download the xen-4.0.0 stable version from
http://www.xen.org/products/xen_source.html 
3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y"  as" 
   CONFIG_OCAML_XENSTORED ?= y 
4. "make xen", make "tools"  and then the "make xen-install" and "make
install-tools PYTHON_PREFIX_ARG="  

Is there something else needed?  Are there any recent patches to the OCAML
xenstored that I need to apply?

Thank you,
Yuvraj

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

* Re: using OCAML xenstored
  2010-05-23  0:48   ` using OCAML xenstored Yuvraj Agarwal
@ 2010-05-23 13:59     ` Pasi Kärkkäinen
  2010-05-23 18:47       ` Boris Derzhavets
  0 siblings, 1 reply; 11+ messages in thread
From: Pasi Kärkkäinen @ 2010-05-23 13:59 UTC (permalink / raw)
  To: Yuvraj Agarwal; +Cc: xen-devel

On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
> Hi All,
> 
> I would like to give the OCAML version of xenstored a shot, since the
> older version (in C) takes a long time to start up a large number of VMs.
> I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a try
> with. Is there something else that I need to do besides the following: 
> 
> 1. Build the 2.6.32 pvops kernel as specified in:
> http://wiki.xensource.com/xenwiki/XenParavirtOps   
>    < DONE >  
> 2. Download the xen-4.0.0 stable version from
> http://www.xen.org/products/xen_source.html 
> 3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y"  as" 
>    CONFIG_OCAML_XENSTORED ?= y 
> 4. "make xen", make "tools"  and then the "make xen-install" and "make
> install-tools PYTHON_PREFIX_ARG="  
> 
> Is there something else needed?  Are there any recent patches to the OCAML
> xenstored that I need to apply?
> 

Just browse through http://xenbits.xen.org/xen-unstable.hd and http://xenbits.xen.org/xen-4.0-testing.hg changelogs.

xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.

-- Pasi

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

* Re: using OCAML xenstored
  2010-05-23 13:59     ` Pasi Kärkkäinen
@ 2010-05-23 18:47       ` Boris Derzhavets
       [not found]         ` <0d2e01cafc2f$59453250$0bcf96f0$@ucsd.edu>
  0 siblings, 1 reply; 11+ messages in thread
From: Boris Derzhavets @ 2010-05-23 18:47 UTC (permalink / raw)
  To: Yuvraj Agarwal, Pasi Kärkkäinen; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1777 bytes --]

> 4. "make xen", make "tools"  and then the "make xen-install" and 
"make
> install-tools PYTHON_PREFIX_ARG="  

make install-tools PYTHON_PREFIX_ARG=

Wrong syntax when install tools

Boris
BTW. Just a notice.

--- On Sun, 5/23/10, Pasi Kärkkäinen <pasik@iki.fi> wrote:

From: Pasi Kärkkäinen <pasik@iki.fi>
Subject: Re: [Xen-devel] using OCAML xenstored
To: "Yuvraj Agarwal" <yuvraj@cs.ucsd.edu>
Cc: xen-devel@lists.xensource.com
Date: Sunday, May 23, 2010, 9:59 AM

On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
> Hi All,
> 
> I would like to give the OCAML version of xenstored a shot, since the
> older version (in C) takes a long time to start up a large number of VMs.
> I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a try
> with. Is there something else that I need to do besides the following: 
> 
> 1. Build the 2.6.32 pvops kernel as specified in:
> http://wiki.xensource.com/xenwiki/XenParavirtOps   
>    < DONE >  
> 2. Download the xen-4.0.0 stable version from
> http://www.xen.org/products/xen_source.html 
> 3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y"  as" 
>    CONFIG_OCAML_XENSTORED ?= y 
> 4. "make xen", make "tools"  and then the "make xen-install" and "make
> install-tools PYTHON_PREFIX_ARG="  
> 
> Is there something else needed?  Are there any recent patches to the OCAML
> xenstored that I need to apply?
> 

Just browse through http://xenbits.xen.org/xen-unstable.hd and http://xenbits.xen.org/xen-4.0-testing.hg changelogs.

xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.

-- Pasi


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel



      

[-- Attachment #1.2: Type: text/html, Size: 2779 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* FW: using OCAML xenstored
       [not found]         ` <0d2e01cafc2f$59453250$0bcf96f0$@ucsd.edu>
@ 2010-05-26  4:31           ` Yuvraj Agarwal
  2010-05-26 10:28             ` Alex Zeffertt
  0 siblings, 1 reply; 11+ messages in thread
From: Yuvraj Agarwal @ 2010-05-26  4:31 UTC (permalink / raw)
  To: 'xen-devel'


[-- Attachment #1.1: Type: text/plain, Size: 3481 bytes --]

Hi, Just posting this on the list too in case anyone else has experience
with the OCAML version of xenstored….



--Yuvraj



From: Yuvraj Agarwal [mailto:yuvraj@cs.ucsd.edu]
Sent: Tuesday, May 25, 2010 10:26 AM
To: 'Boris Derzhavets'; 'Pasi Kärkkäinen'
Subject: RE: [Xen-devel] using OCAML xenstored



Hi Boris and Pasi,

I checked out the latest xen-testing from mercurial, and edited the
Config.mk file to have the OCAML version of xenstored built.

I checked and made sure that I have all the patches, and my xm info shows
4.0.1-rc1. After that I built using:

make xen; make tools; make stubdom

make install-xen;
make install-tools PYTHON_PREFIX_ARG=;

make install-stubdom



Unfortunately, it looks like even though the new OCAML version of
xenstored is built, it appears in /usr/bin/xenstored instead of the usual
“/usr/sbin/xenstored” and the default part of the xenstored to use is the
standard one (not the OCAML one)…

Just FYI: This is an Ubuntu 10.04 64 bit system.

root@ BlackBox:/# ll /usr/bin/xenstored   (new OCAML xenstored I just
built..)

-rwxr-xr-x 1 root root 925039 2010-05-25 10:15 /usr/bin/xenstored



root@ BlackBox:/# ll /usr/sbin/xenstored
(<< Standard C xenstored)

-rwxr-xr-x 1 root root 94728 2010-05-01 00:36 /usr/sbin/xenstored



root@ BlackBox:/# which xenstored

/usr/sbin/xenstored

root@BlackBox:/#



thanks

Yuvraj





From: xen-devel-bounces@lists.xensource.com
[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Boris
Derzhavets
Sent: Sunday, May 23, 2010 11:47 AM
To: Yuvraj Agarwal; Pasi Kärkkäinen
Cc: xen-devel@lists.xensource.com
Subject: Re: [Xen-devel] using OCAML xenstored




> 4. "make xen", make "tools"  and then the "make xen-install" and "make
> install-tools PYTHON_PREFIX_ARG="

make install-tools PYTHON_PREFIX_ARG=

Wrong syntax when install tools

Boris
BTW. Just a notice.

--- On Sun, 5/23/10, Pasi Kärkkäinen <pasik@iki.fi> wrote:


From: Pasi Kärkkäinen <pasik@iki.fi>
Subject: Re: [Xen-devel] using OCAML xenstored
To: "Yuvraj Agarwal" <yuvraj@cs.ucsd.edu>
Cc: xen-devel@lists.xensource.com
Date: Sunday, May 23, 2010, 9:59 AM

On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
> Hi All,
>
> I would like to give the OCAML version of xenstored a shot, since the
> older version (in C) takes a long time to start up a large number of
VMs.
> I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a try
> with. Is there something else that I need to do besides the following:
>
> 1. Build the 2.6.32 pvops kernel as specified in:
> http://wiki.xensource.com/xenwiki/XenParavirtOps
>    < DONE >
> 2. Download the xen-4.0.0 stable version from
> http://www.xen.org/products/xen_source.html
> 3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y"  as"
>    CONFIG_OCAML_XENSTORED ?= y
> 4. "make xen", make "tools"  and then the "make xen-install" and "make
> install-tools PYTHON_PREFIX_ARG="
>
> Is there something else needed?  Are there any recent patches to the
OCAML
> xenstored that I need to apply?
>

Just browse through http://xenbits.xen.org/xen-unstable.hd and
http://xenbits.xen.org/xen-4.0-testing.hg changelogs.

xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.

-- Pasi


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel




[-- Attachment #1.2: Type: text/html, Size: 11078 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: FW: using OCAML xenstored
  2010-05-26  4:31           ` FW: " Yuvraj Agarwal
@ 2010-05-26 10:28             ` Alex Zeffertt
  2010-05-26 18:27               ` Yuvraj Agarwal
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Zeffertt @ 2010-05-26 10:28 UTC (permalink / raw)
  To: Yuvraj Agarwal; +Cc: 'xen-devel'

Some time ago I sent some patches against xen-ocaml-tools.hg to make it work as 
replacement for the C xenstored in xen-unstable.hg.  One of the patches was to 
fix this install path issue:

http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00697.html

I don't think these patches were applied. (I don't know if there is a reason for 
this.)  It might be worth checking out the whole patch queue if you are 
intending to use it with xen-unstable.hg.

Regards,

Alex

On 26/05/10 05:31, Yuvraj Agarwal wrote:
>
>
> Hi, Just posting this on the list too in case anyone else has experience
> with the OCAML version of xenstored….
>
> --Yuvraj
>
> *From:* Yuvraj Agarwal [mailto:yuvraj@cs.ucsd.edu]
> *Sent:* Tuesday, May 25, 2010 10:26 AM
> *To:* 'Boris Derzhavets'; 'Pasi Kärkkäinen'
> *Subject:* RE: [Xen-devel] using OCAML xenstored
>
> Hi Boris and Pasi,
>
> I checked out the latest xen-testing from mercurial, and edited the
> Config.mk file to have the OCAML version of xenstored built.
>
> I checked and made sure that I have all the patches, and my xm info
> shows 4.0.1-rc1. After that I built using:
>
> make xen; make tools; make stubdom
>
> make install-xen;
> make install-tools PYTHON_PREFIX_ARG=;
>
> make install-stubdom
>
> Unfortunately, it looks like even though the new OCAML version of
> xenstored is built, it appears in /usr/bin/xenstored instead of the
> usual “/usr/sbin/xenstored” and the default part of the xenstored to use
> is the standard one (not the OCAML one)…
>
> Just FYI: This is an Ubuntu 10.04 64 bit system.
>
> root@ BlackBox:/# ll /usr/bin/xenstored (new OCAML xenstored I just
> built..)
>
> -rwxr-xr-x 1 root root 925039 2010-05-25 10:15 /usr/bin/xenstored
>
> root@ BlackBox:/# ll /usr/sbin/xenstored (<< Standard C xenstored)
>
> -rwxr-xr-x 1 root root 94728 2010-05-01 00:36 /usr/sbin/xenstored
>
> root@ BlackBox:/# which xenstored
>
> /usr/sbin/xenstored
>
> root@BlackBox:/#
>
> thanks
>
> Yuvraj
>
> * *
>
> *From:* xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] *On Behalf Of *Boris
> Derzhavets
> *Sent:* Sunday, May 23, 2010 11:47 AM
> *To:* Yuvraj Agarwal; Pasi Kärkkäinen
> *Cc:* xen-devel@lists.xensource.com
> *Subject:* Re: [Xen-devel] using OCAML xenstored
>
>  > 4. "make xen", make "tools" and then the "make xen-install" and "make
>  > install-tools PYTHON_PREFIX_ARG="
>
> make install-tools PYTHON_PREFIX_ARG=
>
> Wrong syntax when install tools
>
> Boris
> BTW. Just a notice.
>
> --- On *Sun, 5/23/10, Pasi Kärkkäinen /<pasik@iki.fi
> <mailto:pasik@iki.fi>>/* wrote:
>
>
> From: Pasi Kärkkäinen <pasik@iki.fi <mailto:pasik@iki.fi>>
> Subject: Re: [Xen-devel] using OCAML xenstored
> To: "Yuvraj Agarwal" <yuvraj@cs.ucsd.edu <mailto:yuvraj@cs.ucsd.edu>>
> Cc: xen-devel@lists.xensource.com <mailto:xen-devel@lists.xensource.com>
> Date: Sunday, May 23, 2010, 9:59 AM
>
> On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
>  > Hi All,
>  >
>  > I would like to give the OCAML version of xenstored a shot, since the
>  > older version (in C) takes a long time to start up a large number of VMs.
>  > I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a try
>  > with. Is there something else that I need to do besides the following:
>  >
>  > 1. Build the 2.6.32 pvops kernel as specified in:
>  > http://wiki.xensource.com/xenwiki/XenParavirtOps
>  > < DONE >
>  > 2. Download the xen-4.0.0 stable version from
>  > http://www.xen.org/products/xen_source.html
>  > 3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y" as"
>  > CONFIG_OCAML_XENSTORED ?= y
>  > 4. "make xen", make "tools" and then the "make xen-install" and "make
>  > install-tools PYTHON_PREFIX_ARG="
>  >
>  > Is there something else needed? Are there any recent patches to the OCAML
>  > xenstored that I need to apply?
>  >
>
> Just browse through http://xenbits.xen.org/xen-unstable.hd and
> http://xenbits.xen.org/xen-4.0-testing.hg changelogs.
>
> xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.
>
> -- Pasi
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com </mc/compose?to=Xen-devel@lists.xensource.com>
> http://lists.xensource.com/xen-devel
>

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

* RE: FW: using OCAML xenstored
  2010-05-26 10:28             ` Alex Zeffertt
@ 2010-05-26 18:27               ` Yuvraj Agarwal
  2010-05-28  9:21                 ` Alex Zeffertt
  0 siblings, 1 reply; 11+ messages in thread
From: Yuvraj Agarwal @ 2010-05-26 18:27 UTC (permalink / raw)
  To: 'Alex Zeffertt'; +Cc: xen-devel

Alex,

Thanks for your tip. Do you think just applying the patch to fix the
install path to the Makefile will fix it or will I need the other 6
patches as well (which seem quite extensive)? I am just wondering if there
was another intended way (by the maintainers) to install the OCAML version
of xenstored side-by-side with the C- version and have the option to use
either one....

Thanks
Yuvraj

-----Original Message-----
From: xen-devel-bounces@lists.xensource.com
[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Alex Zeffertt
Sent: Wednesday, May 26, 2010 3:28 AM
To: Yuvraj Agarwal
Cc: 'xen-devel'
Subject: Re: FW: [Xen-devel] using OCAML xenstored

Some time ago I sent some patches against xen-ocaml-tools.hg to make it
work as
replacement for the C xenstored in xen-unstable.hg.  One of the patches
was to
fix this install path issue:

http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00697.html

I don't think these patches were applied. (I don't know if there is a
reason for
this.)  It might be worth checking out the whole patch queue if you are
intending to use it with xen-unstable.hg.

Regards,

Alex

On 26/05/10 05:31, Yuvraj Agarwal wrote:
>
>
> Hi, Just posting this on the list too in case anyone else has experience
> with the OCAML version of xenstored….
>
> --Yuvraj
>
> *From:* Yuvraj Agarwal [mailto:yuvraj@cs.ucsd.edu]
> *Sent:* Tuesday, May 25, 2010 10:26 AM
> *To:* 'Boris Derzhavets'; 'Pasi Kärkkäinen'
> *Subject:* RE: [Xen-devel] using OCAML xenstored
>
> Hi Boris and Pasi,
>
> I checked out the latest xen-testing from mercurial, and edited the
> Config.mk file to have the OCAML version of xenstored built.
>
> I checked and made sure that I have all the patches, and my xm info
> shows 4.0.1-rc1. After that I built using:
>
> make xen; make tools; make stubdom
>
> make install-xen;
> make install-tools PYTHON_PREFIX_ARG=;
>
> make install-stubdom
>
> Unfortunately, it looks like even though the new OCAML version of
> xenstored is built, it appears in /usr/bin/xenstored instead of the
> usual “/usr/sbin/xenstored” and the default part of the xenstored to use
> is the standard one (not the OCAML one)…
>
> Just FYI: This is an Ubuntu 10.04 64 bit system.
>
> root@ BlackBox:/# ll /usr/bin/xenstored (new OCAML xenstored I just
> built..)
>
> -rwxr-xr-x 1 root root 925039 2010-05-25 10:15 /usr/bin/xenstored
>
> root@ BlackBox:/# ll /usr/sbin/xenstored (<< Standard C xenstored)
>
> -rwxr-xr-x 1 root root 94728 2010-05-01 00:36 /usr/sbin/xenstored
>
> root@ BlackBox:/# which xenstored
>
> /usr/sbin/xenstored
>
> root@BlackBox:/#
>
> thanks
>
> Yuvraj
>
> * *
>
> *From:* xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] *On Behalf Of *Boris
> Derzhavets
> *Sent:* Sunday, May 23, 2010 11:47 AM
> *To:* Yuvraj Agarwal; Pasi Kärkkäinen
> *Cc:* xen-devel@lists.xensource.com
> *Subject:* Re: [Xen-devel] using OCAML xenstored
>
>  > 4. "make xen", make "tools" and then the "make xen-install" and "make
>  > install-tools PYTHON_PREFIX_ARG="
>
> make install-tools PYTHON_PREFIX_ARG=
>
> Wrong syntax when install tools
>
> Boris
> BTW. Just a notice.
>
> --- On *Sun, 5/23/10, Pasi Kärkkäinen /<pasik@iki.fi
> <mailto:pasik@iki.fi>>/* wrote:
>
>
> From: Pasi Kärkkäinen <pasik@iki.fi <mailto:pasik@iki.fi>>
> Subject: Re: [Xen-devel] using OCAML xenstored
> To: "Yuvraj Agarwal" <yuvraj@cs.ucsd.edu <mailto:yuvraj@cs.ucsd.edu>>
> Cc: xen-devel@lists.xensource.com <mailto:xen-devel@lists.xensource.com>
> Date: Sunday, May 23, 2010, 9:59 AM
>
> On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
>  > Hi All,
>  >
>  > I would like to give the OCAML version of xenstored a shot, since the
>  > older version (in C) takes a long time to start up a large number of
VMs.
>  > I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a
try
>  > with. Is there something else that I need to do besides the
following:
>  >
>  > 1. Build the 2.6.32 pvops kernel as specified in:
>  > http://wiki.xensource.com/xenwiki/XenParavirtOps
>  > < DONE >
>  > 2. Download the xen-4.0.0 stable version from
>  > http://www.xen.org/products/xen_source.html
>  > 3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y" as"
>  > CONFIG_OCAML_XENSTORED ?= y
>  > 4. "make xen", make "tools" and then the "make xen-install" and "make
>  > install-tools PYTHON_PREFIX_ARG="
>  >
>  > Is there something else needed? Are there any recent patches to the
OCAML
>  > xenstored that I need to apply?
>  >
>
> Just browse through http://xenbits.xen.org/xen-unstable.hd and
> http://xenbits.xen.org/xen-4.0-testing.hg changelogs.
>
> xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.
>
> -- Pasi
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
</mc/compose?to=Xen-devel@lists.xensource.com>
> http://lists.xensource.com/xen-devel
>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: FW: using OCAML xenstored
  2010-05-26 18:27               ` Yuvraj Agarwal
@ 2010-05-28  9:21                 ` Alex Zeffertt
  2010-05-28  9:51                   ` Pasi Kärkkäinen
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Zeffertt @ 2010-05-28  9:21 UTC (permalink / raw)
  To: Yuvraj Agarwal; +Cc: xen-devel@lists.xensource.com

In that patchqueue patches 3/7, 4/7, 5/7, 6/7 are only needed if you are 
compiling the ocaml xenstored to run in a stub domain.  I assume you are 
compiling it for dom0 so you probably don't need it.

Regards,

Alex

On 26/05/10 19:27, Yuvraj Agarwal wrote:
> Alex,
>
> Thanks for your tip. Do you think just applying the patch to fix the
> install path to the Makefile will fix it or will I need the other 6
> patches as well (which seem quite extensive)? I am just wondering if there
> was another intended way (by the maintainers) to install the OCAML version
> of xenstored side-by-side with the C- version and have the option to use
> either one....
>
> Thanks
> Yuvraj
>
> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Alex Zeffertt
> Sent: Wednesday, May 26, 2010 3:28 AM
> To: Yuvraj Agarwal
> Cc: 'xen-devel'
> Subject: Re: FW: [Xen-devel] using OCAML xenstored
>
> Some time ago I sent some patches against xen-ocaml-tools.hg to make it
> work as
> replacement for the C xenstored in xen-unstable.hg.  One of the patches
> was to
> fix this install path issue:
>
> http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00697.html
>
> I don't think these patches were applied. (I don't know if there is a
> reason for
> this.)  It might be worth checking out the whole patch queue if you are
> intending to use it with xen-unstable.hg.
>
> Regards,
>
> Alex
>
> On 26/05/10 05:31, Yuvraj Agarwal wrote:
>>
>>
>> Hi, Just posting this on the list too in case anyone else has experience
>> with the OCAML version of xenstored….
>>
>> --Yuvraj
>>
>> *From:* Yuvraj Agarwal [mailto:yuvraj@cs.ucsd.edu]
>> *Sent:* Tuesday, May 25, 2010 10:26 AM
>> *To:* 'Boris Derzhavets'; 'Pasi Kärkkäinen'
>> *Subject:* RE: [Xen-devel] using OCAML xenstored
>>
>> Hi Boris and Pasi,
>>
>> I checked out the latest xen-testing from mercurial, and edited the
>> Config.mk file to have the OCAML version of xenstored built.
>>
>> I checked and made sure that I have all the patches, and my xm info
>> shows 4.0.1-rc1. After that I built using:
>>
>> make xen; make tools; make stubdom
>>
>> make install-xen;
>> make install-tools PYTHON_PREFIX_ARG=;
>>
>> make install-stubdom
>>
>> Unfortunately, it looks like even though the new OCAML version of
>> xenstored is built, it appears in /usr/bin/xenstored instead of the
>> usual “/usr/sbin/xenstored” and the default part of the xenstored to use
>> is the standard one (not the OCAML one)…
>>
>> Just FYI: This is an Ubuntu 10.04 64 bit system.
>>
>> root@ BlackBox:/# ll /usr/bin/xenstored (new OCAML xenstored I just
>> built..)
>>
>> -rwxr-xr-x 1 root root 925039 2010-05-25 10:15 /usr/bin/xenstored
>>
>> root@ BlackBox:/# ll /usr/sbin/xenstored (<<  Standard C xenstored)
>>
>> -rwxr-xr-x 1 root root 94728 2010-05-01 00:36 /usr/sbin/xenstored
>>
>> root@ BlackBox:/# which xenstored
>>
>> /usr/sbin/xenstored
>>
>> root@BlackBox:/#
>>
>> thanks
>>
>> Yuvraj
>>
>> * *
>>
>> *From:* xen-devel-bounces@lists.xensource.com
>> [mailto:xen-devel-bounces@lists.xensource.com] *On Behalf Of *Boris
>> Derzhavets
>> *Sent:* Sunday, May 23, 2010 11:47 AM
>> *To:* Yuvraj Agarwal; Pasi Kärkkäinen
>> *Cc:* xen-devel@lists.xensource.com
>> *Subject:* Re: [Xen-devel] using OCAML xenstored
>>
>>   >  4. "make xen", make "tools" and then the "make xen-install" and "make
>>   >  install-tools PYTHON_PREFIX_ARG="
>>
>> make install-tools PYTHON_PREFIX_ARG=
>>
>> Wrong syntax when install tools
>>
>> Boris
>> BTW. Just a notice.
>>
>> --- On *Sun, 5/23/10, Pasi Kärkkäinen /<pasik@iki.fi
>> <mailto:pasik@iki.fi>>/* wrote:
>>
>>
>> From: Pasi Kärkkäinen<pasik@iki.fi<mailto:pasik@iki.fi>>
>> Subject: Re: [Xen-devel] using OCAML xenstored
>> To: "Yuvraj Agarwal"<yuvraj@cs.ucsd.edu<mailto:yuvraj@cs.ucsd.edu>>
>> Cc: xen-devel@lists.xensource.com<mailto:xen-devel@lists.xensource.com>
>> Date: Sunday, May 23, 2010, 9:59 AM
>>
>> On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
>>   >  Hi All,
>>   >
>>   >  I would like to give the OCAML version of xenstored a shot, since the
>>   >  older version (in C) takes a long time to start up a large number of
> VMs.
>>   >  I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a
> try
>>   >  with. Is there something else that I need to do besides the
> following:
>>   >
>>   >  1. Build the 2.6.32 pvops kernel as specified in:
>>   >  http://wiki.xensource.com/xenwiki/XenParavirtOps
>>   >  <  DONE>
>>   >  2. Download the xen-4.0.0 stable version from
>>   >  http://www.xen.org/products/xen_source.html
>>   >  3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y" as"
>>   >  CONFIG_OCAML_XENSTORED ?= y
>>   >  4. "make xen", make "tools" and then the "make xen-install" and "make
>>   >  install-tools PYTHON_PREFIX_ARG="
>>   >
>>   >  Is there something else needed? Are there any recent patches to the
> OCAML
>>   >  xenstored that I need to apply?
>>   >
>>
>> Just browse through http://xenbits.xen.org/xen-unstable.hd and
>> http://xenbits.xen.org/xen-4.0-testing.hg changelogs.
>>
>> xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.
>>
>> -- Pasi
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
> </mc/compose?to=Xen-devel@lists.xensource.com>
>> http://lists.xensource.com/xen-devel
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

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

* Re: FW: using OCAML xenstored
  2010-05-28  9:21                 ` Alex Zeffertt
@ 2010-05-28  9:51                   ` Pasi Kärkkäinen
  2010-05-28 10:13                     ` Alex Zeffertt
  0 siblings, 1 reply; 11+ messages in thread
From: Pasi Kärkkäinen @ 2010-05-28  9:51 UTC (permalink / raw)
  To: Alex Zeffertt; +Cc: xen-devel@lists.xensource.com, Yuvraj Agarwal

On Fri, May 28, 2010 at 10:21:47AM +0100, Alex Zeffertt wrote:
> In that patchqueue patches 3/7, 4/7, 5/7, 6/7 are only needed if you are  
> compiling the ocaml xenstored to run in a stub domain.  I assume you are  
> compiling it for dom0 so you probably don't need it.
>
> Regards,
>

Hmm.. so ocaml xenstored is able to run on a stubdom today?
How about xen tools in dom0.. are they able to deal with that? 

-- Pasi

> Alex
>
> On 26/05/10 19:27, Yuvraj Agarwal wrote:
>> Alex,
>>
>> Thanks for your tip. Do you think just applying the patch to fix the
>> install path to the Makefile will fix it or will I need the other 6
>> patches as well (which seem quite extensive)? I am just wondering if there
>> was another intended way (by the maintainers) to install the OCAML version
>> of xenstored side-by-side with the C- version and have the option to use
>> either one....
>>
>> Thanks
>> Yuvraj
>>
>> -----Original Message-----
>> From: xen-devel-bounces@lists.xensource.com
>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Alex Zeffertt
>> Sent: Wednesday, May 26, 2010 3:28 AM
>> To: Yuvraj Agarwal
>> Cc: 'xen-devel'
>> Subject: Re: FW: [Xen-devel] using OCAML xenstored
>>
>> Some time ago I sent some patches against xen-ocaml-tools.hg to make it
>> work as
>> replacement for the C xenstored in xen-unstable.hg.  One of the patches
>> was to
>> fix this install path issue:
>>
>> http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00697.html
>>
>> I don't think these patches were applied. (I don't know if there is a
>> reason for
>> this.)  It might be worth checking out the whole patch queue if you are
>> intending to use it with xen-unstable.hg.
>>
>> Regards,
>>
>> Alex
>>
>> On 26/05/10 05:31, Yuvraj Agarwal wrote:
>>>
>>>
>>> Hi, Just posting this on the list too in case anyone else has experience
>>> with the OCAML version of xenstored?.
>>>
>>> --Yuvraj
>>>
>>> *From:* Yuvraj Agarwal [mailto:yuvraj@cs.ucsd.edu]
>>> *Sent:* Tuesday, May 25, 2010 10:26 AM
>>> *To:* 'Boris Derzhavets'; 'Pasi Kärkkäinen'
>>> *Subject:* RE: [Xen-devel] using OCAML xenstored
>>>
>>> Hi Boris and Pasi,
>>>
>>> I checked out the latest xen-testing from mercurial, and edited the
>>> Config.mk file to have the OCAML version of xenstored built.
>>>
>>> I checked and made sure that I have all the patches, and my xm info
>>> shows 4.0.1-rc1. After that I built using:
>>>
>>> make xen; make tools; make stubdom
>>>
>>> make install-xen;
>>> make install-tools PYTHON_PREFIX_ARG=;
>>>
>>> make install-stubdom
>>>
>>> Unfortunately, it looks like even though the new OCAML version of
>>> xenstored is built, it appears in /usr/bin/xenstored instead of the
>>> usual ?/usr/sbin/xenstored? and the default part of the xenstored to use
>>> is the standard one (not the OCAML one)?
>>>
>>> Just FYI: This is an Ubuntu 10.04 64 bit system.
>>>
>>> root@ BlackBox:/# ll /usr/bin/xenstored (new OCAML xenstored I just
>>> built..)
>>>
>>> -rwxr-xr-x 1 root root 925039 2010-05-25 10:15 /usr/bin/xenstored
>>>
>>> root@ BlackBox:/# ll /usr/sbin/xenstored (<<  Standard C xenstored)
>>>
>>> -rwxr-xr-x 1 root root 94728 2010-05-01 00:36 /usr/sbin/xenstored
>>>
>>> root@ BlackBox:/# which xenstored
>>>
>>> /usr/sbin/xenstored
>>>
>>> root@BlackBox:/#
>>>
>>> thanks
>>>
>>> Yuvraj
>>>
>>> * *
>>>
>>> *From:* xen-devel-bounces@lists.xensource.com
>>> [mailto:xen-devel-bounces@lists.xensource.com] *On Behalf Of *Boris
>>> Derzhavets
>>> *Sent:* Sunday, May 23, 2010 11:47 AM
>>> *To:* Yuvraj Agarwal; Pasi Kärkkäinen
>>> *Cc:* xen-devel@lists.xensource.com
>>> *Subject:* Re: [Xen-devel] using OCAML xenstored
>>>
>>>   >  4. "make xen", make "tools" and then the "make xen-install" and "make
>>>   >  install-tools PYTHON_PREFIX_ARG="
>>>
>>> make install-tools PYTHON_PREFIX_ARG=
>>>
>>> Wrong syntax when install tools
>>>
>>> Boris
>>> BTW. Just a notice.
>>>
>>> --- On *Sun, 5/23/10, Pasi Kärkkäinen /<pasik@iki.fi
>>> <mailto:pasik@iki.fi>>/* wrote:
>>>
>>>
>>> From: Pasi Kärkkäinen<pasik@iki.fi<mailto:pasik@iki.fi>>
>>> Subject: Re: [Xen-devel] using OCAML xenstored
>>> To: "Yuvraj Agarwal"<yuvraj@cs.ucsd.edu<mailto:yuvraj@cs.ucsd.edu>>
>>> Cc: xen-devel@lists.xensource.com<mailto:xen-devel@lists.xensource.com>
>>> Date: Sunday, May 23, 2010, 9:59 AM
>>>
>>> On Sat, May 22, 2010 at 05:48:58PM -0700, Yuvraj Agarwal wrote:
>>>   >  Hi All,
>>>   >
>>>   >  I would like to give the OCAML version of xenstored a shot, since the
>>>   >  older version (in C) takes a long time to start up a large number of
>> VMs.
>>>   >  I have a new machine (Ubuntu 10.04 64bit) that I plan to give this a
>> try
>>>   >  with. Is there something else that I need to do besides the
>> following:
>>>   >
>>>   >  1. Build the 2.6.32 pvops kernel as specified in:
>>>   >  http://wiki.xensource.com/xenwiki/XenParavirtOps
>>>   >  <  DONE>
>>>   >  2. Download the xen-4.0.0 stable version from
>>>   >  http://www.xen.org/products/xen_source.html
>>>   >  3. change Config.mk flag CONFIG_OCAML_XENSTORED ?= n to "y" as"
>>>   >  CONFIG_OCAML_XENSTORED ?= y
>>>   >  4. "make xen", make "tools" and then the "make xen-install" and "make
>>>   >  install-tools PYTHON_PREFIX_ARG="
>>>   >
>>>   >  Is there something else needed? Are there any recent patches to the
>> OCAML
>>>   >  xenstored that I need to apply?
>>>   >
>>>
>>> Just browse through http://xenbits.xen.org/xen-unstable.hd and
>>> http://xenbits.xen.org/xen-4.0-testing.hg changelogs.
>>>
>>> xen-4.0-testing.hg is currently at 4.0.1-rc1 stage.
>>>
>>> -- Pasi
>>>
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xensource.com
>> </mc/compose?to=Xen-devel@lists.xensource.com>
>>> http://lists.xensource.com/xen-devel
>>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

* Re: FW: using OCAML xenstored
  2010-05-28  9:51                   ` Pasi Kärkkäinen
@ 2010-05-28 10:13                     ` Alex Zeffertt
  0 siblings, 0 replies; 11+ messages in thread
From: Alex Zeffertt @ 2010-05-28 10:13 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel@lists.xensource.com, Yuvraj Agarwal

On 28/05/10 10:51, Pasi Kärkkäinen wrote:
> On Fri, May 28, 2010 at 10:21:47AM +0100, Alex Zeffertt wrote:
>> In that patchqueue patches 3/7, 4/7, 5/7, 6/7 are only needed if you are
>> compiling the ocaml xenstored to run in a stub domain.  I assume you are
>> compiling it for dom0 so you probably don't need it.
>>
>> Regards,
>>
>
> Hmm.. so ocaml xenstored is able to run on a stubdom today?
> How about xen tools in dom0.. are they able to deal with that?
>

Well, we tried this a *long* time ago and it worked then - so no guarantees that 
it still works!

However, my understanding is that with the patch queue to xen-ocaml-tools.hg 
applied, and also the small kernel patch queue applied, it should still work. 
Note the kernel patch queue is required to support either the OCAML or C version 
of xenstored in a stubdom.

Regards,

Alex

PS If you are going to use the ocaml xenstored in a stubdom then it might be 
sensible to apply the patch in
http://lists.xensource.com/archives/html/xen-devel/2009-06/msg00505.html as well

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

end of thread, other threads:[~2010-05-28 10:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17  9:37 ocaml parallel build errors Christoph Egger
2010-05-17  9:55 ` Keir Fraser
2010-05-23  0:48   ` using OCAML xenstored Yuvraj Agarwal
2010-05-23 13:59     ` Pasi Kärkkäinen
2010-05-23 18:47       ` Boris Derzhavets
     [not found]         ` <0d2e01cafc2f$59453250$0bcf96f0$@ucsd.edu>
2010-05-26  4:31           ` FW: " Yuvraj Agarwal
2010-05-26 10:28             ` Alex Zeffertt
2010-05-26 18:27               ` Yuvraj Agarwal
2010-05-28  9:21                 ` Alex Zeffertt
2010-05-28  9:51                   ` Pasi Kärkkäinen
2010-05-28 10:13                     ` Alex Zeffertt

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).