Re: Debian auf SD-Karte
On Tuesday 19 February 2008 19:41, Michael Renner wrote:
> Moin,
[...]
> Bringt Etch Mechanismen mit die den Betrieb mit nur wenigen
> Schreibzugriffen unterstützen? Oder muss ich bei Knoppix & Co schauen wie
> es dort gemacht wird?
Danke für die vielen Antworten und Links. Nun sind folgende Mechanismen
eingebaut:
Abweichende Settings in der /etc/fstab (auf SWAP verzichte ich vollständig. Da
sind satte 80MB eingebaut, das muss reichen!):
/dev/hda1 / ext3
nodiratime,noatime,rw,errors=remount-ro,commit=120 0 1
# temps
none /tmp/ tmpfs defaults,size=2M
none /var/log/ tmpfs defaults,size=2M
none /var/run/ tmpfs defaults,size=2M
none /var/lock/ tmpfs defaults,size=1M
In der /etc/sysctl.conf ergänzt:
#How many seconds after a read should a writeout of changed files
#start (this is based on the assumption that a read will cause an
#otherwise spun down disk to spin up again).
vm.laptop_mode=120
#How often the kernel should check if there is "dirty" (changed)
#data to write out to disk (in centiseconds).
vm.dirty_writeback_centisecs=12000
#How old "dirty" data should be before the kernel considers it old
#enough to be written to disk. It is in general a good idea to set
#this to the same value as dirty_writeback_centisecs above.
vm.dirty_expire_centisecs=12000
#The maximum amount of memory (in percent) to be used to store
#dirty data before the process that generates the data will be
#forced to write it out. Setting this to a high value should not be
#a problem as writeouts will also occur if the system is low on memory.
vm.dirty_ratio=10
#The lower amount of memory (in percent) where a writeout of dirty
#data to disk is allowed to stop. This should be quite a bit lower
#than the above dirty_ratio to allow the kernel to write out chunksx
#of dirty data in one go.
vm.dirty_background_ratio=1
In der /etc/syslog.conf alle Dateien als 'asyncron' festgelegt ('-')
Auf spezielle Dateisysteme verzichte ich für den Augenblick, mir reicht es
augenblicklich dass der Rechner wieder läuft. In 6 Monaten mache ich mal
einen dd der Karte. Falls sie doch nicht so lange durchhält wie erhofft.
CU
--
|Michael Renner E-mail: michael.renner@gmx.de |
|D-81541 Munich Germany ICQ: #112280325 |
|Germany Don't drink as root! ESC:wq
Reply to: