Re: I/O causes performance problem with 2.4.8-ac3

Chris Mason (mason@suse.com)
Fri, 17 Aug 2001 13:50:03 -0400


On Thursday 16 August 2001 01:54 pm, Chris Schanzle wrote:
> This probably belongs in the "use-once" thread...
>
> I ran into a significant (lack of) performance situation with 2.4.8-ac3
> that does not exist with 2.4.8. Perhaps someone can shed some light on
> what happened and how to avoid it in the future.
>
>
> Performance was excellent until I decided to "dd bs=1024k </dev/cdrom
>
> >somefile" a 600+MB cdrom while a kernel build was going on. It took
>
> nearly 7 minutes to complete the dd and near the end, the cdrom drive
> light was only occasionally flickering activity (not "on" as it was at the
> start), keystrokes were delayed, refreshes were sluggish.

Most of the current use once code is for the page cache, dd if=/dev/cdrom
will read from the buffer cache, where the pages will take longer to age out.
One of the patches between 2.4.8pre7 and 2.4.8final seems to have helped a
lot here, but I'm not sure which one it was (check out the 'still buffer
cache problems' thread). I'm also not sure if the speedup was intentional,
so it might go away during future tweaks.

Rik also posted a patch in 2.4.8-ac5 that deactivates buffer cache pages
after a threshold, which should help as well (and benefit reiserfs/ext3 in
general).

-chris
-
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/