Page 1 of 1

Faster booting

Posted: 27 Jul 2013, 08:36
by tome
I have this in my mind:
Hibernate to swap (once) and resume from hibernate (every time) by means of a new entry in bootloader config (resume=). The same data in swap (partition or compressed file) would be used (the same machine) for fast always fresh mode. Furthermore there aren't needed base modules (if copy2ram is used), but maybe should be used physical write protected pendrive with swap and nohd, noauto cheatcodes. Some settings (guest and root folders or desktop files) could be saved in other place (no pendrive) and loaded by paths.xzm (links) module after mounting disk.
Well, my questions:
1. Is this good way for fast booting (ca. 2 times faster for older machines)?
2. If yes can I do it more liberally (without physically protected pendrive) - how can I load data from disk and prevent at the same time swap (and partition with base modules) from changes (noswap doesn't work with resume cheatcode)?

Re: Faster booting

Posted: 27 Jul 2013, 12:47
by fanthom
interesting idea but i see one big disadvantage:
- you wont be able to run hibernated porteus on different PC as hardware differs and kernel is never initialized when waking up.

if you want to use this method on the same PC then it should work.
how can I load data from disk and prevent at the same time swap (and partition with base modules) from changes (noswap doesn't work with resume cheatcode)?
i think this is not possible although you could change 'swappiness' to reduce swap usage:
http://en.wikipedia.org/wiki/Swappiness