abdullah.yildiz has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to sort 500.000.000 numbers which are stored in a file. The file is approximately 5 GB in size. Initially, I read the numbers into an array and then perform merge sort. However, the memory is not enough to do the calculations and comparisons and after some time the program gives "Out of memory" error and dies.
Could you help me about this problem? Thank you.
OS: Debian 6
RAM: 2 GB
Swap: 2.6 GB