Gentoo Archives: gentoo-user

From: Alois Hammer <aloishammer@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more
Date: Fri, 15 Feb 2008 20:37:06
Message-Id: 2db050802151237x28356a8eg9f22c9517f8fcb43@mail.gmail.com
In Reply to: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more by Strong Cypher
1 Suggestion: put your Portage and database trees on flash storage. I'd
2 go with one of two routes: a fast USB stick or a quality CompactFlash
3 card. At the moment, the one place I know of to get a quality CF card
4 is NewEgg: they're selling a couple of "266x" CF4-compliant cards,
5 Transcend-branded. Addonics will be happy to sell you an adapter
6 (~USD$30) that will go into a spare drive bay and turn the CF card
7 into some really, really fast UDMA storage.
8
9 (If it's not at least CF3-compliant, your CF storage will still work
10 happily as an IDE hard drive, but it'll do it at PIO transfer rates,
11 and you were looking for speed.)
12
13 Putting both /usr/portage and /var/db on flash memory pulls it
14 completely off any disk spindles that you'd otherwise have to share
15 with /, or /usr, or whatever other filesystems you're likely to have
16 on magnetic media.
17
18 A word of warning, either way: don't put a Linux-native filesystem on
19 any kind of flash memory. Wear leveling only works if the memory
20 controller understands the filesystem you're writing to the drive.
21 That means FAT16, or FAT32 if you're lucky. And, yes, I've tried to
22 get information out of Transcend sales on whether or not they sell any
23 products that speak alternative filesystems. I never got an answer
24 back, which I think means, "Ha ha ha! *wipes tears* That's funny!
25 Ask another one!"
26
27 I'd ask, say, OCZ, but Transcend manufactured both of my "OCZ" USB flash drives.
28
29 Still interested? You'll want about 2GB total: that seems to hold the
30 entire current Portage tree, plus a good-sized /var/db, and leaves
31 something like 500MB free for growth. Get 4GB if you're paranoid;
32 it's cheap anyway. This assumes that you don't store
33 /usr/portage/distfiles on the flash storage. I wouldn't, and didn't:
34 make /usr/portage/distfiles a symlink to somewhere on your magnetic
35 media, and make sure that the new directory ("/usr/distfiles" in my
36 case) is owned by root:portage so that you can leave
37 FEATURES="userfetch" turned on in make.conf.
38
39 For sanity reasons, you may want to mount your new FAT16/32 filesystem
40 with -o uid=0,gid=0. Or, if you're using FEATURES="userpriv," maybe
41 uid=250,gid=250 (portage:portage on my machine). That all depends on
42 your particular FEATURE flags.
43
44 On Fri, Feb 15, 2008 at 8:36 AM, Strong Cypher <cypherstrong@×××××.com> wrote:
45 > -----BEGIN PGP SIGNED MESSAGE-----
46 > Hash: SHA1
47 >
48 > Hi,
49 >
50 > I'm looking for an alternative to ext2/3.
51 >
52 > I have put reiser3/4 out because of project seems to be off now ... or not
53 > really active
54 >
55 > I really want an active project.
56 >
57 > Is they a good fs that is extremly adapted to gentoo system (portage ...)
58 >
59 > Is they fs that support gzip like reiser4 do ?
60 >
61 > For exemple , with reiser4 the portage directory don't take a lot of space,
62 > and so read it it's really fast...
63 >
64 > I want a alternative
65 >
66 > is ext4 a good alternative ?
67 > -----BEGIN PGP SIGNATURE-----
68 > Version: GnuPG v2.0.7 (GNU/Linux)
69 >
70 > iD8DBQFHtZVGEg3iyspSWPARAiitAJsGb87FwLBPir4a2y9NjSq+0uW9pgCfb7aW
71 > ZmCRw4wDqC4b/SBPumKY6kI=
72 > =16t6
73 > -----END PGP SIGNATURE-----
74 >
75 >
76 --
77 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more Neil Walker <neil@×××××××.nu>