[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2G tmpfile of sort
From: |
Chun Cui |
Subject: |
Re: 2G tmpfile of sort |
Date: |
Wed, 20 Sep 2006 21:40:00 +0200 |
Hello,
I use Linux(Debian-unstable), version of sort is 'sort 5.93'.
Intel CPU, 2GB Memory
coreutils 5.2.1-2
gcc (GCC) 3.4.6 20060122 (prerelease) (Debian 3.4.5-2)
kernel-2.6.15 with xfs
but the compiled version is coreutils-5.97.
maybe the version of my coreutil is too old.
in sort.c I have changed here:
---------------
....
/* Create the temporary file in a critical section, to avoid races. */
sigprocmask (SIG_BLOCK, &caught_signals, &oldset);
fd = mkstemp(file);
if (0 <= fd)
.....
------------------
mkstemp(file) -->> mkstemp64(file);
The original error message is:
[1]+ File size limit exceeded nohup sort -S 800M -T ./
the TempFile created by 'sort' is just 2GB, so i thought maybe sort can
not create tempfile > 2GB.
The newest version of coreutil I have not
tested. ;-(
Chun Cui
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> According to Chun Cui on 9/19/2006 10:36 AM:
> > hello,
> > I sorted a 40GB file with 'sort'.
> > I have found,that sort can't create temp file > 2GB.After i changed
> > mkstemp to mkstemp64,it works!
>
> Thanks for the report. Which platform, which compiler, and which
> version of coreutils was this? If it is still present in coreutils
> 6.2, we would like to get it fixed before 6.3.
>
Re: 2G tmpfile of sort,
Chun Cui <=