[PATCH] Re: linux readahead setting?

Roger Larsson (roger.larsson@skelleftea.mail.telia.com)
Wed, 14 Nov 2001 01:37:05 +0100


--------------Boundary-00=_TPLRJJPFNRPIZSC0DEI8
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

On Tuesday 13 November 2001 16:21, Roy Sigurd Karlsbakk wrote:
> Hi
>
> I heard linux does <= 32 page readahead from block devices
> (scsi/ide/que?). Is there a way to double this? I want to read 256kB
> chunks from the SCSI drives, as to get the best speed. These numbers are
> based on some testing and information I've got from Compaq's storage guys.
>
> roy

Note that the interface to /proc/ide/hdX/settings still is buggy...

i.e you should be able to do (in pages):
echo "file_readahead:64" > /proc/ide/hdX/settings
but the result will be a readahead of 128*1024 PAGES... and that
is too much... (even 1024 PAGES is too much)

(after patch, in kB)
echo "file_readahead:256" > /proc/ide/hdX/settings

It is likely that there are more settings in the ide subsystem that is
has this fault... (Andre, I keep repeating myself...)

/RogerL

-- 
Roger Larsson
Skellefteċ
Sweden

--------------Boundary-00=_TPLRJJPFNRPIZSC0DEI8 Content-Type: text/x-diff; charset="iso-8859-1"; name="patch-2.4.11-pre2-ide_settings" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-2.4.11-pre2-ide_settings"

KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgpQYXRjaCBwcmVwYXJl ZCBieTogcm9nZXIubGFyc3NvbkBub3JyYW4ubmV0Ck5hbWUgb2YgZmlsZTogL2hvbWUvcm9nZXIv cGF0Y2hlcy9wYXRjaC0yLjQuMTEtcHJlMi1pZGVfc2V0dGluZ3MKCi0tLSBsaW51eC9kcml2ZXJz L2lkZS9pZGUtZGlzay5jLm9yaWcJVHVlIE9jdCAgMiAwMTowNTo0MSAyMDAxCisrKyBsaW51eC9k cml2ZXJzL2lkZS9pZGUtZGlzay5jCVRodSBPY3QgIDQgMjE6MTU6MzYgMjAwMQpAQCAtNjkwLDcg KzY5MCw3IEBACiAJaWRlX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WRkX3NldHRpbmcoZHJpdmUsCSJtYXhfa2JfcGVyX3JlcXVlc3QiLAlTRVRUSU5H X1JXLAkJCQkJQkxLU0VDVEdFVCwJCUJMS1NFQ1RTRVQsCQlUWVBFX0lOVEEsCTEsCTI1NSwJCQkJ MSwJMiwJJm1heF9zZWN0b3JzW21ham9yXVttaW5vcl0sCU5VTEwpOwogCWlkZV9hZGRfc2V0dGlu Zyhkcml2ZSwJImx1biIsCQkJU0VUVElOR19SVywJCQkJCS0xLAkJCS0xLAkJCVRZUEVfSU5ULAkw LAk3LAkJCQkxLAkxLAkmZHJpdmUtPmx1biwJCQlOVUxMKTsKIAlpZGVfYWRkX3NldHRpbmcoZHJp dmUsCSJmYWlsdXJlcyIsCQlTRVRUSU5HX1JXLAkJCQkJLTEsCQkJLTEsCQkJVFlQRV9JTlQsCTAs CTY1NTM1LAkJCQkxLAkxLAkmZHJpdmUtPmZhaWx1cmVzLAkJTlVMTCk7Cg==

--------------Boundary-00=_TPLRJJPFNRPIZSC0DEI8-- - 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/