Sorting in ramdisk

Hi,

I have sort command that sorts in ramdisk created by a script 'mktd' and later unmounted by script 'rmtd'. The platform is AIX.

# code
sudo -E mktd 44 # create ramdisk of size 44GB
sort ... -k1,1 -2,2 ... # sort a file using the ramdisk on keys 1 and 2
sudo -E rmtd # unmount ramdisk

The keys I am sorting are on the first and second column on a ~810 million record dataset.

The error I am getting is below. Is this a memory issue?

sort: 0653-655 Cannot open /apps/tmp/stm242374aaqxg
2009-01-17 09:17:29 EST: ERROR: Error in step sortfile at line 18: Command return code: 2

Thanks,

  • CB

I think this was a memory issue due to write error because I ran the same syntax through a smaller dataset and it worked.

  • CB