mark_inode_dirty() tends to be called _very_ frequently. Too frequently.
Could you try remounting all filesystems noatime with
mount /mnt/point -o remount,noatime
and the below patch will prevent us calling the barrier-happy
current_kernel_time() for noatime mounts.
diff -puN fs/inode.c~update_atime-speedup fs/inode.c
--- 25/fs/inode.c~update_atime-speedup Fri Feb 21 12:17:00 2003
+++ 25-akpm/fs/inode.c Fri Feb 21 12:17:33 2003
@@ -1091,17 +1091,20 @@ sector_t bmap(struct inode * inode, sect
void update_atime(struct inode *inode)
{
- struct timespec now = CURRENT_TIME;
+ struct timespec now;
- /* Can later do this more lazily with a per superblock interval */
- if (timespec_equal(&inode->i_atime, &now))
- return;
if (IS_NOATIME(inode))
return;
if (IS_NODIRATIME(inode) && S_ISDIR(inode->i_mode))
return;
if (IS_RDONLY(inode))
return;
+
+ now = CURRENT_TIME;
+
+ /* Can later do this more lazily with a per superblock interval */
+ if (timespec_equal(&inode->i_atime, &now))
+ return;
inode->i_atime = now;
mark_inode_dirty_sync(inode);
}
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/