• Re: mmap without automatic flush to disk

    From Pavankumar S V@21:1/5 to Lusotec on Sun Mar 5 23:07:23 2023
    On Tuesday, 10 December 2013 at 01:04:22 UTC+5:30, Lusotec wrote:
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA256
    abi.va...@gmail.com wrote:

    If you are memory mapping a file then Linux will write dirty pages (changed/written memory pages) to disk when it wants to free memory or when these pages are older than a certain configurable time. You can increase the duration dirty pages are kept without being written to the file system but I don't think there is any way to disable the first behavior.

    Please let me know how to increase the duration dirty pages are kept without being written to the file system. I tried achieving this by changing the kernel paramters "dirty_writeback_centisecs" to 0 for some time and changed back to the default value to
    disable the flushing for some time. But it worked only partially and also the operations to used to write these parameters is taking too much time for execution.
    Please let me know if there are any other methods to achieve this.

    Best Regards,
    Pavankumar


    Regards.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.10 (GNU/Linux)

    iF4EAREIAAYFAlKmGz4ACgkQGQjO2ccW76qZMwD6At6S5x2X/fr8Ksz9iVdocmrk YKDQdDjx3SxRDqx8hewA/j5dOD43ku/dI3xJUY7iXGHbMulN4iyQEqmvv8501gB7
    =R0T5
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)