xfs
[Top] [All Lists]

Re: [RFC PATCH] xfs: support for non-mmu architectures

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [RFC PATCH] xfs: support for non-mmu architectures
From: Octavian Purdila <octavian.purdila@xxxxxxxxx>
Date: Fri, 20 Nov 2015 15:43:20 +0200
Cc: xfs@xxxxxxxxxxx, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HyuwKGNK5AjwEv0qaB1tl43F+++fuPLza/KkIqkxcVk=; b=MUX5fjXV0tVD8dw0OFgngEmEOO6FEsAMgXFznOd9D+uzAA6HHnjJZbKQw52iPTBkHq le+uEQ4a5cv167naHrzeFvDNx2+mfHKXdZVBr/jVjH5O03KXVL/+8JTLyxz60At7pDYL jAJ0Cos6R/+MCwJfwy/2BRHuwNIxHCyJnh5cRFocOIGsJEQQjHZ8oCcSSpXucgTVGrSQ 1CbYc3n/2kY6XSb9pKCcwuXa573BaGb1QWvgNgCNHtt4ZfqfiIp9SZo/8Q0soF9U783n W8HKCE8hguaYO/kSKGq3LzJTW/BIR9DydF01Cnx/FdFxPetbluyIL4Duhlz5X7q+5xj5 F2+w==
In-reply-to: <20151119232455.GM14311@dastard>
References: <1447800381-20167-1-git-send-email-octavian.purdila@xxxxxxxxx> <20151119232455.GM14311@dastard>
On Fri, Nov 20, 2015 at 1:24 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> On Wed, Nov 18, 2015 at 12:46:21AM +0200, Octavian Purdila wrote:
>> Naive implementation for non-mmu architectures: allocate physically
>> contiguous xfs buffers with alloc_pages. Terribly inefficient with
>> memory and fragmentation on high I/O loads but it may be good enough
>> for basic usage (which most non-mmu architectures will need).
>
> Can you please explain why you want to use XFS on low end, basic
> non-MMU devices? XFS is a high performance, enterprise/HPC level
> filesystem - it's not a filesystem designed for small IoT level
> devices - so I'm struggling to see why we'd want to expend any
> effort to make XFS work on such devices....
>

Hi David,

Yes XFS as the main fs on this type of devices does not make sense,
but does it hurt to be able to perform basic operation on XFS from
these devices? Perhaps accessing an external medium formatted with
XFS?

Another example is accessing VM images that are formatted with XFS.
Currently we can do that with tools like libguestfs that use a VM in
the background. I am working on a lighter solution for that where we
compile the Linux kernel as a library [1]. This allows access to the
filesystem without the need to use a full VM.

And a final example is linking the bootloader code with LKL to access
the filesystem. This has a hard requirement on non-mmu.

So, IMHO there are usecases for using XFS on non-mmu architectures. I
think it all boils down to: is the patch simple enough to not put an
unreasonable maintenance burden on developers?

[1] https://github.com/lkl/linux

Thanks,
Tavi

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