Разумные варианты крепления для SSD, который не поддерживает обрезку?

Конечно, это плохо объяснено.

Окончательное назидание может быть достигнуто только путем чтения исходного кода: https://github.com/gagern/gnulib/blob/master/lib/filevercmp.c . В основном:

Суффикс соответствует самой длинной строке (\. [A-Za-z ~] [A-Za-z0-9 ~] *) * $ . Обратите внимание на $ , который требует, чтобы совпадение было в конце имени файла. Разделенные точками части суффикса рассматриваются как номера версий для целей сравнения.

~ - это просто символ, который может появляться в имени файла. Иногда это используется в номерах версий, таких как 3.4.1 ~ alpha .

В последнем примере, в последнем предостережении, почему имена файлов отсортированы таким образом по версии сортировки?

Поскольку _ не является допустимым суффиксным символом, файлы, заканчивающиеся на x86_64.rpm рассматриваются как безверсионные (или просто rpm рассматриваются как версия). Непонятно, почему они не отсортированы по словарю в качестве запасного варианта.

2
07.09.2017, 23:33
1 ответ

Линукс Торвальдс предлагает noatime.

Определения noatimeиnodiratime:

  • noatime : Without the "noatime" flag on your file system every read will cause a write, because the file system will update the access time. This is bad for the life-time of your SSD, since it supports a limited number of writes and this is causing significantly more writes.

Linux kernel developer Ingo Molnár claimed that it (atime) was “perhaps the most stupid Unix design idea of all times.” To disable the tracking of atime, the noatime option can be used to mount filesystems. For IO intensive tasks, the performance reward for turning off atime can be immediately apparent. But, turning off atime unconditionally will occasionally break certain software like mail tools that compare mtime and atime to determine whether there is unread mail or not. The tmpwatch utility and some backup tools also use atime and can misbehave if atime is incorrect. Audit requirements are another reason for keeping atime enabled.

  • nodiratime : This is the same as the noatime option but this only applies to directories. Note that turning on noatime implicitly means that nodiratime is enabled as well.
1
27.01.2020, 22:18

Теги

Похожие вопросы