On Wed, 20 Apr 2011 15:36:18 +0700
"Nguyen Vu Hung (VNC)" <[email protected]> wrote:

> (2011/04/20 14:34), Gwenhael Le Moine wrote:
> >> # sync; echo 3>  /proc/sys/vm/drop_caches; hibernate
> >> >
> >> >  [1]http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
> Đây là drop hay sync?
> 
> > You should never have to sync manually under normal circumstances if
> > your system is working properly. (Even though I do sometimes after
> > unmounting a usb key or a memory card but that's technical
> > superstition moer than anything else.)
> >
> > Any call to halt or chutdown or hibernate will sync as part of
> > their work.

In my use case, I would like to ensure that all the open documents have
been synced to disk before I drop the cache (which reduces the memory
used size, therefore it fastens the hibernation process). Sometimes,
hibernation doesn't work properly too, for example, it can't freeze
the filesystems and/or processes.

D. Hieu
_______________________________________________
POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
_______________________________________________
HanoiLUG mailing lists: http://lists.hanoilug.org/
HanoiLUG wiki: http://wiki.hanoilug.org/
HanoiLUG blog: http://blog.hanoilug.org/

Trả lời cho