LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File size limit exceeded (https://www.linuxquestions.org/questions/linux-general-1/file-size-limit-exceeded-739229/)

stry_cat 07-10-2009 12:31 PM

File size limit exceeded
 
I'm getting a "File size limit exceeded" while compiling a program. It appears that it is writing a .ogg file which is several GB in size. When it gets to 2GB it dies with that error message.

I have some files as large as 5GB on this box. So I know it is possible.

I found some posts on this forum about checking ulimit and limits.conf. However everything seems to be in order.

Code:

[strycat@catbox /tmp]$ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 57701
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 57701
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

There's nothing in /etc/security/limits.conf or /etc/security/limits.d/

Can anyone help me? Thanks in advance.

spaniel 07-11-2009 03:24 AM

Could you please tell us which compiler/version/etc.

Just a thought. It might be that your compiler (which is writing the file) has a little bug. Normally when you would write a file you write it in blocks using a loop. You keep a counter or something simular. (It could also be the write itself). When that counter (or any other involved variable) is a 32 bit Integer then it can not go beyond 2Gb. (Number of bytes is bigger then the integer variable can hold)

So, check the compiler and maybe even you program you are compiling.

By the way...............
What compiler writes 2Gb files?, What are you compiling, new spaceshuttle software? by .ogg do you mean a media file?

catkin 07-12-2009 05:47 AM

Silly question: are the 5 GB files on the same type of file system?


All times are GMT -5. The time now is 04:19 PM.