From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cf508d9a60ccded2 X-Google-Attributes: gidfee84,public X-Google-Thread: 1012a6,cf508d9a60ccded2 X-Google-Attributes: gid1012a6,public X-Google-Thread: f8c9b,cf508d9a60ccded2 X-Google-Attributes: gidf8c9b,public From: nascheme@acs.ucalgary.ca (Neil Schemenauer) Subject: Re: File Sort: How good is Unix sort? Date: 1997/10/25 Message-ID: <62s2q8$jge@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 284829690 References: <34515C4D.5460D0FE@calweb.com> Organization: The University of Calgary Reply-To: nascheme@acs.ucalgary.ca Newsgroups: comp.unix.questions,comp.unix.osf.osf1,comp.unix.shell On Fri, 24 Oct 1997 19:41:19 -0700, Biju Srinivasan wrote: >I have a requirement where i need to sort and merge 2 flat files on a >Dec Alpha unix server. >$ uname -a gives >OSF1 hostname V4.0 564 Alpha > >The files have approx. 50 million rows each, with rows of around 1000 >bytes. >The sort is rather straight-forward, on 2 fixed-width fields in the >files. I have no idea how efficient unix sort will be on such a >sort/merge nor do i have the resources to test this with real data at >this point. I am not worried about the time it is going to take, but >more on whether unix sort can handle such a volume of data. >I also came across a 3rd party appl. SyncSort which i believe is >effiicient, but much more powerful than what i need, which is just a >simple sort. Is it worth investing money on SyncSort for such a simple >need? >Will unix sort work for me? Are there any freeware utilities available >for my need? Wow. That's a lot of data. At first I thought there is no way sort will handle that. After looking at the GNU sort source, I think I will be proved wrong. What you need is an external merge sort. It looks like GNU sort does that. You will need a lot of free disk space though, at least double the size of the two files. If you don't have GNU sort, you can get it at: ftp://prep.ai.mit.edu/pub/gnu/ Good luck. Neil