Quote:
Although I suspect compiling will be frustratingly slow with Gentoo no matter what you do, due to shared disks.
I've been running Gentoo on my node for > 1 year. Compile time is *great*, especially since migrating to Xen. (My friend also runs Gentoo on a Linode, and we use distcc via the local LAN in Newark. Works great. Ping me if you're in Newark and want to join the party!)
Anyway, here's my "tips" for Gentoo on Linode:
Roll your own using Finnix. By caker's own admission, he's not a Gentoo guy... the provided pre-install is out of date, and not optimized for Xen.
Here's pertinent snippits from my make.conf:
Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -fomit-frame-pointer -O2 -pipe -mno-tls-direct-seg-refs"
USE="-* apache2 berkdb bzip2 cli cracklib crypt gpm iconv logrotate jpeg ncurses nls nptl nptlonly pam pcre perl python readline session ssl tcpd tiff unicode vhosts zlib"
I also set vm.swapiness=25 in sysctl.conf
Use flags for stuff I run (Mainly gallery2 and qmail):
/etc/portage/package.use
Code:
# Gallery2
media-libs/tiff jbig
app-text/ghostscript-gpl jpeg2k
media-gfx/imagemagick fpx hdri jbig jpeg2k lcms mpeg png truetype wmf
media-libs/netpbm jbig jpeg2k png
media-libs/imlib2 gif mp3 png
media-video/ffmpeg aac amr encode imlib network ogg theora truetype v4l vorbis x264 xvid
# LAMP
dev-db/mysql berkdb big-tables max-idx-128
www-servers/apache ssl
dev-lang/php bzip2 -cgi crypt ctype curl curlwrappers exif force-cgi-redirect ftp gd iconv inifile mysql mysqli pcre session -sharedmem sockets tokenizer truetype xml xmlrpc xsl zip zlib
net-proxy/squid customlog
dev-php5/eaccelerator contentcache sharedmem
# Mail
mail-client/nail net
mail-mta/netqmail qmail-spp gencertdaily
net-mail/dovecot doc vpopmail
mail-filter/dovecot-antispam dspam
mail-filter/dspam clamav virtual-users
net-mail/vpopmail -mysql
mail-filter/spamassassin qmail
mail-filter/qmail-scanner clamav spamassassin
dev-lang/perl perlsuid
mail-client/squirrelmail spell
# Misc
dev-lang/python threads
Size of my /usr/portage (I'm still on 1k blocks):
Code:
dfelicia@catch-22 ~ $ cd /usr/portage/
dfelicia@catch-22 portage $ du -sh .
422M .
dfelicia@catch-22 portage $ du -sh distfiles/
192M distfiles/
Last time I did an emerge -e system (after changing CFLAGS when I was migrated to Xen), it only took a few hours.