[Top] [All Lists]

Re: sector size warning at mount time

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: sector size warning at mount time
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 17 Sep 2010 09:18:03 +1000
Cc: xfs-oss <xfs@xxxxxxxxxxx>
In-reply-to: <4C92641F.7080504@xxxxxxxxxxx>
References: <4C92641F.7080504@xxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
On Thu, Sep 16, 2010 at 01:38:23PM -0500, Eric Sandeen wrote:
> On ppc64 I'm tripping this warning:
>         if (verbose &&
>             (PAGE_CACHE_SIZE / BITS_PER_LONG) > sectorsize) {
>                 printk(KERN_WARNING
>                         "XFS: %u byte sectors in use on device %s.  "
>                         "This is suboptimal; %u or greater is ideal.\n",
>                         sectorsize, XFS_BUFTARG_NAME(btp),
>                         (unsigned int)PAGE_CACHE_SIZE / BITS_PER_LONG);
>         }
> and it's telling me I should have 1024-byte sectors...
> If the kernel is going to complain at mount, should we get it right
> at mkfs time?  I'm not even quite sure why it's recommending this?

Because it requires 128 bits to track each sector in page when the
buffer cache is has to use sub-page buffers. That's all the
test/set_region garbage that it has.

The don't-user-the-page-cache part of my buffer cache rework fixes
this bug, so I probably wouldn't bother changing anything else at this
point in time...


Dave Chinner

<Prev in Thread] Current Thread [Next in Thread>