Re: Buildworld for slow system on faster system

2008-01-23 Thread Shawn Barnhart

Brent Jones wrote:

What you propose works fine, but you should have the /usr/src and
/usr/obj directories locally stored on your fast machine for the builds.
Then have your slow machine nfs mount /usr/src and /usr/obj from your
fast machine, and simply do your make installs from your slow system.
  
Thanks.   I'm assuming on the slow install system I have to keep 
/usr/src and /usr/obj mounted from the fast build box on their "correct" 
directories (ie, over the local system's /usr/src and /usr/obj) 
otherwise I'll have problems.


As the other person who replied pointed out, nfs mounting /usr/src and 
/usr/obj from the slow system to the fast system would nullify a lot of 
the speed advantage (although it is 100% GigE), but would let me keep 
the working /usr/src and /usr/obj on the slow machine, which is the one 
that is actually getting used.


On a somewhat related question, which FreeBSD install choice gives me 
enough development tools to "make installworld" if I have /usr/src and 
/usr/obj nfs mounted from a full source system but doesn't actually 
burden the system in question with unnecessary components?





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Buildworld for slow system on faster system

2008-01-23 Thread Shawn Barnhart

[EMAIL PROTECTED] wrote:

It is /usr/obj you want to mount across, though it
will work.  Assuming they're similar enough
versions.  Also assure yourself that their respective
/etc/make.conf (and/or /etc/src.conf) files are
essentially identical, or you will great sorrows
have.

  
I'm not that much of a system hacker, so I doubt either will get 
edited.  I don't even have a src.conf on my 6_STABLE system, but 
regardless, it won't be an issue to keep them in sync.



If /usr/obj is nfs mounted on the _build_ machine
it will slow down your build times absurdly, unless
your network (minus overhead) is nearly as fast as
your HDD controller.
  


It's gigabit, so it'd be about as good as it can get.  It sounds like 
the thing to do is just do the builds on the fast machine, and then 
mount THAT machine's /usr/src and /usr/obj on the slow machine when it 
comes time to installworld.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Buildworld for slow system on faster system

2008-01-23 Thread [EMAIL PROTECTED]
On 23/01/2008, Shawn Barnhart <[EMAIL PROTECTED]> wrote:
> My primary FreeBSD box is a Dual P3 700 Mhz, which is dandy for my
> console mode server usage but kind of blows for buildworld and kernels
> when I want them done a timely fashion.  I'd like to do it in a
> dual-proc VM on my quad core workstation, where it gets done a lot faster.
>
> Is there any documentation for doing buildworld on a faster system for a
> slower system?  Can I just mount the slow system's /usr/src on a
> mountpoint on the faster system, do the buildworld and buildkernel, and
> then run the installworld and installkernel as per normal on the slow
> system?  It sounds too easy, so it probably is..


It is /usr/obj you want to mount across, though it
will work.  Assuming they're similar enough
versions.  Also assure yourself that their respective
/etc/make.conf (and/or /etc/src.conf) files are
essentially identical, or you will great sorrows
have.

If /usr/obj is nfs mounted on the _build_ machine
it will slow down your build times absurdly, unless
your network (minus overhead) is nearly as fast as
your HDD controller.

>
> What about ports?  I can usually tolerate the ports build times, so its
> not a big deal, although sometimes the dependencies and larger packages
> can be toe-tappers as well.
>

Sure, just use the package-recursive target and use
pkg_add on the install machine(1).



(1) details elided

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Buildworld for slow system on faster system

2008-01-23 Thread Brent Jones
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Shawn Barnhart
> Sent: Thursday, 24 January 2008 10:24 a.m.
> To: FreeBSD
> Subject: Buildworld for slow system on faster system
> 
> My primary FreeBSD box is a Dual P3 700 Mhz, which is dandy for my 
> console mode server usage but kind of blows for buildworld 
> and kernels 
> when I want them done a timely fashion.  I'd like to do it in a 
> dual-proc VM on my quad core workstation, where it gets done 
> a lot faster.
> 

What you propose works fine, but you should have the /usr/src and
/usr/obj directories locally stored on your fast machine for the builds.
Then have your slow machine nfs mount /usr/src and /usr/obj from your
fast machine, and simply do your make installs from your slow system.

The same holds true for /usr/ports.  Install/upgrade your ports with the
-p (build packages) option on your fast machine, and then on your slow
machine install/upgrade them with the -P option (use packages) after nfs
mounting /usr/ports.

Cheers,
Brent
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"