lkml.org 
[lkml]   [1996]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectResource limit question
Date
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! | /____/_/ /_/ /____/\___/_/ /____/


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