Resource limit question

Michael Meskes (meskes@informatik.rwth-aachen.de)
Wed, 22 May 1996 11:23:55 +0200 (MET DST)


Hi!

When executing the following program my system simply stops when it runs out
of space.

#include <stdio.h>
#define K 1024
#define M (1020*K)
#define N 128
char a[N*M];

main()
{
long i;

for(i=0;i<(N*M);i++)
a[i]=i%100;
}

I'm running kernel 1.99.7 and I tried setting my resource limits. I had
datasize as well as memorylock and memoryuse set to 10KB. But this process
had >20MB when I killed it. What can I do to stop users from executing those
jobs?

Michael

-- 
Michael Meskes                   |    _____ ________ __  ____
                                 |   / ___// ____/ // / / __ \___  __________
meskes@informatik.rwth-aachen.de |   \__ \/ /_  / // /_/ /_/ / _ \/ ___/ ___/
                                 |  ___/ / __/ /__  __/\__, /  __/ /  (__  )
Use Debian Linux!		 | /____/_/      /_/  /____/\___/_/  /____/