All of lore.kernel.org
 help / color / mirror / Atom feed
From: root <root@ns.senbell.com.cn>
To: linux-mm@kvack.org
Date: Tue, 27 May 1997 21:36:16 +0800	[thread overview]
raw)

I am leiyin, a software engineer in china, beijing. I am interested
in Linux memory management these day. Since I find an ordinary user
can easily occupy all the memory available. Though I don't think this is 
a bug. I wonder whether I can control how much memory a user can occup
,including swap space, or not.


For example, this program occupy.c 
compile: cc -o occupy occupy.c

#define BLOCK 100000
#define PGSIZE 4096
char *p[BLOCK];

main()
{
  int i,j;

  for(i=0;i<BLOCK;i++)
  {
    for(j=0;j<PGSIZE;j++)
    p[i][j]  = 0;
    }

  sleep(100000); 
}


when I run occupy. My linux system with 32 RAM soon show
Out of Memory. And any other users cannot login and work normally.

Especially in AS400 OS/400 one can distribute a fixed size physical memory
(pool) for a subsystem. If Linux can do this( I mean a fixed size memory for
a user not subsystem), I think linux will become more lovely.


Address:leiyin_linux@163.net


  
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

             reply	other threads:[~1999-04-07  7:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-27 13:36 root [this message]
1999-04-07 15:09 ` none Eric W. Biederman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199705271336.VAA00397@ns.senbell.com.cn \
    --to=root@ns.senbell.com.cn \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.