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

« back to all changes in this revision

Viewing changes to trampoline/trampoline.c

  • Committer: wagrant
  • Date: 2008-08-10 01:14:11 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1003
trampoline: Limit on AS rather than DATA, as DATA doesn't work.
            Adjust limits to suit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
    {
320
320
        struct rlimit l;
321
321
        /* Process data segment in memory */
322
 
        l.rlim_cur = 64 * 1024 * 1024; /* 64Mb */
323
 
        l.rlim_max = 72 * 1024 * 1024; /* 64Mb */
324
 
        if (setrlimit(RLIMIT_DATA, &l))
 
322
        l.rlim_cur = 192 * 1024 * 1024; /* 192MiB */
 
323
        l.rlim_max = 256 * 1024 * 1024; /* 256MiB */
 
324
        if (setrlimit(RLIMIT_AS, &l))
325
325
        {
326
 
            perror("could not setrlimit/RLIMIT_DATA");
 
326
            perror("could not setrlimit/RLIMIT_AS");
327
327
            exit(1);
328
328
        }
329
329