WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Linux, UNIX, Open Source

Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 12.07.2003, 22:19   #1
hugin grímnirson
Master
 
Registriert seit: 14.05.2001
Alter: 49
Beiträge: 762


Standard ram-buffer auf platte schreiben erzwingen

hi,

linux speichert doch zugriff aufs dateisystem im hauptspeicher zwischen, um schreib/lese-zugriffe effizienter zu machen.

mein problem: nach dem durchführen diverser änderungen werden die nicht gleich auf platte geschrieben, was zur folge hat, das diese, wenn das system nach vornahme von änderungen abschmiert oder der strom plötzlich weg ist, auch futsch sind.


gibts eine möglichkeit per befehl die leerung der buffer und das schreiben auf festplatte zu erzwingen?

tia
____________________________________
cu
hugin

I'm calm like a bomb.
hugin grímnirson ist offline   Mit Zitat antworten
Alt 12.07.2003, 22:45   #2
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

12.2.4 Filesystem I/O

Reading and writing of data on disk file systems is usually buffered. Data are not actually read from disk for every read request made by a user, and they are not written to disk for every write request made by a user. Data pass through buffers on their way to and from disks. When a user program opens and reads from a file, more data are actually read from disk than were requested, and the extra data are stored in a buffer. Subsequent read requests are fulfilled from the buffer until the buffer is empty. Then, the buffer is filled by another read from the disk. When writing to files, data are written into a buffer until the buffer fills, and then, the contents of the buffer is written to disk.

How long will data sit in an output buffer if only a small amount of data are written to a file and the buffer is very slow to fill? Most Unix systems run a daemon that regularly flushes buffers. Flush times usually vary from 15 seconds to 1 minute. People who run Unix on laptops often set very long flush times to minimize disk writes and power consumption to prolong battery life.

Ordinary users can flush buffers by using the sync command. Buffers are also flushed when filesystems are unmounted using the umount command.
http://www.ussg.iu.edu/UAU/filesystem/physical.html


The modification of the filesystem cache-tuning parameters can significantly improve Linux's file-serving performance up to a factor of two. Linux will attempt to use memory not being used for any other purpose for filesystem caching. A special daemon, called bdflush, will periodically flush dirty buffers, buffers that contain modified filesystem data or metadata to the disk.
http://tldp.org/LDP/solrhe/Securing-...p29sec287.html
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
Alt 12.07.2003, 23:15   #3
hugin grímnirson
Master
 
Registriert seit: 14.05.2001
Alter: 49
Beiträge: 762


Standard

Zitat:
Original geschrieben von _m3
Ordinary users can flush buffers by using the sync command.
merci
____________________________________
cu
hugin

I'm calm like a bomb.
hugin grímnirson ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 19:23 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag