Fast patch for Severe I/O performance regression 2.6.6 to 2.6.7 or2.6.8-rc3
From: Mr. Berkley Shands
Date: Fri Aug 06 2004 - 13:18:06 EST
in 2.6.8-rc3/mm/readahead.c line 475 (about label do_io:)
#if 0
ra->next_size = min(average , (unsigned long)max);
#endif
the comment for the above is here after an lseek. The lseek IS inside
the window, but the code will always
destroy the window and start again. The above patch corrects the
performance problem,
but it would be better to do nothing if the lseek is still within the
read ahead window.
berkley
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/