linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* something about disk fragmentation
@ 2006-01-11 13:01 jeff shia
  2006-01-11 14:33 ` Ram Gupta
  0 siblings, 1 reply; 6+ messages in thread
From: jeff shia @ 2006-01-11 13:01 UTC (permalink / raw)
  To: linux-kernel

Hello,everyone

   In a file system ,the disk fragmentation can slow down the data accessing
speed.How can I solve this kind of problem in a file system?I know that
preallocation tech can do this.Is there any other solutions?
  Thank you!

Yours
Jeff

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: something about disk fragmentation
  2006-01-11 13:01 something about disk fragmentation jeff shia
@ 2006-01-11 14:33 ` Ram Gupta
       [not found]   ` <7cd5d4b40601130158l274a3b19t13f2a58a28cc3819@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Ram Gupta @ 2006-01-11 14:33 UTC (permalink / raw)
  To: jeff shia; +Cc: linux-kernel

2.6 kernel has  3 differen kind of io schedulers. Anticipatory io
scheduler is the default one. You may try to select CFQ  or deadline
scheduler & see if that improves your performance. These schedulers
have parameters which can be tuned also.

Regards
Ram Gupta

On 1/11/06, jeff shia <tshxiayu@gmail.com> wrote:
> Hello,everyone
>
>    In a file system ,the disk fragmentation can slow down the data accessing
> speed.How can I solve this kind of problem in a file system?I know that
> preallocation tech can do this.Is there any other solutions?
>   Thank you!
>
> Yours
> Jeff
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: something about disk fragmentation
       [not found]   ` <7cd5d4b40601130158l274a3b19t13f2a58a28cc3819@mail.gmail.com>
@ 2006-01-13 16:14     ` Ram Gupta
  2006-01-13 19:24       ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Ram Gupta @ 2006-01-13 16:14 UTC (permalink / raw)
  To: jeff shia; +Cc: linux-kernel

On 1/13/06, jeff shia <tshxiayu@gmail.com> wrote:
> Where Can I get the io schedulers?
> Thank you!

See the documentation under the kernel source tree. The code is
already there. You need only to select by passing correct kernel
parameters.
elevator=       [IOSCHED]
                        Format: {"as" | "cfq" | "deadline" | "noop"}
                        See Documentation/block/as-iosched.txt and
                        Documentation/block/deadline-iosched.txt for details.

Regards
Ram Gupta

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: something about disk fragmentation
  2006-01-13 16:14     ` Ram Gupta
@ 2006-01-13 19:24       ` Jens Axboe
  2006-01-14  7:17         ` Randy.Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2006-01-13 19:24 UTC (permalink / raw)
  To: Ram Gupta; +Cc: jeff shia, linux-kernel

On Fri, Jan 13 2006, Ram Gupta wrote:
> On 1/13/06, jeff shia <tshxiayu@gmail.com> wrote:
> > Where Can I get the io schedulers?
> > Thank you!
> 
> See the documentation under the kernel source tree. The code is
> already there. You need only to select by passing correct kernel
> parameters.
> elevator=       [IOSCHED]
>                         Format: {"as" | "cfq" | "deadline" | "noop"}
>                         See Documentation/block/as-iosched.txt and
>                         Documentation/block/deadline-iosched.txt for details.

It's much more convenient to do it dynamically (and saves you a reboot).
Just do

# echo deadline > /sys/block/dev/queue/scheduler

to switch it at runtime, replace 'dev' with your hard drive name, eg
hda or sda etc.

BTW, that option needs updating, you are supposed to use "anticipatory"
for that scheduler (patch accepted :-).

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: something about disk fragmentation
  2006-01-13 19:24       ` Jens Axboe
@ 2006-01-14  7:17         ` Randy.Dunlap
  2006-01-16  8:51           ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Randy.Dunlap @ 2006-01-14  7:17 UTC (permalink / raw)
  To: Jens Axboe, akpm; +Cc: ram.gupta5, tshxiayu, linux-kernel

From: Randy Dunlap <rdunlap@xenotime.net>

Update kernel-parameters.txt IOSCHED to spell out 'anticipatory'.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
 Documentation/kernel-parameters.txt |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2615-g9.orig/Documentation/kernel-parameters.txt
+++ linux-2615-g9/Documentation/kernel-parameters.txt
@@ -471,7 +471,7 @@ running once the system is up.
 			arch/i386/kernel/cpu/cpufreq/elanfreq.c.
 
 	elevator=	[IOSCHED]
-			Format: {"as" | "cfq" | "deadline" | "noop"}
+			Format: {"anticipatory" | "cfq" | "deadline" | "noop"}
 			See Documentation/block/as-iosched.txt and
 			Documentation/block/deadline-iosched.txt for details.
 


---

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: something about disk fragmentation
  2006-01-14  7:17         ` Randy.Dunlap
@ 2006-01-16  8:51           ` Jens Axboe
  0 siblings, 0 replies; 6+ messages in thread
From: Jens Axboe @ 2006-01-16  8:51 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: akpm, ram.gupta5, tshxiayu, linux-kernel

On Fri, Jan 13 2006, Randy.Dunlap wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> Update kernel-parameters.txt IOSCHED to spell out 'anticipatory'.
> 
> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>

Thanks Randy, added.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-16  8:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-11 13:01 something about disk fragmentation jeff shia
2006-01-11 14:33 ` Ram Gupta
     [not found]   ` <7cd5d4b40601130158l274a3b19t13f2a58a28cc3819@mail.gmail.com>
2006-01-13 16:14     ` Ram Gupta
2006-01-13 19:24       ` Jens Axboe
2006-01-14  7:17         ` Randy.Dunlap
2006-01-16  8:51           ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).