Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #806

Re: mmap without automatic flush to disk

Newsgroups comp.os.linux.development.system
Date 2023-03-05 23:07 -0800
References <b782a336-a84e-434e-ba98-f39ea433fae9@googlegroups.com> <l855vv$5bl$1@dont-email.me>
Message-ID <e42e7916-ddf2-4aec-9b81-6df21b396f52n@googlegroups.com> (permalink)
Subject Re: mmap without automatic flush to disk
From Pavankumar S V <pavankumarsv96@gmail.com>

Show all headers | View raw


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-----

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Find similar


Thread

mmap without automatic flush to disk abi.varghese@gmail.com - 2013-12-09 09:43 -0800
  Re: mmap without automatic flush to disk Lusotec <nomail@nomail.not> - 2013-12-09 19:34 +0000
    Re: mmap without automatic flush to disk Pavankumar S V <pavankumarsv96@gmail.com> - 2023-03-05 23:07 -0800

csiph-web