AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Error 27 File too large

    Posted Wed July 23, 2008 05:28 PM

    Originally posted by: tvannaman2000


    I'm running aix 5.3 tl6 on my F50. I'm using xlC 7.0 and have compiled the TPC-E load generating program (which uses printf for I/O).

    The program is running and when the filesize gets to about 2.1GB, I get the error. Both my hard & soft ulimit are -1, verified by a ulimit -a. I'm on a jfs2 filesystem with plenty of space.

    To make sure it was not the OS, I was able to "cat x >> bigfile" and can get the filesize up to 4GB before I gave up.

    My thought is the libraries which were used in linking are causing the problem, since the OS seems fine. Perhaps the pointer is being blown out of the water. I had to use the xlC_r compiler/linker due to pthreads being used. I haven't specified any special LDFLAGS.

    I tried to put the system into 64bit mode, but it is a 32bit system.

    Has anybody come across something similar to this? Are there alternate libraries I can link?

    Thanks in advance.

    Tim.
    #AIX-Forum


  • 2.  Re: Error 27 File too large

    Posted Fri July 25, 2008 09:22 PM

    Originally posted by: nagger


    This sounds very like a ulimit issue despite your checks.
    What exactly is the output of ulimit.
    What is the file size in bytes - if its ulimit it should be exactly the limit.
    How did you set these to -1?
    did you log in again after setting them and check?
    Can you run the generator as root?
    Can you set the ulimits to half a GB and check you stop there so we know ulimit is kicking in?

    The kernel bitness nor compile options would not effect this at all.

    ta Nigel
    #AIX-Forum


  • 3.  Re: Error 27 File too large

    Posted Fri August 01, 2008 12:01 PM

    Originally posted by: tvannaman2000


    I went into smitty and set both the soft and hard file limits to -1 for both root and db2inst1. I then re-logged
    in.

    It happens to both users (root & db2inst1), doesn't make a difference.

    Output of ulimit -a : time: unlimited, file: unlimited, data:245760, stack: 16384, memory: unlimited, coredump: unlimited, nofiles: 2000

    I've tried large file enabled filesystem with jfs1 with no success. With jfs2, I can create a slightly larger file.

    I set ulimit to 1000 and got the exact same error message, so it looks like it is related. My question is how does unlimited equate to 2.2GB ? I am going to try something... will update later.
    #AIX-Forum


  • 4.  Re: Error 27 File too large

    Posted Fri August 01, 2008 01:36 PM

    Originally posted by: j.gann


    I am not using xlC but when you look at the system header files you see a directive _LARGE_FILES which controls how some of the data structures are defined and some of the system calls are declared. Have you tried defining _LARGE_FILES at compile time?

    Regards
    Joachim Gann
    #AIX-Forum


  • 5.  Re: Error 27 File too large

    Posted Fri August 01, 2008 03:38 PM

    Originally posted by: tvannaman2000


    I looked it and tried it. Many link errors on the file handling libraries. A programming book I located said you would have to replace all the function calls with 64bit function calls... fopen64() instead of fopen() and the like.

    I definitely think I've run into a 32bit limit which manifests itself like a ulimit.
    #AIX-Forum


  • 6.  Re: Error 27 File too large

    Posted Mon August 04, 2008 02:10 PM

    Originally posted by: SystemAdmin


    It sounds to me like you have setup the limits (in /etc/security/limits and smit) correctly; the fact that you can cat a file > 4GB backs up that assertion.

    I agree with Joachim that you should look into utilizing _LARGE_FILES. Here's a page from the pubs that discusses this issue:
    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.genprogc/doc/genprogc/prg_lrg_files.htm
    #AIX-Forum


  • 7.  Re: Error 27 File too large

    Posted Fri August 01, 2008 02:49 PM

    Originally posted by: tvannaman2000


    Rebooted machine, ran program as root. Same error:

    File size is: 2,147,483,647
    #AIX-Forum


  • 8.  Re: Error 27 File too large

    Posted Mon August 04, 2008 04:21 AM

    Originally posted by: tony.evans


    It's not trying to create a temporary file somewhere in a jfs filesystem by any chance?
    #AIX-Forum


  • 9.  Re: Error 27 File too large

    Posted Mon August 04, 2008 11:26 AM

    Originally posted by: tvannaman2000


    No, no temporary files being created.
    #AIX-Forum