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

From: Helge Hafting (helgehaf@idb.hist.no)
Date: Fri Aug 17 2001 - 05:02:58 EST


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.
[...]
> In other words, system had
> cached a bunch of buffers.
>
> 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
[...]
Such a big copy operation is exactly what "use-once" does well.
2.4.8 has use-once, 2.4.8ac3 don't have use-once.

One can construct scenarios where use-once performs worse too,
I believe this is why Alan Cox didn't want it yet.

A big copy without use-once will push everything else out of
cache, and push a lot of programs into swap in order to cache
a lot of the big copy. That's bad if the big
copy is done once and you don't really need the stuff again.
Then you want the "other" stuff to stay in cache instead.

Use-once may perform worse if stuff falls out of cache
and has to be re-read from disk.

Helge Hafting
-
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/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:22 EST