All of lore.kernel.org
 help / color / mirror / Atom feed
* How to minimize the compilation time of  the  XEN code
@ 2009-09-01  8:11 Wen.Tian
  2009-09-01  9:41 ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: Wen.Tian @ 2009-09-01  8:11 UTC (permalink / raw)
  To: xen-devel


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

Hi, all

I have a question about how to minimize the compilation time of the  XEN code.

During my xen development, sometimes I modify just the xen code, and sometimes just the domain0 code, or sometime both. 

For the just xen code modification case, I tested in my machine and it took about 15 minutes.(My cpu is intel dual 1.6GHZ and I run the compile through the make dist command on the vmware on the windows XP platform). It's a too long waiting time for me............

Is there any optimized option avaiable on the "make" command then it will cost least time in the above 3 case respectively?  (I always use the "make dist" now).

Thanks & Best Regards

[-- Attachment #1.2: Type: text/html, Size: 1401 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] 3+ messages in thread

* Re: How to minimize the compilation time of  the  XEN code
  2009-09-01  8:11 How to minimize the compilation time of the XEN code Wen.Tian
@ 2009-09-01  9:41 ` Keir Fraser
  2009-09-01  9:54   ` Michael David Crawford
  0 siblings, 1 reply; 3+ messages in thread
From: Keir Fraser @ 2009-09-01  9:41 UTC (permalink / raw)
  To: Wen.Tian, xen-devel@lists.xensource.com

On 01/09/2009 09:11, "Wen.Tian" <tyd126723@huawei.com> wrote:

> During my xen development, sometimes I modify just the xen code, and sometimes
> just the domain0 code, or sometime both.
>  
> For the just xen code modification case, I tested in my machine and it took
> about 15 minutes.(My cpu is intel dual 1.6GHZ and I run the compile through
> the make dist command on the vmware on the windows XP platform). It's a too
> long waiting time for me............
>  
> Is there any optimized option avaiable on the "make" command then it will cost
> least time in the above 3 case respectively?  (I always use the "make dist"
> now).

You can use the -j option to make to build in parallel, which speeds things
up quite a bit. Also there are build targets 'xen' and e.g.,
'linux-2.6-xen0-build' to build Xen and a 2.6.18 dom0, respectively.
E.g., 'make -j8 xen', 'make -j8 linux-2.6-xen0-build'

 -- Keir

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

* Re: How to minimize the compilation time of  the  XEN code
  2009-09-01  9:41 ` Keir Fraser
@ 2009-09-01  9:54   ` Michael David Crawford
  0 siblings, 0 replies; 3+ messages in thread
From: Michael David Crawford @ 2009-09-01  9:54 UTC (permalink / raw)
  Cc: xen-devel@lists.xensource.com

Keir Fraser wrote:
> You can use the -j option to make to build in parallel, which speeds things
> up quite a bit. 

In my tests on a quad core Xeon, I found that it was fastest to have 
more jobs than cores.  That is, with my four cores, it was best to say 
"-j 8".

The reason that works I think is that sometimes a job is blocked waiting 
for I/O.  During that time a compute-bound job can run.  If you only 
have as many jobs as cores, sometimes a core will be idle when its 
process is blocked.

The best number of jobs will be highly dependent on your configuration 
though.  It's worthwhile to test using the "time" command:

time make -j 8

Mike
-- 
Michael David Crawford
mdc@prgmr.com

    prgmr.com - We Don't Assume You Are Stupid.

       Xen-Powered Virtual Private Servers: http://prgmr.com/xen

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

end of thread, other threads:[~2009-09-01  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01  8:11 How to minimize the compilation time of the XEN code Wen.Tian
2009-09-01  9:41 ` Keir Fraser
2009-09-01  9:54   ` Michael David Crawford

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.