Re: vfat and SECTOR_SIZE=2048

From: Daniel Kobras (daniel.kobras@student.uni-tuebingen.de)
Date: Tue Jan 11 2000 - 19:20:31 EST


On Tue, 11 Jan 2000, Tigran Aivazian wrote:

> > I haven't tested with 2.3 so far, but mainly because vfat (well, actually
> > it's the fat part we're talking about) is painfully slow on MO media.
>
> Hmmm, it is not painfully slow on MO media using UnixWare7 dosfs. But I
> haven't run any benchmarks to compare so it probably depends on what you
> mean by "painfully slow".

I mean (cf. below). The results are taken from an old text I wrote almost
a year ago for the Optical-Disk-HOWTO. Kernel was 2.2.2pre4, MO drive a
Fujitsu M2513 (3600rpm version).

  LIMDOW - ext2-filesystem - superfloppy:

      -------Sequential Output-------- ---Sequential Input-- --Random--
      -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
   MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU
  400 1024 16.3 1816 2.8 620 1.7 975 13.5 1952 2.2 41.4 0.7

  LIMDOW - vfat-filesystem - superfloppy:

      -------Sequential Output-------- ---Sequential Input-- --Random--
      -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
   MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU
  400 387 8.3 410 2.9 414 3.4 669 13.4 736 5.4 5.2 3.9

> > Note that fat uses a logical sector size of 512 bytes, regardless of the
> > hardware sector size.
>
> Hmmm, I thought that this was the case in the old days but nowadays, if
> you use windows98 to format the disk it stores the "logcal sector size" in
> the first 512-bytes sector containg all the header information.
>
> Btw, UnixWare7 deals with this correctly (i.e. uses the correct sector
> size and not the 512-bytes-all-the-time). I was just curious if this was
> the case with Linux and suspected yesterday that it's not. You seem to
> confirm that.

It's been a long time (2.1.9x I think) since I last had a closer look at
this particular code. What I basically wanted to say was 'it always worked
for me'. I can't do any test right now as my 95 is fundamentally broken
and I don't have any 98 around.

Regards,

Daniel.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:19 EST