Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:self-hosting [2011/12/25 14:49] cyril [Flash cache] |
internet:self-hosting [2013/09/19 16:40] (current) |
||
---|---|---|---|
Line 15: | Line 15: | ||
You need an USB stick or SD Card of at least 2GB (4GB is advised), and an init script to mount and fetch during early boot process, and unmount and flush during late shutdown process. For instance I wrote this one for Gentoo: [[init_fcache|/ | You need an USB stick or SD Card of at least 2GB (4GB is advised), and an init script to mount and fetch during early boot process, and unmount and flush during late shutdown process. For instance I wrote this one for Gentoo: [[init_fcache|/ | ||
- | As an example, my server (a Core2 Duo laptop) consumes 12-13W (saved 1W stopping the hard drive), makes no noise at all (no fan, no hard drive), and the hard drive remains stopped for several days, as long as I don' | + | As an example, my server (a Core2 Duo laptop) consumes 12-13W (saved 1W stopping the hard drive), makes no noise at all (no fan, no hard drive), and the hard drive remains stopped for several days, as long as I don' |
=== What to cache === | === What to cache === | ||
The main directories you need to take care of are: | The main directories you need to take care of are: | ||
- | * ''/ | + | * ''/ |
- | * ''/ | + | * ''/ |
- | * ''/ | + | * ''/ |
If you cannot cache your whole home folder, you can cache a few files that are updated too often by putting them in a '' | If you cannot cache your whole home folder, you can cache a few files that are updated too often by putting them in a '' | ||
Line 32: | Line 32: | ||
* for SSHD: set '' | * for SSHD: set '' | ||
* for SU: set '' | * for SU: set '' | ||
+ | * application data folder of programs you commonly use (firefox, music player, ...) | ||
- | ''/ | + | ''/ |
- | * ''/ | + | * ''/ |
- | === Configure | + | === Configure |
If you run '' | If you run '' | ||
Line 44: | Line 45: | ||
+/dev/sda -d ata -n standby | +/dev/sda -d ata -n standby | ||
</ | </ | ||
+ | |||
+ | Asking the temperature to the '' | ||
+ | |||
+ | Also be careful to conflicts between manual configuration and different power manager utilities (like pm-utils, your desktop environment...). You may have to disable some of them if it doesn' | ||
=== Finding the guilty files === | === Finding the guilty files === | ||
Line 68: | Line 73: | ||
And for final configuration copy ''/ | And for final configuration copy ''/ | ||
+ | |||
+ | You can also configure with your power manager utility if you have one. | ||
=== Optional extra configuration === | === Optional extra configuration === | ||
Line 82: | Line 89: | ||
=== Read cache === | === Read cache === | ||
- | You can try to prefetch in the Linux RAM read cache all the programs and files you often read, with a script that executes programs and grep inside files. | + | You can try to prefetch in the Linux RAM read cache all the programs and files you often read, with a script that executes programs and grep inside files when you start the computer. |
- | You can also have a look at '' | + | You can also have a look at '' |
=== RAM write cache === | === RAM write cache === |