>You can get to that situation by either putting more
>memory in your box or lowering the weights. In both
>situations, the result will be the same.
andrea@dragon:/proc/sys/vm$ cat swapctl
20 3 1 3 32 4 512 512
I still can' t reproduce failed memory allocation without an oom. Maybe
there' s some other variable to tune...
I am using this program to stress kswapd:
main()
{
char *p[20];
int i, j;
for (j=0; j<20; j++)
{
p[j] = (char *) malloc(1000000);
}
for (;;)
for (j=0; j<20; j++)
{
for (i=0; i<1000000; i++)
p[j][i] = 0;
}
}
I am launching in background many of this proggy until there is only 10
mbyte free in the swap (58mbyte of swap total).
Andrea[s] Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/