Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-02-2016, 08:13 AM   #16
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,538
Blog Entries: 4

Rep: Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430

Quite the "school assignment," that ...
Old 06-02-2016, 08:54 AM   #17
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Originally Posted by sundialsvcs View Post
Quite the "school assignment," that ...
I was thinking that too. However, it might be the U.S. usage of "school", which often also includes tertiary education.

It actually looks like a nice (longer-term) project: it means you have to be able to understand the structure of a Linux filesystem and how data blocks are stored and referenced, determine what "defragmentation" might occur, and then write some code to reduce that defragmentation (leaning on the code that already exists to that effect). Research, analysis, coding - it would certainly sort the wheat from the chaff.
Old 06-02-2016, 04:00 PM   #18
LQ Newbie
Registered: Feb 2011
Posts: 18

Rep: Reputation: 1
Originally Posted by TIBO View Post
Thank you all for your answers !
I'm going to try and get on with it.
You might find it useful to 'strace filefrag <Filename>' to get an idea of what ioctl's are being called to determine how many extents a file has. On FAT you'll note this is FIBMAP and on extent based file systems you'll notice it's FIEMAP. And the point there is that it depends on the file sytem what constitutes fragmentation. And just because fs metadata says there are two extents doesn't necessarily mean those two extents are non-contiguous, and even if the are non-contiguous doesn't mean that their position on the drive exacts a significant penalty. And even the drive technology used may be a factor in whether fragmentation is a problem or not.

So I wouldn't be entirely afraid of refusing some of the premises of the assignment; or at least ask for detailed clarification about exactly what problem is supposed to be solved. An offline defragmenter is sorta antiquated. It's certainly not scalable because by definition it's used only be a sysadmin who can operate it, and that person must take the system offline to use it, so it's not very useful for servers or workstations alike, right off the bat.
Old 06-02-2016, 06:27 PM   #19
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 756

Rep: Reputation: 144Reputation: 144
When you say "create" I wonder if that means "design, implement and debug" or just "design".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ext3fs defragmentation tool - defrag traene Linux - Hardware 3 01-19-2008 08:12 PM
A file-system defragmentation tool on Linux tmcco Linux - Software 148 05-07-2007 11:29 AM
defragmentation tool czezz Linux - Software 1 02-04-2005 10:35 AM
HDD Defragmentation tool ? membrax Linux - Software 3 01-22-2003 05:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration