Hi All!!
This is my first query here, I will be able to solve my problem here hopefully... I have AIX 5.3 and perl 5.8.2.60 installed on it. I am not able to set the data segment to unlimited using perl. I have a perl script that starts a Java process, for that process, I need unlimited data segment. I tried :
[root@laka09]/ # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 4194304 memory(kbytes) unlimited coredump(blocks) unlimited nofiles(descriptors) unlimited
This is by default.

Now i try to run the following
# ! /usr/bin/perl system("ulimit -a"); The result is : time(seconds) unlimited file(blocks) unlimited data(kbytes) 2097152 stack(kbytes) 4194304 memory(kbytes) unlimited coredump(blocks) unlimited nofiles(descriptors) unlimited
I saw somewhere BSD-Resource-1.28 could help me out, but i wasnot able to get it running.
[root@laka09]/results/sumit/127711/jdk142/lib/perl/BSD-Resource-1.28 # perl Makefile.PL Configuring BSD::Resource... Checking whether you have certain header files... [cccmd = cc_r -c -o tmp245954.o -I/usr/opt/perl5/lib/5.8.2/aix-thread- +multi/CORE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16 +384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LAR +GE_FILES -qlonglong] [cccmd = cc_r -c -o tmp245954.o -I/usr/opt/perl5/lib/5.8.2/aix-thread- +multi/CORE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16 +384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LAR +GE_FILES -qlonglong] Your operating system does not seem to have <sys/resource.h> or <sys/r +usage.h>. (Run "perl Makefile.PL" with the environment variable VERBOSE set to 1 + (one) too see in more detail what went wrong.) There is no way BSD::Resource is going to work. I am awfully sorry but I cannot go further. Aborting configuration of BSD::Resource.

Please help!
Cheekoo

I tried this, see:
[root@laka09]/results/sumit/127711/jdk142/lib/perl # ! /usr/bin/perl system("ulimit -a"); system("ulimit -d unlimited"); system("ulimit -a"); time(seconds) unlimited file(blocks) unlimited data(kbytes) 2097152 stack(kbytes) 4194304 memory(kbytes) unlimited coredump(blocks) unlimited nofiles(descriptors) unlimited time(seconds) unlimited file(blocks) unlimited data(kbytes) 2097152 stack(kbytes) 4194304 memory(kbytes) unlimited coredump(blocks) unlimited nofiles(descriptors) unlimited

In reply to ulimit value not getting set on AIX by cheekoo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.