The 2gb limit is in 32-bit cpu: Most exactly in libc, kernel fs drivers and VFS layer.
The limit exists because linux ports for 32bits CPUs use 32-bit integers for file access and locking, so: 2^31 - 1 = 2GB My solutions are: 1) You can implement LFS 2) Use XFS 3) Logrotate M. On 9/5/06, Vincent CHAVANIS <[EMAIL PROTECTED]> wrote:
2 solutions here : - logrotate is your friend... :) - or use 64 bits arch Vincent -- Telemaque - 06200 NICE - (FR) Service Technique/Reseau - NOC Developpement SMS/MMS/Kiosques http://www.telemaque.fr/ [EMAIL PROTECTED] Tel : +33 4 93 97 71 64 (fax 68) ----- Original Message ----- From: Andreas Fink To: devel Devel Sent: Tuesday, September 05, 2006 8:33 PM Subject: Logfiles above 2G There where days where harddisk had a limit of 2GB or 4GB There where days where partitions had a limit of 2GB or 4GB There where days where files had a limit of 2GB or 4GB Those days are long long gone. However if kannel's gwlib runs in full debug mode and the logfile hits 2GB, the application quits/stops working and when you relaunch it, it appends to the same 2GB logfile and quits again because it cant go beyond this 2GB limit. Now this is not a bug of Kannel but one of the operating system. This bug doesn't exist under MacOS X but it does exist in Linux Fedora 5 with a ext3 filesystem. From reading log.c, I can see that kannel does fopen("filename","a") and then vsfprintf or fprintf. As the file is opened append only, no seeks are used or anything fancy, I can not understand why the file is limited to 2GB even thought the filesystem for sure can handle files larger than 2GB. On our system it takes 2-3 days to hit this problem with a empty log file. As we mainly use MacOS X we never see this problem but having added a new Linux machine to the park, I'm puzzled to see this problem I've already spotted in 2001 and would have expected to have been long fixed in current linux kernels. Anyone have a hint here? Andreas Fink Fink Consulting GmbH --------------------------------------------------------------- Tel: +41-61-6666332 Fax: +41-61-6666331 Mobile: +41-79-2457333 Address: Clarastrasse 3, 4058 Basel, Switzerland E-Mail: [EMAIL PROTECTED] Homepage: http://www.finkconsulting.com --------------------------------------------------------------- ICQ: 8239353 MSN: [EMAIL PROTECTED] AIM: smsrelay Skype: andreasfink Yahoo: finkconsulting SMS: +41792457333
