xfs
[Top] [All Lists]

Re: shell filesize limit of 4 GB

To: Steve Lord <lord@xxxxxxx>
Subject: Re: shell filesize limit of 4 GB
From: Jonathan Dill <dill@xxxxxxxxxxxx>
Date: Wed, 31 Oct 2001 22:33:58 -0500
Cc: Todd Raeker <raeker@xxxxxxxxx>, Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
Organization: CARB
References: <01102909435902.11332@chemraeker1> <3BDD8E31.9C817A5@umbi.umd.edu> <01103113542200.01720@chemraeker1> <3BE05612.5BD3FFA4@umbi.umd.edu> <1004558357.8600.23.camel@jen.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Steve Lord wrote:
> I do know that if you use the limits interface then there is only 4
> bytes of space in the kernel to store limits. Which means you cannot
> impose a limit of greater than 4G bytes. The rollover you are seeing
> is probably because of this. Setting a limit to RLIM_INFINITY which
> is 0xffffffff on i386 effectively disables the limit checking and this
> is the only way to get into higher order files.

How do I set the limit to RLIM_INFINITY?  Trying to do it with the limit
command seems to have no effect:

[root@amanda ~]# limit -h filesize
filesize        4194303 kbytes
[root@amanda ~]# limit -h filesize 68719476736
[root@amanda ~]# limit -h filesize
filesize        0 kbytes

It's curious that I was still able to create a 4.7 GB file.  With the
old tcsh without -D_FILE_OFFSET_BITS=64, this is what I get even though
I can't create > 2 GB files:

[root@bit ~]# limit -h filesize
filesize        unlimited

If I have problems the next time I'm trying to create large files, I
guess I'll have to try bash and see what I can do with that.

-- 
"Jonathan F. Dill" (dill@xxxxxxxxxxxx)


<Prev in Thread] Current Thread [Next in Thread>