Choice of Caching Modes:
=========================
Writethrough — safest, all writes are cached to ssd but also written to disk
immediately. If your ssd has slower write performance than your disk (likely
for early generation SSDs purchased in 2008-2010), this may limit your system
write performance. All disk reads are cached (tunable).
Writearound — again, very safe, writes are not written to ssd but directly to
disk. Disk blocks will only be cached after they are read. All disk reads
are cached (tunable).
Writeback — fastest but less safe. Writes only go to the ssd initially, and
based on various policies are written to disk later. All disk reads are
cached (tunable).
Cache Persistence:
=================
Writethru and Writearound caches are not persistent across a device removal
or a reboot. Only Writeback caches are persistent across device removals
and reboots. This reinforces 'writeback is fastest', 'writethrough is safest'.
У Интертелекома это логин/пароль для PPP. На самом деле, он там вообще нафиг не нужен, т.к. авторизация идет по номеру, который жестко прибит к ESN модема/телефона.
А вот для входа в личный кабинет нужно зарегистрироваться в системе самобслуживания и придумать пароль.
Слияние конфигурации в Yii — это, по моим тестам (профайлинг xdebug-ом), очень, очень медленно. mergeArray почему-то страшно тупит — чуть ли не 20% времени скрипта.
Для себя я решил проще — шаблоны конфигурации, слияние и запись в файл (один-единственный). На продакшене — делаем что-то а-ля ./yiic makeConfig production, на девеле — соответственно меняем параметр.
=========================
Writethrough — safest, all writes are cached to ssd but also written to disk
immediately. If your ssd has slower write performance than your disk (likely
for early generation SSDs purchased in 2008-2010), this may limit your system
write performance. All disk reads are cached (tunable).
Writearound — again, very safe, writes are not written to ssd but directly to
disk. Disk blocks will only be cached after they are read. All disk reads
are cached (tunable).
Writeback — fastest but less safe. Writes only go to the ssd initially, and
based on various policies are written to disk later. All disk reads are
cached (tunable).
Cache Persistence:
=================
Writethru and Writearound caches are not persistent across a device removal
or a reboot. Only Writeback caches are persistent across device removals
and reboots. This reinforces 'writeback is fastest', 'writethrough is safest'.
Кстати, такие тоже можно завести, но слишком геморно.
А вот для входа в личный кабинет нужно зарегистрироваться в системе самобслуживания и придумать пароль.
Для себя я решил проще — шаблоны конфигурации, слияние и запись в файл (один-единственный). На продакшене — делаем что-то а-ля ./yiic makeConfig production, на девеле — соответственно меняем параметр.
Отдельное спасибо за подсказки о подводных камнях вроде cd перед pivot_root.