![]() |
![]() |
|
|
|||||||
| Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
#1 |
|
Master
![]() Registriert seit: 14.05.2001
Alter: 49
Beiträge: 762
|
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. |
|
|
|
|
|
#2 |
|
Inventar
![]() Registriert seit: 24.09.2001
Beiträge: 7.335
|
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 . |
|
|
|
|
|
#3 | |
|
Master
![]() Registriert seit: 14.05.2001
Alter: 49
Beiträge: 762
|
Zitat:
____________________________________
cu hugin I'm calm like a bomb. |
|
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|