1 |
Hello Microcal, |
2 |
|
3 |
I use tmpfs heavily as I have an SSD. |
4 |
Here are some information that can help you : |
5 |
|
6 |
tank woody # mount -v | grep tmpfs |
7 |
devtmpfs on /dev type devtmpfs |
8 |
(rw,relatime,size=8050440k,nr_inodes=2012610,mode=755) |
9 |
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,size=1610408k,mode=755) |
10 |
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime) |
11 |
cgroup_root on /sys/fs/cgroup type tmpfs |
12 |
(rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755) |
13 |
tmpfs on /var/tmp/portage type tmpfs (rw,size=12G) |
14 |
tmpfs on /usr/portage type tmpfs (rw,size=12G) |
15 |
tmpfs on /usr/src type tmpfs (rw,size=12G) |
16 |
tmpfs on /tmp type tmpfs (rw,size=12G) |
17 |
tmpfs on /home/woody/.mutt/cache type tmpfs (rw) |
18 |
|
19 |
tank woody # cat /etc/fstab |
20 |
# /etc/fstab: static file system information. |
21 |
# |
22 |
# noatime turns off atimes for increased performance (atimes normally |
23 |
aren't |
24 |
# needed); notail increases performance of ReiserFS (at the expense of |
25 |
storage |
26 |
# efficiency). It's safe to drop the noatime options if you want and to |
27 |
# switch between notail / tail freely. |
28 |
# |
29 |
# The root filesystem should have a pass number of either 0 or 1. |
30 |
# All other filesystems should have a pass number of 0 or greater than 1. |
31 |
# |
32 |
# See the manpage fstab(5) for more information. |
33 |
# |
34 |
|
35 |
# <fs> <mountpoint> <type> <opts> <dump/pass> |
36 |
|
37 |
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. |
38 |
/dev/sda1 / ext4 noatime,discard,user_xattr 0 1 |
39 |
/dev/sda3 /home ext4 noatime,discard,user_xattr 0 1 |
40 |
#/dev/sda6 /home ext3 noatime 0 1 |
41 |
#/dev/sda2 none swap sw 0 0 |
42 |
tmpfs /var/tmp/portage tmpfs size=12G 0 0 |
43 |
tmpfs /usr/portage tmpfs size=12G 0 0 |
44 |
tmpfs /usr/src tmpfs size=12G 0 0 |
45 |
tmpfs /tmp tmpfs size=12G 0 0 |
46 |
tmpfs /home/woody/.mutt/cache/ tmpfs size=12G 0 0 |
47 |
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0 |
48 |
#/dev/fd0 /mnt/floppy auto noauto 0 0 |
49 |
tank woody # |
50 |
|
51 |
For the /usr/portage directory, if you reboot, all you have to do is |
52 |
emerge-webrsync or do like me : |
53 |
tank woody # l /usr/ | grep portage |
54 |
924221 4 drwxr-xr-x 170 root root 4096 1 mars 02:51 portage_tmpfs |
55 |
6771 0 drwxr-xr-x 171 root root 3500 11 juin 20:40 portage |
56 |
tank woody # |
57 |
|
58 |
The /usr/portage_tmpfs is a backup of the /usr/portage, this avoid me |
59 |
retreiving all portage information from gentoo's servers. |
60 |
|
61 |
Please note that I also use www-misc/profile-sync-daemon in order to |
62 |
store my browsers cache on /tmp. |
63 |
|
64 |
I rarely shutdown my computer :) |
65 |
Have fun |
66 |
|
67 |
On 19/06/2014 04:36, microcai wrote: |
68 |
> rsync is doing bunch of 4k ramdon IO when updateing portage tree, |
69 |
> that will kill SSDs with much higher Write Amplification Factror. |
70 |
> |
71 |
> |
72 |
> I have a 2year old SSDs that have reported Write Amplification Factor |
73 |
> of 26. I think the only reason is that I put portage tree on this SSD |
74 |
> to speed it up. |
75 |
> |
76 |
> what is the suggest way to reduce Write Amplification of a portage sync ? |
77 |
> |