All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Apostolov <vapo@sgi.com>
To: Vlad Apostolov <vapo@sgi.com>
Cc: David Chinner <dgc@sgi.com>, Michael Nishimoto <miken@agami.com>,
	Michael Nishimoto <miken@stanfordalumni.org>,
	xfs@oss.sgi.com
Subject: Re: Reducing memory requirements for high extent xfs files
Date: Wed, 06 Jun 2007 12:05:11 +1000	[thread overview]
Message-ID: <46661657.2060507@sgi.com> (raw)
In-Reply-To: <4666153C.9050409@sgi.com>

Vlad Apostolov wrote:

No, Dave is right. The example worked because the extent hint was the 
same size
as the filesystem block.

Regards,
Vlad
>>
>> Note - i don't think extent size hints alone will help as they
>> don't prevent EOF truncation on close.
> Dave,
>
> I think extent hint should help in this situation. Here is an example
> of writing 4 chars in a file with extent hint of 16Kb. The file ends
> up with size of 4 and 8 basic blocks (512 bytes each) allocation in
> one extent.
>
> emu:/mnt/scratch1/temp # xfs_io -c "extsize 16384" -f foo
> emu:/mnt/scratch1/temp # ls -al foo
> -rw------- 1 root root 0 2007-06-06 12:33 foo
> emu:/mnt/scratch1/temp # xfs_bmap -l -v foo
> foo: no extents
> emu:/mnt/scratch1/temp # echo "abc" > foo
> emu:/mnt/scratch1/temp # ls -al foo
> -rw------- 1 root root 4 2007-06-06 12:35 foo
> emu:/mnt/scratch1/temp # xfs_bmap -l -v foo
> foo:
> EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL
> 0: [0..7]: 326088..326095 0 (326088..326095) 8
>
> Just a warning that the extent hint works at the moment only for
> contiguous files. There are problems for sparse files (with holes)
> and extent hint.
>
> Regards,
> Vlad
>

  reply	other threads:[~2007-06-06  2:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-30 16:49 Reducing memory requirements for high extent xfs files Michael Nishimoto
2007-05-30 22:55 ` David Chinner
2007-06-05 22:23   ` Michael Nishimoto
2007-06-05 23:11     ` Vlad Apostolov
2007-06-05 23:17       ` Vlad Apostolov
2007-06-06  1:36     ` David Chinner
2007-06-06  2:00       ` Vlad Apostolov
2007-06-06  2:05         ` Vlad Apostolov [this message]
2007-06-06 17:18       ` Michael Nishimoto
2007-06-06 23:47         ` David Chinner
2007-06-22 23:58           ` Michael Nishimoto
2007-06-25  2:47             ` David Chinner
2007-06-26  1:26             ` Nathan Scott

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=46661657.2060507@sgi.com \
    --to=vapo@sgi.com \
    --cc=dgc@sgi.com \
    --cc=miken@agami.com \
    --cc=miken@stanfordalumni.org \
    --cc=xfs@oss.sgi.com \
    /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 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.