خرید بک لینک

Important, I don't need the disk space. My motivation is purely extending the life of the SSD memory.

System specs:
16GB of physical RAM
Partitions and storage devices:

  • Swap: SSD: Linux-Swap … (16 GB)
  • Primary : SSD, EXT4 ……. (223 GB)
  • Backup1: exteal SSD: FAT32
  • Backup2: exteal HD:NTFS

Ruing cat /proc/mounts, relatime is enabled on all mounted media

Ruing cat /proc/sys/vm/swappiness, I get the value of 10

Ruing cat /proc/swaps

Code:

Filename                        Type                           Size               Used             Priority
/dev/sda3                     partition                      16607228                0                 -1
Note, the above is slightly misleading, since it was checked just after a reboot. Previously, after laptop had been ruing for several hours, it was using about 4 MB.

Questions

1/ It has been suggested that for a system with my specs, I would be better off replacing the 16 GB swap partition with a 512 MB swap file, (see here.)

Removing writes and expensive storage amount is the two factors why people also remove swap area. By default, Ubuntu creates swap partition equal to your RAM size. I have a 128 SSD and 6 GB of RAM. That means that by default Ubuntu will chop off 6 GB from 128GB, leaving 122GB for my OS, and 5% is typically reserved for root, so that leaves me 122-122*0.05=115.9 GB for myself. I might as well use that storage for something else, which is why I have only one main partition, no swap partition, but I do have a 512 MB swap file as a protective feature (not that I plan on ruing out of RAM, but it's always recommended to have swap)
Note, I don't use hibeation and prefer to either either suspend to RAM or reboot completely.

2/ If I replace the swap partition with a swap file, should I reduce the swappiness value, and, if so, what should this new value be?

3/ This article suggest that you should leave about 7% of the available space, (max10 GB,) for overprovisioning.

  • What is overprovisioning and how does it work?
  • The article is slightly dated, is still a good idea.

4/ I currently do not have a server or database application ruing, but, in the near future,I will most likely be installing Apache/MySQL on localhost to run MediaWiki, PHP and other interesting goodies. Is relatime the best option for my situation, or would I be better off editing fstab to enable noatime?

5/ Checking cron.weekly, TRIM is set TRUE for all mounted media. On the other hand, the above mentioned article suggests that I would be better off adding fstrim to rc.local so that it is run at each boot. Does anybody have any views on this?

6/ Given the above, what is the best way to ensure the exteal FAT32 SSD is present, mounted and TRIMed.

7/ Of academic interest: Would I have better off using the F2FS format for my primary partition?

I am looking forward to hearing peoples opinions on the above. So thanks in advance

Irvine

- - , .

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 9 اسفند 1394 ساعت: 11:51

صفحه بندی