Bootstrapping the system
So yesterday, I configured my network. Because I had to go to a little birthday party, I couldn't work further on it.
Preparing the disks
I have a 80GB harddisk, so this is my partition sheme:
/dev/sda1 64MB /boot
/dev/sda2 512MB /
/dev/sda3 the rest -> LVMSo I made one LVM-cluster and made these logical partitions in it: /var /tmp /home swap /usr and /opt, each one 1GB big (swap is 512MB). All filesystems are XFS, /boot is ext3.
Installing the Gentoo Installation Files
I've chosen to download the latest stage1-tarball and portage-snapshot from the (Belnet-mirror. CHOST and CFLAGS were a bit difficult. Because of gcc3.3 doesn't recognize "march=pentium-m", wich my processor is, I had to bootstrap with "pentium4" until gcc. After gcc3.4 was installed (wich is in my package.keywords, ~x86), I could adapt the new pentium-m setting. Normally, I should use "-O3" for faster operation, but Ikke told me that's useless because the filesize makes it run slower so there's no netto-effect.
Installing the Gentoo Base System
My profile is the default one, I'll post my use-flags later, when my installation is complete and I can just copy-past ;-) I didn't touch locales, it also isn't in my use-flags, so now I'm bootstrapping and taking a nap :-D


3 reacties
Whoa, don't let some other Gentoo users hear you say that about -O3 :-) There are people out there who'd die by their -O9.
Seriously though, it's hard to say anything definitively about the impact of CFLAGS like that. I did my own tests and it seemed like -O3 didn't really do much over -O2 except increase binary size, but the -fweb option (which is one of the three enabled at -O3 but not -O2) did improve performance somewhat, so -O3 isn't all bad.
Thanks for your comment, Rohan!
So you tested and found -O3 gave some little improvement? Did you also found disadvantages of -O3? Wich one do you use? Thanks!
I use '-march=pentium-m -O2 -fweb -pipe -fomit-frame-pointer', but by no means do I claim that to definitely be the best. It _is_ the best for compiling lame (the MP3 encoder) with though, at least for me, because I benchmarked every combination of -O2 and individual -O3 options possible, and -fweb was the only one which gave a clear advantage. (the other -O3 options didn't actually appear to slow anything down, but they did make the binary a little bigger, and possibly might break some things.)
Of course, different apps respond to CFLAGS in different ways, so it's not going to be the best for all apps. But I'm happy with it :-)
Plaats een nieuwe reactie