Jump to content

Memory-disk synchronization

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RG2 (talk | contribs) at 17:05, 3 March 2012 (Reverted edits by 59.144.10.250 (talk) to last version by Yobot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Memory-disk synchronisation is a process used in computers that immediately writes to disk any data queued for writing in volatile memory. Data is often held in this way for efficiency's sake, since writing to disk is a much slower process than writing to RAM. Disk synchronization is needed when the computer is going to be shut down, or occasionally if a particularly important bit of data has just been written.

In Unix-like systems, a disk synchronization may be requested by any user with the sync command.

See also

  • mmap, a POSIX-compliant Unix system call that maps files or devices into memory
  • msync, a POSIX-compliant Unix system call that forcefully flush memory to disk and synchronize