📜 ⬆️ ⬇️

Tips for working with Linux from a flash drive

After buying Asus eeePC and installing Linux there, I was thinking about extending the life of the embedded ssd disks. Searching on the Internet, I found an interesting article that describes how to do it. I really liked the article and decided to translate it.

If you are working in Linux from a flash drive, then there are a few things you might want to do in order to reduce the wear and tear on the flash drive you are using (as it has a limited number of rewrite cycles).

All of the above kernel parameters can be configured using our own boot script, as in this example . Save it, for example, in /etc/init.d/kernel-params, make it executable with the command

chmod a+x /etc/init.d/kernel-params

and make sure that it is executed with the command

update-rc.d kernel-params defaults

Remark Most of these settings reduce the number of writes to disk by increasing memory usage. This increases the risk of a low memory situation (which can trigger a “process killer” in the kernel). This can occur even if there is available free memory (for example, when the kernel needs to allocate more than one continuous page, but only fragmented pages are available).
Thus, with any settings, it is recommended to keep an eye on the amount of free memory and change these settings (using less aggressive caching and increasing paging) depending on the workload.

Source: https://habr.com/ru/post/50689/


All Articles