mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolinux.com>
To: Alexander Viro <viro@math.psu.edu>
Cc: Andreas Dilger <adilger@turbolinux.com>,
	linux-kernel@vger.kernel.org, "Theodore Y. Ts'o" <tytso@mit.edu>,
	Ext2 development mailing list  <ext2-devel@lists.sourceforge.net>
Subject: Re: [RFC] ext2_new_block() behaviour
Date: Tue, 2 Jan 2001 18:47:25 -0700 (MST)	[thread overview]
Message-ID: <200101030147.f031lPa21470@webber.adilger.net> (raw)
In-Reply-To: <Pine.GSO.4.21.0101021817140.13824-100000@weyl.math.psu.edu> "from Alexander Viro at Jan 2, 2001 06:33:29 pm"

Al, you write:
> 	Folks, there is a pretty strange detail of the allocation policy -
> if cylinder group has no free blocks past the goal ext2 tries very hard to
> avoid allocation in the beginning of the group. I.e. order looks so:
> 
> 	* goal
> 	* goal .. (goal+63) & ~63
> 	* goal .. end of cylinder group
> 	* cylinder groups past one that contains goal
> 	* cylinder groups before one that contains goal
> 	* beginning of cylinder group..goal-1
> 
> It looks somewhat fishy. What's the reason for such policy?

This predates me by a while, but I suspect that it is done this way on
the assumption it is easier to seek forward on the disk while reading
a file rather than seeking backwards.  Also, since with new inodes the
goal is initially the first block of the group where the inode lives,
the blocks at the start of a group will generally be allocated already,
so it is usually a waste of time checking the start of the group for
free blocks.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-03 17:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-30 22:13 [CFT][RFC] ext2_new_inode() fixes and cleanup Alexander Viro
2000-11-30 23:18 ` Theodore Y. Ts'o
2000-12-01 12:55   ` Alexander Viro
2000-12-01  8:27 ` Andreas Dilger
2000-12-01 11:28   ` Alexander Viro
2001-01-02 23:33   ` [RFC] ext2_new_block() behaviour Alexander Viro
2001-01-03  1:47     ` Andreas Dilger [this message]
2001-01-03  3:37       ` Alexander Viro
2001-01-03 12:16         ` [Ext2-devel] " Stephen C. Tweedie
2001-01-03 16:12           ` Alexander Viro
2001-01-04  4:42             ` Oliver Xymoron
2001-01-04  5:06               ` Alexander Viro
2001-01-04  5:15                 ` Oliver Xymoron
2001-01-04 22:04             ` Stephen C. Tweedie
2001-01-04 22:31               ` Alexander Viro
2001-01-04 20:48                 ` -bird tree " Marcelo Tosatti
2001-01-04 23:25                 ` Stephen C. Tweedie
2001-01-05  7:06                   ` Andreas Dilger
2001-01-05 11:29                     ` Stephen C. Tweedie

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=200101030147.f031lPa21470@webber.adilger.net \
    --to=adilger@turbolinux.com \
    --cc=ext2-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    --cc=viro@math.psu.edu \
    /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®