* [gentoo-user] Install Gentoo on one machine, then move the drive to another
@ 2006-11-15 16:15 Jon M
2006-11-15 16:28 ` Geistteufel
2006-11-15 16:44 ` Alan McKinnon
0 siblings, 2 replies; 14+ messages in thread
From: Jon M @ 2006-11-15 16:15 UTC (permalink / raw
To: gentoo-user
Hey again everyone,
Here is my situation:
I have CentOS running on a system in a datacenter, but want to switch to
Gentoo. Basically what I've started to do is installed Gentoo on a P4
3.0Ghz machine at home, and plan on moving it to a Pentium D 2.66Ghz.
Now if I configure/compile/install all my software on the P4, and the
kernel is configured for all the hardware in the other machine, will it
magically work, or will it freak out? My other concern is that maybe
the applications won't be optimized for the other machine. If this is
the case, once it's down there, could I simply emerge all of my programs
one at a time?
My reason for doing this is to minimize downtime. I didn't want to take
the server offline for a week while I take my time configuring a new
setup. This way it should only be down for maybe 5 minutes while I do a
hard drive swap.
Thanks in advance for anyones thoughts on this.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-15 16:15 [gentoo-user] Install Gentoo on one machine, then move the drive to another Jon M
@ 2006-11-15 16:28 ` Geistteufel
2006-11-15 16:44 ` Alan McKinnon
1 sibling, 0 replies; 14+ messages in thread
From: Geistteufel @ 2006-11-15 16:28 UTC (permalink / raw
To: gentoo-user
Well, I do this often time
You can compile on one computer and put the drive to another without any
problem
If your both computer have the same material ... nothing to do
Well CFGLAS on P4 should be like -02 -march=p4 -pipe -fmoit-frame-pointer
so both are P4, you can switch easyly
if both haven't got same material and you don't use genkernel you should
probably redo the kernel
if you hd are not at the same place on new computer you need to change
fstab
but globally, they don't take more than half an hour
good luck
Le Wed, 15 Nov 2006 17:15:35 +0100, Jon M <gentoo@net-xero.net> a écrit:
> Hey again everyone,
>
> Here is my situation:
>
> I have CentOS running on a system in a datacenter, but want to switch to
> Gentoo. Basically what I've started to do is installed Gentoo on a P4
> 3.0Ghz machine at home, and plan on moving it to a Pentium D 2.66Ghz.
> Now if I configure/compile/install all my software on the P4, and the
> kernel is configured for all the hardware in the other machine, will it
> magically work, or will it freak out? My other concern is that maybe
> the applications won't be optimized for the other machine. If this is
> the case, once it's down there, could I simply emerge all of my programs
> one at a time?
>
> My reason for doing this is to minimize downtime. I didn't want to take
> the server offline for a week while I take my time configuring a new
> setup. This way it should only be down for maybe 5 minutes while I do a
> hard drive swap.
>
> Thanks in advance for anyones thoughts on this.
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-15 16:15 [gentoo-user] Install Gentoo on one machine, then move the drive to another Jon M
2006-11-15 16:28 ` Geistteufel
@ 2006-11-15 16:44 ` Alan McKinnon
2006-11-15 23:00 ` Mark M
1 sibling, 1 reply; 14+ messages in thread
From: Alan McKinnon @ 2006-11-15 16:44 UTC (permalink / raw
To: gentoo-user
On Wednesday 15 November 2006 18:15, Jon M wrote:
> Hey again everyone,
>
> Here is my situation:
>
> I have CentOS running on a system in a datacenter, but want to switch
> to Gentoo. Basically what I've started to do is installed Gentoo on
> a P4 3.0Ghz machine at home, and plan on moving it to a Pentium D
> 2.66Ghz. Now if I configure/compile/install all my software on the
> P4, and the kernel is configured for all the hardware in the other
> machine, will it magically work, or will it freak out? My other
> concern is that maybe the applications won't be optimized for the
> other machine. If this is the case, once it's down there, could I
> simply emerge all of my programs one at a time?
>
> My reason for doing this is to minimize downtime. I didn't want to
> take the server offline for a week while I take my time configuring a
> new setup. This way it should only be down for maybe 5 minutes while
> I do a hard drive swap.
>
> Thanks in advance for anyones thoughts on this.
The one thing you *have* to do is configure the kernel on the compiling
machine for the correct hardware that the date center machine has.
There's no magic involved, when you boot into the new machine the
driver for it's hardware is either there or it isn't.
You probably also want to set your CFLAGS to the lowest common
denominator cpu - I don't recall off-hand what a Pentium D is, but I
imagine the setting will be -march=pentium4. This will avoid the
problem of code being compiled with cpu settings that are not present
on the target system.
And don't worry too much about optimization. We have a word for that -
it's called ricing and it's not a good thing. Compile the apps with
sane settings and stuff works. Trying to eke out those last 4 cpu
cycles just ain't worth the effort... If you need better performance,
buy more RAM or faster disks
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-15 16:44 ` Alan McKinnon
@ 2006-11-15 23:00 ` Mark M
2006-11-16 13:25 ` Alan McKinnon
0 siblings, 1 reply; 14+ messages in thread
From: Mark M @ 2006-11-15 23:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2472 bytes --]
Hi all,
Pentium D is actually an emt64 dual core cpu,
so while CFLAGS -march=pentium4 will work, it will be x86-32 instead of
x86-64 and of course the compiled apps won't know nothing about the dual
core (read almost dual CPU),
still it will run, and it will run fast, you may want to recompile the
kernel on the data center with vSMP option set, so at least the kernel will
know how to manage multithreads between two cores.
On 11/15/06, Alan McKinnon <alan@linuxholdings.co.za> wrote:
>
> On Wednesday 15 November 2006 18:15, Jon M wrote:
> > Hey again everyone,
> >
> > Here is my situation:
> >
> > I have CentOS running on a system in a datacenter, but want to switch
> > to Gentoo. Basically what I've started to do is installed Gentoo on
> > a P4 3.0Ghz machine at home, and plan on moving it to a Pentium D
> > 2.66Ghz. Now if I configure/compile/install all my software on the
> > P4, and the kernel is configured for all the hardware in the other
> > machine, will it magically work, or will it freak out? My other
> > concern is that maybe the applications won't be optimized for the
> > other machine. If this is the case, once it's down there, could I
> > simply emerge all of my programs one at a time?
> >
> > My reason for doing this is to minimize downtime. I didn't want to
> > take the server offline for a week while I take my time configuring a
> > new setup. This way it should only be down for maybe 5 minutes while
> > I do a hard drive swap.
> >
> > Thanks in advance for anyones thoughts on this.
>
> The one thing you *have* to do is configure the kernel on the compiling
> machine for the correct hardware that the date center machine has.
> There's no magic involved, when you boot into the new machine the
> driver for it's hardware is either there or it isn't.
>
> You probably also want to set your CFLAGS to the lowest common
> denominator cpu - I don't recall off-hand what a Pentium D is, but I
> imagine the setting will be -march=pentium4. This will avoid the
> problem of code being compiled with cpu settings that are not present
> on the target system.
>
> And don't worry too much about optimization. We have a word for that -
> it's called ricing and it's not a good thing. Compile the apps with
> sane settings and stuff works. Trying to eke out those last 4 cpu
> cycles just ain't worth the effort... If you need better performance,
> buy more RAM or faster disks
>
> alan
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 2974 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-15 23:00 ` Mark M
@ 2006-11-16 13:25 ` Alan McKinnon
2006-11-16 14:30 ` Mark M
0 siblings, 1 reply; 14+ messages in thread
From: Alan McKinnon @ 2006-11-16 13:25 UTC (permalink / raw
To: gentoo-user
On Thursday 16 November 2006 01:00, Mark M wrote:
> Hi all,
> Pentium D is actually an emt64 dual core cpu,
> so while CFLAGS -march=pentium4 will work, it will be x86-32 instead
> of x86-64 and of course the compiled apps won't know nothing about
> the dual core (read almost dual CPU),
> still it will run, and it will run fast, you may want to recompile
> the kernel on the data center with vSMP option set, so at least the
> kernel will know how to manage multithreads between two cores.
In that case he should be cross-compiling with a CHOST set for the
PentiumD, not so?
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 13:25 ` Alan McKinnon
@ 2006-11-16 14:30 ` Mark M
2006-11-16 14:45 ` Jon M
0 siblings, 1 reply; 14+ messages in thread
From: Mark M @ 2006-11-16 14:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
On 11/16/06, Alan McKinnon <alan@linuxholdings.co.za> wrote:
>
> On Thursday 16 November 2006 01:00, Mark M wrote:
> > Hi all,
> > Pentium D is actually an emt64 dual core cpu,
> > so while CFLAGS -march=pentium4 will work, it will be x86-32 instead
> > of x86-64 and of course the compiled apps won't know nothing about
> > the dual core (read almost dual CPU),
> > still it will run, and it will run fast, you may want to recompile
> > the kernel on the data center with vSMP option set, so at least the
> > kernel will know how to manage multithreads between two cores.
>
> In that case he should be cross-compiling with a CHOST set for the
> PentiumD, not so?
>
> alan
> --
> gentoo-user@gentoo.org mailing list
>
>
Yes, he can do so, but he won't be able to test run his apps.
And judging from my experience there isn't much difference between apps
compiled for x86-32 or x86-64, however compiling the kernel for right cpu
speed up things, especially multithreaded.
[-- Attachment #2: Type: text/html, Size: 1367 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 14:30 ` Mark M
@ 2006-11-16 14:45 ` Jon M
2006-11-16 14:51 ` Geistteufel
0 siblings, 1 reply; 14+ messages in thread
From: Jon M @ 2006-11-16 14:45 UTC (permalink / raw
To: gentoo-user
Mark M wrote:
>
>
> On 11/16/06, *Alan McKinnon* <alan@linuxholdings.co.za
> <mailto:alan@linuxholdings.co.za>> wrote:
>
> On Thursday 16 November 2006 01:00, Mark M wrote:
> > Hi all,
> > Pentium D is actually an emt64 dual core cpu,
> > so while CFLAGS -march=pentium4 will work, it will be x86-32 instead
> > of x86-64 and of course the compiled apps won't know nothing about
> > the dual core (read almost dual CPU),
> > still it will run, and it will run fast, you may want to recompile
> > the kernel on the data center with vSMP option set, so at least the
> > kernel will know how to manage multithreads between two cores.
>
> In that case he should be cross-compiling with a CHOST set for the
> PentiumD, not so?
>
> alan
> --
> gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list
>
>
> Yes, he can do so, but he won't be able to test run his apps.
> And judging from my experience there isn't much difference between apps
> compiled for x86-32 or x86-64, however compiling the kernel for right
> cpu speed up things, especially multithreaded.
>
Hi Mark,
I actually wasn't planning on using 64bit anyway
I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it as
-march=pentium4? Are they essentially the same? I already took your
previous suggestion and enabled vSMP support, though I haven't moved the
drive to it's new home as of yet.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 14:45 ` Jon M
@ 2006-11-16 14:51 ` Geistteufel
2006-11-16 15:04 ` Jon M
0 siblings, 1 reply; 14+ messages in thread
From: Geistteufel @ 2006-11-16 14:51 UTC (permalink / raw
To: gentoo-user
Did your actual system install on your Pentium D is in 64 bits ?
Le Thu, 16 Nov 2006 15:45:02 +0100, Jon M <gentoo@net-xero.net> a écrit:
> Mark M wrote:
>> On 11/16/06, *Alan McKinnon* <alan@linuxholdings.co.za
>> <mailto:alan@linuxholdings.co.za>> wrote:
>> On Thursday 16 November 2006 01:00, Mark M wrote:
>> > Hi all,
>> > Pentium D is actually an emt64 dual core cpu,
>> > so while CFLAGS -march=pentium4 will work, it will be x86-32
>> instead
>> > of x86-64 and of course the compiled apps won't know nothing
>> about
>> > the dual core (read almost dual CPU),
>> > still it will run, and it will run fast, you may want to
>> recompile
>> > the kernel on the data center with vSMP option set, so at least
>> the
>> > kernel will know how to manage multithreads between two cores.
>> In that case he should be cross-compiling with a CHOST set for the
>> PentiumD, not so?
>> alan
>> --
>> gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list
>> Yes, he can do so, but he won't be able to test run his apps.
>> And judging from my experience there isn't much difference between apps
>> compiled for x86-32 or x86-64, however compiling the kernel for right
>> cpu speed up things, especially multithreaded.
>>
>
> Hi Mark,
>
> I actually wasn't planning on using 64bit anyway
>
> I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it as
> -march=pentium4? Are they essentially the same? I already took your
> previous suggestion and enabled vSMP support, though I haven't moved the
> drive to it's new home as of yet.
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 14:51 ` Geistteufel
@ 2006-11-16 15:04 ` Jon M
2006-11-16 15:10 ` Mark M
2006-11-16 15:17 ` Geistteufel
0 siblings, 2 replies; 14+ messages in thread
From: Jon M @ 2006-11-16 15:04 UTC (permalink / raw
To: gentoo-user
Geistteufel wrote:
>> Hi Mark,
>>
>> I actually wasn't planning on using 64bit anyway
>>
>> I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it
>> as -march=pentium4? Are they essentially the same? I already took
>> your previous suggestion and enabled vSMP support, though I haven't
>> moved the drive to it's new home as of yet.
> Did your actual system install on your Pentium D is in 64 bits ?
The OS is installed on a regular Pentium 4 (32bit), but will be
installed on a Pentium D that can run 64bit, but will be sticking with
32bit.
Is that what you wanted to know?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 15:04 ` Jon M
@ 2006-11-16 15:10 ` Mark M
2006-11-16 15:18 ` Jon M
2006-11-16 15:17 ` Geistteufel
1 sibling, 1 reply; 14+ messages in thread
From: Mark M @ 2006-11-16 15:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 740 bytes --]
>
>
> Hi Mark,
>
> I actually wasn't planning on using 64bit anyway
>
> I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it as
> -march=pentium4? Are they essentially the same? I already took your
> previous suggestion and enabled vSMP support, though I haven't moved the
> drive to it's new home as of yet.
> --
> gentoo-user@gentoo.org mailing list
x86-32 will be the lowest common settings for all 32bit cpus.
so pentium4 is the setting I believe you should use.
I can tell you from my experience, since I use PentiumD cpu, that
recompiling with -march=prescott gave me better performance then
-marh=x86-32, especially in disk intensive and multimedia applications, such
as video encoding and large database access.
[-- Attachment #2: Type: text/html, Size: 1043 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 15:04 ` Jon M
2006-11-16 15:10 ` Mark M
@ 2006-11-16 15:17 ` Geistteufel
1 sibling, 0 replies; 14+ messages in thread
From: Geistteufel @ 2006-11-16 15:17 UTC (permalink / raw
To: gentoo-user
The system you would replace, is on the Pentium D ? I don't remember the
distro name, but not the gentoo one.
So if Pentium D contain 64 bits distro you would replace by gentoo ...
they is a solution to compile it directly on this computer in 64 bits, so
after just replace the main system with a rescue
If not ... you can copy the system on your pentium 4 ... replace your prod
for a moment, take the pentium D and install a 64 bits gentoo version ...
so replace your prod with 64 bits version ... a sort of double switch
you see ?
Le Thu, 16 Nov 2006 16:04:20 +0100, Jon M <gentoo@net-xero.net> a écrit:
> Geistteufel wrote:
>
>>> Hi Mark,
>>>
>>> I actually wasn't planning on using 64bit anyway
>>>
>>> I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it
>>> as -march=pentium4? Are they essentially the same? I already took
>>> your previous suggestion and enabled vSMP support, though I haven't
>>> moved the drive to it's new home as of yet.
>
> > Did your actual system install on your Pentium D is in 64 bits ?
>
> The OS is installed on a regular Pentium 4 (32bit), but will be
> installed on a Pentium D that can run 64bit, but will be sticking with
> 32bit.
>
> Is that what you wanted to know?
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 15:10 ` Mark M
@ 2006-11-16 15:18 ` Jon M
2006-11-16 16:00 ` Mark M
2006-11-16 18:07 ` Richard Fish
0 siblings, 2 replies; 14+ messages in thread
From: Jon M @ 2006-11-16 15:18 UTC (permalink / raw
To: gentoo-user
Mark M wrote:
>
> Hi Mark,
>
> I actually wasn't planning on using 64bit anyway
>
> I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it as
> -march=pentium4? Are they essentially the same? I already took your
> previous suggestion and enabled vSMP support, though I haven't moved the
> drive to it's new home as of yet.
> --
> gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list
>
>
> x86-32 will be the lowest common settings for all 32bit cpus.
> so pentium4 is the setting I believe you should use.
> I can tell you from my experience, since I use PentiumD cpu, that
> recompiling with -march=prescott gave me better performance then
> -marh=x86-32, especially in disk intensive and multimedia applications,
> such as video encoding and large database access.
>
>
>
Hi Mark,
Thanks for the tip! I'll be sure to switch my CFLAGS to that. I might
as well make the system run as fast as it possibly can.
What did you set your MAKEOPTS to? I was thinking -j3 because of the
two cores plus one. Did you do the same?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 15:18 ` Jon M
@ 2006-11-16 16:00 ` Mark M
2006-11-16 18:07 ` Richard Fish
1 sibling, 0 replies; 14+ messages in thread
From: Mark M @ 2006-11-16 16:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]
On 11/16/06, Jon M <gentoo@net-xero.net> wrote:
>
> Mark M wrote:
> >
> > Hi Mark,
> >
> > I actually wasn't planning on using 64bit anyway
> >
> > I'm wondering if I should set my CFLAGS to -march=x86-32 or leave it
> as
> > -march=pentium4? Are they essentially the same? I already took
> your
> > previous suggestion and enabled vSMP support, though I haven't moved
> the
> > drive to it's new home as of yet.
> > --
> > gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list
> >
> >
> > x86-32 will be the lowest common settings for all 32bit cpus.
> > so pentium4 is the setting I believe you should use.
> > I can tell you from my experience, since I use PentiumD cpu, that
> > recompiling with -march=prescott gave me better performance then
> > -marh=x86-32, especially in disk intensive and multimedia applications,
> > such as video encoding and large database access.
> >
> >
> >
>
> Hi Mark,
>
> Thanks for the tip! I'll be sure to switch my CFLAGS to that. I might
> as well make the system run as fast as it possibly can.
>
> What did you set your MAKEOPTS to? I was thinking -j3 because of the
> two cores plus one. Did you do the same?
> --
> gentoo-user@gentoo.org mailing list
>
>
yes my MAKEOPTS are -j3 indeed :)
[-- Attachment #2: Type: text/html, Size: 2040 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another
2006-11-16 15:18 ` Jon M
2006-11-16 16:00 ` Mark M
@ 2006-11-16 18:07 ` Richard Fish
1 sibling, 0 replies; 14+ messages in thread
From: Richard Fish @ 2006-11-16 18:07 UTC (permalink / raw
To: gentoo-user
On 11/16/06, Jon M <gentoo@net-xero.net> wrote:
> What did you set your MAKEOPTS to? I was thinking -j3 because of the
> two cores plus one. Did you do the same?
I suggest MAKEOPTS=-j3 if you have at least 2G of RAM in the box. If
only 1G, MAKEOPTS=-j2. If less, -j1.
You can also change this after you move the drive over.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-11-16 18:16 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 16:15 [gentoo-user] Install Gentoo on one machine, then move the drive to another Jon M
2006-11-15 16:28 ` Geistteufel
2006-11-15 16:44 ` Alan McKinnon
2006-11-15 23:00 ` Mark M
2006-11-16 13:25 ` Alan McKinnon
2006-11-16 14:30 ` Mark M
2006-11-16 14:45 ` Jon M
2006-11-16 14:51 ` Geistteufel
2006-11-16 15:04 ` Jon M
2006-11-16 15:10 ` Mark M
2006-11-16 15:18 ` Jon M
2006-11-16 16:00 ` Mark M
2006-11-16 18:07 ` Richard Fish
2006-11-16 15:17 ` Geistteufel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox