Re: [RFC][PATCH 6/8] mm: handle_speculative_fault()

From: Linus Torvalds
Date: Fri Jan 08 2010 - 14:43:16 EST




On Fri, 8 Jan 2010, Linus Torvalds wrote:
>
> Another fact is simply that you shouldn't write your app so that it needs
> to do millions of page faults per second.

Side note: an app with lots of threads, and that needs to fault in lots of
pages at startup time, and has performance problems, can - and should -
likely use interfaces that are _designed_ for that.

There's things like madvise(WILLNEED) etc, which can batch up the filling
of a memory area.

If you're doing a performance-sensitive application with hundreds of
threads, and hundreds of gigabytes of data, you had better know about
simple concepts like "batch fill", rather than whine about "oh my, my
totally special-case app takes a few seconds to start because I'M A
F*CKING MORON AND DID EVERYTHING WRONG".



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