LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2009, 01:31 PM   #1
stry_cat
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Rep: Reputation: 0
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.
 
Old 07-11-2009, 04:24 AM   #2
spaniel
Member
 
Registered: Mar 2005
Location: Netherlands
Distribution: Fedora Core 5 x86_64
Posts: 48

Rep: Reputation: 15
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?
 
Old 07-12-2009, 06:47 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file size limit exceeded arunachalam Linux - Software 3 10-01-2007 10:16 AM
File size limit exceeded debeus Slackware 4 11-07-2006 11:36 AM
File size limit exceeded wfernley Linux - Software 5 07-21-2006 04:31 PM
file size limit exceeded mchitrakar Linux - General 2 10-12-2004 01:47 PM
File size limit exceeded npuetz Linux - General 5 10-06-2004 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration