All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joseph Qi <joseph.qi@huawei.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] About ocfs2 file sytem fragmentation tool
Date: Thu, 11 Aug 2016 14:27:03 +0800	[thread overview]
Message-ID: <57AC1AB7.9060902@huawei.com> (raw)
In-Reply-To: <57AC859C020000F9000456B9@prv-mh.provo.novell.com>

Hi Gang,
We can also get some information from
    "debugfs.ocfs2 -R 'stat //global_bitmap' <device>"
But unfortunately there is no summary information such as fragmentation
ratio.
We have encountered a problem that once volume usage exceeds 95%, create
a new big file will consume much longer time, which is because of each
gd in chains has little contiguous clusters.

Thanks,
Joseph


On 2016/8/11 14:03, Gang He wrote:
> Hello Guys,
> 
> Our customer is asking one question, how to detect a ocfs2 file system fragmentation status.
> Current, I can think of ways for detecting fragmentation as below,
> 1) o2info --freefrag N /dev/vdb3
> this command can give some information for how many free chunks (based on size) are here,
> but it can not give any conclusive information, e.g. the file system is fragmented, or not.  fragmentation ratio.
> 2) debugfs.ocfs2 -R "frag /fio1/test1"  /dev/vdb3
> this command can give some information only for one file, how to get the whole volume information, e.g. the file system fragmentation ratio.
> 
> So, anybody can give some suggestion for ocfs2 file system fragmentation tool, it is very appreciated.
> For example, there is any more better way to detect the file system fragmentation ratio.
> The further question, if there are some free blocks in the file system, but the user cannot create a file, it is also related to fragmentation problem?
> The use have to use "discontig-bg" feature to overcome this problem?
> 
> 
> Thanks
> Gang
> 
> 
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
> 
> 

  reply	other threads:[~2016-08-11  6:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11  6:03 [Ocfs2-devel] About ocfs2 file sytem fragmentation tool Gang He
2016-08-11  6:27 ` Joseph Qi [this message]
2016-08-11  9:27   ` Gang He
2016-08-11 14:10     ` Joseph Qi

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=57AC1AB7.9060902@huawei.com \
    --to=joseph.qi@huawei.com \
    --cc=ocfs2-devel@oss.oracle.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.