|Subject:||[RFD] xfs_fsr: Adding features for online defragmentation|
|From:||Somdeep Dey <somdeepdey10@xxxxxxxxx>|
|Date:||Tue, 19 Aug 2014 23:14:27 +0530|
|Dkim-signature:||v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1W/woslPIm1Vptacj8cHNCcvtZYsdjaYlseSFrHV0yo=; b=sGJM4Svz68lO57Xq5iICRHdrZ8Q/8rMe9ntaH6mJ9Gy2IvdlIlR3WJZUflUhk8GqP7 6dKsxkT3AjNW1q4HMlk3eE7GokTMdfGTgQ1/7+ilYmpEg067ZnkPVe6Q2h6OKklDvkpJ ddgThB7NbdLaG98hWqUedT0xf2Es2qLUAcn0tONdtuBz3HhQcsGzTstO1FD1MUI5AxzW c5DKdMRJ+SmkEp1MXhzmsOiVTSy/N8Nwpky4IOTurOxZQ9aWhSWAZ6VL39TmVp3b/ssQ 57VHde63MSBdd08ulsrqjeR4ng5Zd4RMPNZTsXEDgeOS189hpfR8YudfdUmUe204yOv/ vSvw==|
We are a team of three final year under-graduates fromÂPune Institute
of Computer Technology, India and were looking for a project in XFSÂ
with a development time of about 6 - 7 months. On contacting Dave,Â
he suggested we work on the userspace utility, xfs_fsr.
A few possible enhancements to xfs_fsr are as follows:
1. explicit control of locality for groups of files.
2. ability to defragment only portions of files rather
than just whole files.
3. defragmenting free space.
4. enhanced/faster filesystem scanning.
Our understanding of the problem is as follows:
A) We identified the first thing needed, will be to find regions ofÂ
fragmented free space. Dave directed us to the following prototypeÂ
that he had written
B) ÂThe next task will be to go about finding the owners of the blocks
that are causing the region of fragmented free space. It will require a
reverse block map to do this efficiently. Dave has said that he is likely
to implement it in the next couple of months, and we understand that
we will to need to define the interfaces needed to query the rmap fromÂ
C) ÂOnce the fragmented free space, and the files that own the blocksÂ
that fragment the free space are found we will need to move them, andÂ
take care of the following:
(a) move just the blocks we need to.
(b) control exactly where we move them to.
We are reviewing the recent patches on the mailing list for IOC_MOV_DATA,Â
which allows an arbitrary range of one file to be swapped with an arbitrary
range of another file. The core mechanism required by #2.
Hence after due consideration we are planning to execute
the 4 sub topics in the following order:
1. defragmenting free space.
2. enhanced/faster filesystem scanning.
3. ability to defragment only portions of files rather
than just whole files.
4. explicit control of locality for groups of files.
Comments regarding the same will be appreciated. We would also like to thankÂ
Dave for his inputs. We look forward to working with the community and hope to
make a valuable contribution.
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||[PATCH RFC] xfs/051: test buffer use after free race on I/O failure in XFS log recovery, Brian Foster|
|Next by Date:||Re: [PATCH] xfs: add a few more verifier tests, Christoph Hellwig|
|Previous by Thread:||[PATCH RFC] xfs/051: test buffer use after free race on I/O failure in XFS log recovery, Brian Foster|
|Next by Thread:||XFS fixes needed in stable kernels, Dave Chinner|
|Indexes:||[Date] [Thread] [Top] [All Lists]|