xfs
[Top] [All Lists]

Re: xfs metadata overhead

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: xfs metadata overhead
From: Danny Shavit <danny@xxxxxxxxxxxxxxxxx>
Date: Thu, 23 Jun 2016 18:04:46 +0300
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zadarastorage-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=J0iPNra+g/vlKC5Ju1gxzbCRQbimekiMl2u6Xd5oCTM=; b=AoCp/mFLccsdmfwVC1clPEVndBW5cyMCs+VnHsRGVOybcXGKyYd7RYdmHPYOn/aADu L9fT+1WUOUJSExHYTHXdhI2vVnGNY3+zkBPRXvm+ltmUViMCr2Xa7k44qph0LW/3b2dg HtRQ3fdwck0rQ5d0yB4Y/wf0ZjXmKO8zs84qNu6s9TFcIkEwmxDxCOlHxG9qJsIQfSDZ dH/Pn12YiQr45lPBg/rRXW00Tvf630HlyvSKQCCYuqoS/lI7/jZ4nFqoq4TJrJonh61C OwC6yZpresOXnFBynMbDhRc9HaJSgRPvRFPzcQqViQCZNVDUXplU3GWWDXfx0ngUS5RM XxCw==
In-reply-to: <20160622225117.GX12670@dastard>
References: <CAC=x_0jDYb17Vh97Led7XXDiUMcUTJbpJ2Dw45gn=D0_w0K5VQ@xxxxxxxxxxxxxx> <20160622225117.GX12670@dastard>
I see. We will try this direction.
BTW: I thought that good estimate would be "volume_size - allocated_size - free_space". But it produced quite a difference compared to metadata dump size.
Is there a specific reason?

Thanks,
Danny

On Thu, Jun 23, 2016 at 1:51 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
On Wed, Jun 22, 2016 at 06:58:16PM +0300, Danny Shavit wrote:
> Hi,
>
> We are looking for a method to estimate the size of metadata overhead for a
> given file system.
> We would like to use this value as indicator for the amount of cache memory
> a system for faster operation.
> Are there any counters that are maintained in the on-disk data
> structures like free space for examples?

No.

Right now, you'll need to take a metadump of the filesystem to
measure it. The size of the dump file will be a close indication of
the amount of metadata in the filesystem as it only contains
the filesystem metadata.

In future, querying the rmap will enable us to calculate it on the
fly, (i.e. not requiring the filesystem to be snapshotted/taken off
line to do a metadump).

Cheers,

Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx



--
Regards,
Danny
<Prev in Thread] Current Thread [Next in Thread>