Hello. > What filesystem are you using? ext3? ext4? xfs? And are you using > any non-standard patches, such as some of the delayed allocation > patches that have been floating around? If you're using ext3, that > shouldn't be happening..... I'm using ext3. I'm running it on kernel 2.6.18-8.1.14.el5 (CentOS 5) for x86_64. I don't know whether some of the delayed allocation patches are used for 2.6.18-8.1.14.el5 kernel. > Are you sure the file isn't getting written by some background tasks > that you weren't aware of? This seems very strange; what > virtualization software are you using? VMware, Xen, KVM? I'm using VMware Workstation 6.0.0 build 45731 for x86_64. It seems that there were some background tasks that delays writing. I tried the following sequence, "sync" didn't affect. [root@sakura Ubuntu7.10]# service vmware stop [root@sakura Ubuntu7.10]# sleep 30 [root@sakura Ubuntu7.10]# filefrag Ubuntu7.10.vmem Ubuntu7.10.vmem: 9280 extents found, perfection would be 5 extents [root@sakura Ubuntu7.10]# sync [root@sakura Ubuntu7.10]# filefrag Ubuntu7.10.vmem Ubuntu7.10.vmem: 9280 extents found, perfection would be 5 extents [root@sakura Ubuntu7.10]# service vmware start [root@sakura Ubuntu7.10]# vmware [root@sakura Ubuntu7.10]# service vmware stop [root@sakura Ubuntu7.10]# sleep 30 [root@sakura Ubuntu7.10]# filefrag Ubuntu7.10.vmem Ubuntu7.10.vmem: 9748 extents found, perfection would be 5 extents [root@sakura Ubuntu7.10]# sync [root@sakura Ubuntu7.10]# filefrag Ubuntu7.10.vmem Ubuntu7.10.vmem: 9748 extents found, perfection would be 5 extents [root@sakura Ubuntu7.10]# service vmware start [root@sakura Ubuntu7.10]# vmware [root@sakura Ubuntu7.10]# service vmware stop [root@sakura Ubuntu7.10]# filefrag Ubuntu7.10.vmem Ubuntu7.10.vmem: 9749 extents found, perfection would be 5 extents [root@sakura Ubuntu7.10]# sync [root@sakura Ubuntu7.10]# filefrag Ubuntu7.10.vmem Ubuntu7.10.vmem: 9755 extents found, perfection would be 5 extents Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html