Re: Kswapd flaw

From: Michal Schmidt
Date: Tue Jun 28 2005 - 03:27:35 EST


Al Boldi wrote:
Kswapd starts evicting processes to fullfil a malloc, when it should just
deny it because there is no swap.

The kernel can always discard pages of executables and read-only mapped files, because it can load them back if necessary. If you don't like this, call mlockall() in your program.

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