IO cache operation method and system based on DM layer of Linux system

IO cache operation method and system based on DM layer of Linux system

  • CN 102,053,929 A
  • Filed: 12/17/2010
  • Published: 05/11/2011
  • Est. Priority Date: 12/17/2010
  • Status: Active Application
First Claim
Patent Images

1. IO caching method based on linux system DM layer is characterized in that:

  • adopts linux kernel to realize, comprises read procedure and write process,Wherein, read procedure is;

    A, when the user sends read request, judge whether the user allows buffer memory;

    If B user allows buffer memory on the high speed storing equipment according to before the management information of the storage data that this IO comprised of whether having searched buffer memory, if find then directly read and return from high speed storing equipment;

    If C user does not allow buffer memory or can not find the data block that comprises this IO in high speed storing equipment, then can only read from memory device at a slow speed;

    D, sense data are divided into two kinds of situations later on, the one, the user does not allow reading to carry out buffer memory, then directly return and get final product, the 2nd, the user allows reading to carry out buffer memory, then on high speed storing equipment, distribute suitable space, simultaneously distribute suitable management space in addition, if all successes, then the data that will read from memory device are at a slow speed write in high speed storing equipment;

    Otherwise, directly return;

    The process of writing is;

    E, judge whether the option that the user is provided with needs write data is carried out buffer memory, if do not need then directly write toward memory device at a slow speed;

    F, read and write data and carry out buffer memory if desired, then distribute one section space on high speed storing equipment, this space requirement is left the data that this IO comprises, and also needs some extra management information in addition, if so not big space then do not do buffer memory is directly write toward memory device at a slow speed and is got final product;

    If the space is enough, then write toward high speed storing equipment, return after carrying out mark.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×