Bootstrapping the system

(tags: )

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 -> LVM

So 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

Rohan's picture

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.

Peter Dedecker's picture

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!

Rohan's picture

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

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web- en e-mail adressen worden automatisch omgezet in links.
  • Toegestane HTML tags: <a> <acronym> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <ins> <i> <b> <u> <blockquote>
  • Je mag code posten dmv <code>...</code> (generiek) of <?php ... ?> (highlighted PHP) tags.
  • Op het einde van de lijn of paragraaf wordt automatisch een nieuwe lijn begonnen.

Meer informatie over opmaak mogelijkheden

Syndicate content

Politiek engagement

N-VA logo

Kortjes

Blik op mijn agenda

Je vindt me ook terug op

Facebook logo
Twitter logo
YouTube logo
Vimeo logo
GarageTV logo
Flickr logo

Laatste reacties

Syndicate content

Laatste foto's

Meer foto's hier.

Contact

Je kan me steeds contacteren via het contactformulier of rechtstreeks:
Kleine Kerkstraat 24, 9050 Gent
Peter@peterdedecker.eu
0486/152320

Disclaimer

Dit is de website van Peter Dedecker. Alle teksten mogen, tenzij anders vermeld, overgenomen worden mits bronvermelding. Een link wordt altijd geapprecieerd. Dit alles is mijn persoonlijke opinie. Organisaties waar ik lid van (geweest) ben of voor (ge)werk(t heb) kunnen in geen geval aansprakelijk gesteld worden voor wat ik hier schrijf. Zie de volledige disclaimer.