From: nascheme@acs.ucalgary.ca (Neil Schemenauer)
Subject: Re: File Sort: How good is Unix sort?
Date: 1997/10/25 [thread overview]
Message-ID: <62s2q8$jge@ds2.acs.ucalgary.ca> (raw)
In-Reply-To: 34515C4D.5460D0FE@calweb.com
On Fri, 24 Oct 1997 19:41:19 -0700, Biju Srinivasan <biju@calweb.com> 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
next prev parent reply other threads:[~1997-10-25 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-24 4:00 File Sort: How good is Unix sort? Biju Srinivasan
1997-10-25 4:00 ` Neil Schemenauer [this message]
1997-10-25 4:00 ` era eriksson
1997-10-27 5:00 ` Bob Vickers
1997-10-28 5:00 ` Joe Schunk
1997-10-27 5:00 ` Tim Smithers
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox