Page 1 of 1

Defrag

Posted: Wed Feb 16, 2005 9:55 pm
by Quigs
I was wondering if anyone had started working on ReactOS defrag...
if not Im going to start experimenting from this...
http://www.sysinternals.com/ntw2k/info/defrag.shtml

was wondering if these functions have been implemented in ROS
FSCTL_GET_VOLUME_BITMAP
FSCTL_GET_RETRIEVAL_POINTERS
FSCTL_MOVE_FILE

either way I'll try to work on a windows version..

Re: Defrag

Posted: Wed Feb 16, 2005 11:11 pm
by NetSlayer
Quigs wrote:I was wondering if anyone had started working on ReactOS defrag...
if not Im going to start experimenting from this...
http://www.sysinternals.com/ntw2k/info/defrag.shtml

was wondering if these functions have been implemented in ROS
FSCTL_GET_VOLUME_BITMAP
FSCTL_GET_RETRIEVAL_POINTERS
FSCTL_MOVE_FILE

either way I'll try to work on a windows version..
I don't exactly remember the reason why defragmenting on a multithreaded OS is (almost) worthless, but:
Defragmenting was great in DOS times, because only one program could run and access the HD. Means: The OS didn't have to jump around on the HD to find file parts if it was defragmented.
But now, with multithreaded systems, this problem isn't that big anymore, because when one program wants a file, another one wants another file and the OS has to jump around on the HD in any case.
Maybe I don't recall correctly, or this is just plain wrong, but it sounds logical to me.

Re: Defrag

Posted: Wed Feb 16, 2005 11:38 pm
by Jaix
Quigs wrote:I was wondering if anyone had started working on ReactOS defrag...
if not Im going to start experimenting from this...
http://www.sysinternals.com/ntw2k/info/defrag.shtml

was wondering if these functions have been implemented in ROS
FSCTL_GET_VOLUME_BITMAP
FSCTL_GET_RETRIEVAL_POINTERS
FSCTL_MOVE_FILE

either way I'll try to work on a windows version..
Perhaps you should care to take look at http://sourceforge.net/projects/opendefrag/ this project claimes to support ReactOS

Re: Defrag

Posted: Thu Feb 17, 2005 3:19 am
by BrandonTurner
Jaix wrote:
Quigs wrote:I was wondering if anyone had started working on ReactOS defrag...
if not Im going to start experimenting from this...
http://www.sysinternals.com/ntw2k/info/defrag.shtml

was wondering if these functions have been implemented in ROS
FSCTL_GET_VOLUME_BITMAP
FSCTL_GET_RETRIEVAL_POINTERS
FSCTL_MOVE_FILE

either way I'll try to work on a windows version..
Perhaps you should care to take look at http://sourceforge.net/projects/opendefrag/ this project claimes to support ReactOS
Project Admins:
w3seek


however he has no releases since 2003... maybe he never got around to it or he added it in ROS instead of doing it on the side.

Re: Defrag

Posted: Thu Feb 17, 2005 7:29 am
by Quigs
Perhaps you should care to take look at http://sourceforge.net/projects/opendefrag/ this project claimes to support ReactOS
I did, I dont see any releases, or website...

Re: Defrag

Posted: Thu Feb 17, 2005 8:17 am
by Jaix
Quigs wrote:
Perhaps you should care to take look at http://sourceforge.net/projects/opendefrag/ this project claimes to support ReactOS
I did, I dont see any releases, or website...
You could send a private mess to w3seek, he is one of the ROS developers.
Private mess to w3seek
w3seek info page

Re: Defrag

Posted: Thu Feb 17, 2005 11:03 am
by GvG
Quigs wrote:was wondering if these functions have been implemented in ROS
FSCTL_GET_VOLUME_BITMAP
FSCTL_GET_RETRIEVAL_POINTERS
FSCTL_MOVE_FILE
FSCTL_GET_RETRIEVAL_POINTERS is implemented in VFat, FSCTL_GET_VOLUME_BITMAP and FSCTL_MOVE_FILE are stubs.

Re: Defrag

Posted: Thu Feb 17, 2005 11:25 am
by Floyd
NetSlayer wrote:
Quigs wrote:I was wondering if anyone had started working on ReactOS defrag...
if not Im going to start experimenting from this...
http://www.sysinternals.com/ntw2k/info/defrag.shtml

was wondering if these functions have been implemented in ROS
FSCTL_GET_VOLUME_BITMAP
FSCTL_GET_RETRIEVAL_POINTERS
FSCTL_MOVE_FILE

either way I'll try to work on a windows version..
I don't exactly remember the reason why defragmenting on a multithreaded OS is (almost) worthless, but:
Defragmenting was great in DOS times, because only one program could run and access the HD. Means: The OS didn't have to jump around on the HD to find file parts if it was defragmented.
But now, with multithreaded systems, this problem isn't that big anymore, because when one program wants a file, another one wants another file and the OS has to jump around on the HD in any case.
Maybe I don't recall correctly, or this is just plain wrong, but it sounds logical to me.
There are definite advantages to defragmentation. Shorter seek times being the primary one. I'm pretty sure linux auto-defragments in the background and i know NT4 claimed to (i don't think 2000 or XP does, or if it does, it's even worse than NT4 at it). NT4 didn't come with a defragmentation tool because MS claimed NTFS would do it itself. They, of course, lied (http://www.digit-life.com/articles/ntfs/) but NTFS is definitely resistant to fragmentation. However, "resistant" only means it's a matter of time until the whole system is plagued by longer seek/read times.

Posted: Thu Feb 17, 2005 12:17 pm
by w3seek
I originally wanted to develop opendefrag but reactos took all my spare time so far ;)

Posted: Thu Feb 17, 2005 1:03 pm
by Jaix
w3seek wrote:I originally wanted to develop opendefrag but reactos took all my spare time so far ;)
Good choice! I am soooo greateful to you and the other developers!

Re: Defrag

Posted: Thu Feb 17, 2005 5:39 pm
by mf
Floyd wrote:There are definite advantages to defragmentation. Shorter seek times being the primary one. I'm pretty sure linux auto-defragments in the background
Nope. Ext2 simply does not fragment more than a fractional amount. People actually thought about that one.
http://portal.suse.com/sdb/en/2002/06/ext2frag.html