[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Should diskfs_file_update be called in every io_write?
From: |
Sergio López |
Subject: |
Should diskfs_file_update be called in every io_write? |
Date: |
Tue, 13 Sep 2011 21:50:09 +0200 |
Hi,
Currently, libdiskfs:io_write.c only calls "diskfs_file_update(struct
node *np, int wait)" if the node has been opened with O_FSYNC or if
the entire translator is operating synchronously (diskfs_synchronous
== 1). I think calling diskfs_file_update (with wait == 0) when
working asynchronously could help to reduce pageout pressure during
large I/O operations (except if those operations are being generated
by a mmap'ed file), at the expense of losing the ability of
indefinitely delaying the actual write.
libdiskfs-file_update.diff
Description: Text Data
- Should diskfs_file_update be called in every io_write?,
Sergio López <=