Reduce truncate IO traffic
PATCH 1/1 Reduce truncate IO traffic
Current GFS2 setattr call unconditionally invokes do_shrink even the requested size and actual file size are equal. This has generated large amount of extra IOs found during NFS benchmark runs. This patch moves the relevant logic out of shrink code path. Since setattr is a system call, the time stamps update is still required.
-- Wendy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfs2_touch.patch
Type: text/x-patch
Size: 1640 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070820/7bb5d611/attachment.bin>
PATCH 1/1 Reduce truncate IO traffic
Hi,
Now in the -nmw git tree. Thanks,
Steve.
Quoted 9 lines · Wendy Cheng
Current GFS2 setattr call unconditionally invokes
do_shrinkeven the requested size and actual file size are equal. This has generated large amount of extra IOs found during NFS benchmark runs. This patch moves the relevant logic out of shrink code path. Since setattr is a system call, the time stamps update is still required.-- Wendy