~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/trampoline/trampoline.c

  • Committer: William Grant
  • Date: 2009-08-02 06:03:43 UTC
  • Revision ID: grantw@unimelb.edu.au-20090802060343-epavehiet45n1ewn
Double trampoline memory limits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
    {
362
362
        struct rlimit l;
363
363
        /* Process adress space in memory */
364
 
        l.rlim_cur = 192 * 1024 * 1024; /* 192MiB */
365
 
        l.rlim_max = 256 * 1024 * 1024; /* 256MiB */
 
364
        l.rlim_cur = 448 * 1024 * 1024; /* 512MiB - 64MiB */
 
365
        l.rlim_max = 512 * 1024 * 1024; /* 512MiB */
366
366
        if (setrlimit(RLIMIT_AS, &l))
367
367
        {
368
368
            perror("could not setrlimit/RLIMIT_AS");
373
373
         * Note: This requires a kernel patch to work correctly otherwise it is  
374
374
         * ineffective (thus you are only limited by RLIMIT_AS)
375
375
         */
376
 
        l.rlim_cur = 192 * 1024 * 1024; /* 192MiB */
377
 
        l.rlim_max = 256 * 1024 * 1024; /* 256MiB */
 
376
        l.rlim_cur = 448 * 1024 * 1024; /* 512MiB - 64MiB */
 
377
        l.rlim_max = 512 * 1024 * 1024; /* 512MiB */
378
378
        if (setrlimit(RLIMIT_DATA, &l))
379
379
        {
380
380
            perror("could not setrlimit/RLIMIT_DATA");