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)
|