Re: flushing disk buffer cache

From: Don Lewis (truckman_at_FreeBSD.org)
Date: 10/29/04

  • Next message: Siddharth Aggarwal: "Re: flushing disk buffer cache"
    Date: Fri, 29 Oct 2004 12:01:56 -0700 (PDT)
    To: saggarwa@cs.utah.edu
    
    

    On 29 Oct, Siddharth Aggarwal wrote:
    >
    > Another related question ...
    >
    > Is it possible to delay or queue up disk writes until I exit from my
    > function in the kernel (where I am trying to sync with the disk)? Or
    > make sure that my sync function never goes to sleep waiting for the disk
    > driver to signal completion of flushes to disk?

    Take a look at how the snapshot code handles this. It has to be done
    above the level of individual disk operations because certain file
    system operations require multiple disk I/O operations to transform the
    file system from one consistent state to another consistent state. If
    you try to checkpoint in the middle of this sequence, you will capture a
    state where the file system is internally inconsistent.

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Siddharth Aggarwal: "Re: flushing disk buffer cache"

    Relevant Pages

    • disktab for VPC Disk
      ... I'm trying to optimize the disk access of NEXTSTEP on Virtual PC 5.0.4. ... Maximum size of NeXT file system is 2GB. ... programs in the initial 8 sectors of the device. ... The number of cylinders per cylinder group in a file system. ...
      (microsoft.public.mac.virtualpc)
    • Re: partition naming - newbie
      ... hardware address that is assigned to each disk, tape, or CD-ROM. ... Using the prtconf command ... In addition to managing these directories, the devfsadm command also ... Berkeley fast file system. ...
      (comp.unix.solaris)
    • SUMMARY N2: RE: Veritas Volume Manager and Solaris 8 disk space problem
      ... DESC: Commercial File System ... Disk layout version 4 won't support filesistem sizes bigger than 1Tb. ... VERITAS File System disk layout version 6 supports the creation of file ... Sector Count Sector ...
      (SunManagers)
    • Re: [patch] ext2/3: document conditions when reliable operation is possible
      ... when the power fails, the disk either writes a particular disk block, ... Now consider a file system which does logical journalling. ... down pending DMA transfers to prevent this failure mode from causing ...
      (Linux-Kernel)
    • Re: Windows bug?
      ... >> "The file system structure on the disk is corrupt and unusable. ... >> Windows has made corrections to the file system. ... >> 9070410 allocation units available on disk. ...
      (microsoft.public.windows.file_system)