lkml.org 
[lkml]   [1998]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] oom-5
On Thu, 8 Oct 1998, Rik van Riel wrote:

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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.038 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site