Re: Kswapd flaw

From: Marcelo Tosatti
Date: Tue Jun 28 2005 - 10:42:49 EST


On Tue, Jun 28, 2005 at 03:55:29PM +0100, Paulo Marques wrote:
> Al Boldi wrote:
> >On Mon, Jun 27, 2005 at 11:04:08PM +0300, Al Boldi wrote:
> >
> >>In 2.4.31 kswapd starts paging during OOMs even w/o swap enabled.
> >>
> >>Is there a way to fix/disable this behaviour?
> >
> >
> >Marcelo,
> >
> >Kswapd starts evicting processes to fullfil a malloc, when it should just
> >deny it because there is no swap.
>
> I think what you really want is to adjust your "overcommit" settings.
>
> See: "Documentation/vm/overcommit-accounting"

Al,

You should set overcommit accordingly as Paulo mentions.

You might also want to disable the OOM killer (CONFIG_OOM_KILLER).

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