All of lore.kernel.org
 help / color / mirror / Atom feed
* vfat file system extreme fragmentation on multiprocessor
@ 2008-09-11 18:01 Harun Scheutzow
  2008-09-11 19:10 ` Lennart Sorensen
  2008-09-11 23:50 ` Andrew Morton
  0 siblings, 2 replies; 11+ messages in thread
From: Harun Scheutzow @ 2008-09-11 18:01 UTC (permalink / raw)
  To: linux-kernel

I like to share the following observation made with different kernels of 2.6.x series, a T7100 Core2Duo CPU (effectively 2 processors). I have not seen such a post while searching.

Two applications compress data at the same time and try to do their best to avoid fragmenting the file system by writing blocks of 50 MByte to a VFAT (FAT32) partition on SATA harddisk, cluster size 8 KByte. Resulting file size is 200 to 250 MByte. It is ok to get 4 to 5 fragments per file. But at random, approximately at every 4th file, there are a few 100 up to more than 4500 (most likely case approx 1500) fragments for each of the two files written in parallel.

My best guess: In this case both CPU cores were in the cluster allocation function of the fat file system at (nearly) the same time, allocating only a few clusters (guess 8) for their file before the other core got the next. The compression task is CPU bound. The harddisk could probably cater 4 cores. This reverses for decompression.

The files are ok, no corruption, just heavy fragmentation. I know vfat is not liked very much. Nevertheless I like to hope someone with more Linux kernel coding experience than me fixes this in the future.

vfat still seems to be the reliable way for data exchange accross platforms (anyone an ext2 driver for Win up to Vista which does not trash the f.s. every few days, or a reliable NTFS for Linux?). Anyway, it is a general design issue on SMP systems one should not forget.

I tried the same to an ext2 f.s.. It showed only very little fragmentation, most files were 1 piece, well done!

Best Regards, Harun Scheutzow


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <baZfg-1yC-3@gated-at.bofh.it>]

end of thread, other threads:[~2008-09-12 22:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 18:01 vfat file system extreme fragmentation on multiprocessor Harun Scheutzow
2008-09-11 19:10 ` Lennart Sorensen
2008-09-11 19:36   ` H. Peter Anvin
2008-09-11 21:09     ` Lennart Sorensen
2008-09-11 21:43       ` H. Peter Anvin
2008-09-11 20:11   ` Harun Scheutzow
2008-09-11 21:20     ` Lennart Sorensen
2008-09-11 23:03       ` Harun Scheutzow
2008-09-11 23:50 ` Andrew Morton
     [not found] <baZfg-1yC-3@gated-at.bofh.it>
     [not found] ` <baZS2-2rX-15@gated-at.bofh.it>
2008-09-12 13:19   ` Bodo Eggert
2008-09-12 22:11     ` Harun Scheutzow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.