[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Que me sucede con la memoria



On Mon, Sep 21, 1998 at 02:14:08PM +0200, Rafael Cordones Marcos wrote:

> ¿Existe algun comando que vuelque todos los buffers a disco por si "peta" el
> sistema o se va la luz? He probado con sync (siendo root) pero el resultado
> de free sigue siendo el mismo.

  sync': Synchronize data on disk with memory
  ============================================

     sync' writes any data buffered in memory out to disk.  This can include
  (but is not limited to) modified superblocks, modified inodes, and delayed
  reads and writes. This must be implemented by the kernel; The sync'
  program does nothing but exercise the sync' system call.

     The kernel keeps data in memory to avoid doing (relatively slow) disk
  reads and writes. This improves performance, but if the computer crashes,
  data may be lost or the filesystem corrupted as a result. sync' ensures
  everything in memory is written to disk.

Las cosas si se escriben al disco, pero las deja tambien en los buffers.
Para que las quieres sacar de alli? "sync" -> sincroniza el contenido del
disco con el de la memoria.


					Marcelo


Reply to: