RE: [squid-users] 2 GB file size limit

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 23 Oct 2003 19:32:13 +0200 (CEST)

On Thu, 23 Oct 2003, Bernhard Erdmann wrote:

> the filesystem (XFS) does support file sizes > 2 GB.

Yes and no.. it is a complicated issue.

For various reasons the OS limits file sizes to 32 bits on 32 bit
architectures such as intel x86 and compatibles..

But at the same time the OS does support larger files for applications who
indicate they whant to use larger files and know what they are doing. To
enable this support for large files needs to be enabled when the
application is compiled. This changes the data types used for keeping
track of file sizes to 64 bits, and allows for virtually unlimited file
sizes.

However, Squid has not been extensively tested in 64bit or 64bit like
environments so there is not any easy manners of enabling this in Squid if
you are not a developer (-D_FILE_OFFSET_BITS=64 is required)

Squid-3 does have a experimental configure flag for enabling support for
large files, but as above this is highly experimental and has not received
much testing. Be warned that this changes a whole lot more than only how
large the log files may become.

As others have said, why don't you rotate your log files more often to
keep their size at bay?

Regards
Henrik
Received on Thu Oct 23 2003 - 11:32:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:37 MST