mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Harun Scheutzow <harun04@scheutzow.de>
To: linux-kernel@vger.kernel.org
Cc: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
Subject: Re: vfat file system extreme fragmentation on multiprocessor
Date: Fri, 12 Sep 2008 01:03:03 +0200	[thread overview]
Message-ID: <0ML25U-1KdwSf0P4s-0006TS@mrelayeu.kundenserver.de> (raw)
In-Reply-To: <20080911212001.GD31271@csclub.uwaterloo.ca>

Why should C library fwrite() split anything? There is no good reason (unless in x86 64 KByte segmented model trying to emulate a flat model - old DOS). The 50 MByte go to write() in a single piece here.

There are only very little "single operation"s in kernel nowadays. In most cases this is a good thing.

Looks like fat/fatent.c fat_alloc_clusters() is limited to allocate only 4 clusters under a single lock.

Found another assumption I do not like: cluster size >= 512. There are old FAT systems on SRAM cards having 128 byte/sector and cluster. But I don't want to have long filenames on them. Hope the 512 does not sit elsewhere, too.

fat/inode.c __fat_get_block() /* TODO: multiple cluster allocation would be desirable */
YES, OF COURSE. Only a single cluster is allocated at a time, no lock here, I can be happy I got still 8 clusters per fragment, might have been only 1.

Harun


  reply	other threads:[~2008-09-12  0:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 18:01 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0ML25U-1KdwSf0P4s-0006TS@mrelayeu.kundenserver.de \
    --to=harun04@scheutzow.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsorense@csclub.uwaterloo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®