1 |
On Sat, Mar 10, 2012 at 03:35:05PM +0000, Neil Bothwick wrote: |
2 |
> On Sat, 10 Mar 2012 14:30:15 +0100, Alex Schuster wrote: |
3 |
> |
4 |
> > Any tips on this? Does it make sense to use a special file system just |
5 |
> > for the portage tree? What would be best? Would it help to re-create |
6 |
> > this file system from time to time in case it gets slower with every |
7 |
> > sync? |
8 |
> |
9 |
> I use an ext2 filesystem for portage, it's still the fastest out there. |
10 |
> Journals are unnecessary because its such a small filesystem, and if it |
11 |
> does get damaged I can just reformat and sync again. |
12 |
|
13 |
I use an ext2 partition in a 500MB file image on most of my computers. |
14 |
Its important to check the inode count on such small filesytem, as |
15 |
mke2fs' default inode ration for such size is 4096, which is too |
16 |
low for portage: |
17 |
|
18 |
dd bs=$((500*1024*1024)) count=1 if=/dev/zero of=/usr/img_portage |
19 |
mke2fs -f -b1024 -i2048 /usr/img_portage |
20 |
|
21 |
fstab: |
22 |
/usr/img_portage /usr/portage/ ext2 loop,noatime 0 0 |
23 |
(this is from desktop, on servers I usually only mount it manually when |
24 |
emerging) |
25 |
|
26 |
# df -h |
27 |
Filesystem Size Used Avail Use% Mounted on |
28 |
/dev/loop0 469M 306M 139M 69% /usr/portage |
29 |
|
30 |
# df -i |
31 |
Filesystem Inodes IUsed IFree IUse% Mounted on |
32 |
/dev/loop0 256032 152044 103988 60% /usr/portage |
33 |
|
34 |
|
35 |
yoyo |