* File Sort: How good is Unix sort?
@ 1997-10-24 4:00 Biju Srinivasan
1997-10-25 4:00 ` era eriksson
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Biju Srinivasan @ 1997-10-24 4:00 UTC (permalink / raw)
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?
Thanks in advance for any advice.
Biju.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: File Sort: How good is Unix sort?
1997-10-24 4:00 File Sort: How good is Unix sort? Biju Srinivasan
1997-10-25 4:00 ` era eriksson
@ 1997-10-25 4:00 ` Neil Schemenauer
1997-10-27 5:00 ` Tim Smithers
1997-10-27 5:00 ` Bob Vickers
3 siblings, 0 replies; 6+ messages in thread
From: Neil Schemenauer @ 1997-10-25 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: File Sort: How good is Unix sort?
1997-10-24 4:00 File Sort: How good is Unix sort? Biju Srinivasan
@ 1997-10-25 4:00 ` era eriksson
1997-10-25 4:00 ` Neil Schemenauer
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: era eriksson @ 1997-10-25 4:00 UTC (permalink / raw)
To: biju
On Fri, 24 Oct 1997 19:41:19 -0700, Biju Srinivasan <biju@calweb.com>
posted to comp.unix.questions,comp.unix.osf.osf1,comp.unix.shell:
> I have a requirement where i need to sort and merge 2 flat files on a
> Dec Alpha unix server.
Are the files presorted?
> Will unix sort work for me? Are there any freeware utilities available
> for my need?
Each vendor's sort(1) will probably be different. If you have the
source, look at the source. If not, you might want to try a version
for which you do get the source. GNU sort (part of the textutils
package; prep.ai.mit.edu:/pub/gnu/textutils-*.tar.gz or a mirror close
to you) comes with source and has an option to merge presorted files
efficiently.
Hope this helps,
/* era */
Followups should probably go to only one newsgroup but I can't really
decide which ...
--
Paparazzi of the Net: No matter what you do to protect your privacy,
they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: File Sort: How good is Unix sort?
1997-10-24 4:00 File Sort: How good is Unix sort? Biju Srinivasan
1997-10-25 4:00 ` era eriksson
1997-10-25 4:00 ` Neil Schemenauer
@ 1997-10-27 5:00 ` Tim Smithers
1997-10-27 5:00 ` Bob Vickers
3 siblings, 0 replies; 6+ messages in thread
From: Tim Smithers @ 1997-10-27 5:00 UTC (permalink / raw)
Quite good.
I have sorted 800Mb data-sets before using just the
sort that is native to DEC. As the other poster pointed
out, it is only lack of disk space that will stop you, since
sort writes it's subsets to disk.
-mouse
--
Tim Smithers.
DMouse Pty. Ltd.
ph: 0414 366 873 (Mobile)
ph: +61 2 9351 5698
e-mail: mouse@sirca.usyd.edu.au
( Perfection is a hobby many pursue,
but few have a chance of success )
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: File Sort: How good is Unix sort?
1997-10-24 4:00 File Sort: How good is Unix sort? Biju Srinivasan
` (2 preceding siblings ...)
1997-10-27 5:00 ` Tim Smithers
@ 1997-10-27 5:00 ` Bob Vickers
1997-10-28 5:00 ` Joe Schunk
3 siblings, 1 reply; 6+ messages in thread
From: Bob Vickers @ 1997-10-27 5:00 UTC (permalink / raw)
To: biju
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.
>
Biju,
You should note the following lines from the Digital Unix sort man page:
Lines longer than 1024 bytes are truncated by sort. The maximum
number of fields on a line is 10.
Bob
--
======================================================================
Bob Vickers R.Vickers@rhbnc.ac.uk
Dept of Computer Science, Royal Holloway College, University of London
WWW: http://www.dcs.rhbnc.ac.uk/%7Ebobv/
Phone: +44 1784 443691
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: File Sort: How good is Unix sort?
1997-10-27 5:00 ` Bob Vickers
@ 1997-10-28 5:00 ` Joe Schunk
0 siblings, 0 replies; 6+ messages in thread
From: Joe Schunk @ 1997-10-28 5:00 UTC (permalink / raw)
Bob Vickers wrote:
>
> 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.
> >
>
> Biju,
>
> You should note the following lines from the Digital Unix sort man page:
>
> Lines longer than 1024 bytes are truncated by sort. The maximum
> number of fields on a line is 10.
>
That's industrial strength sorting ... You might want to take a look at
SyncSort/Unix http://www.syncsort.com/ -- A UNIX version descended from
a long line of big iron sorters.
--
-------------------------------------------------------------------
Joe Schunk <jschunk@slip.net> American Canyon, CA
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1997-10-28 5:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-24 4:00 File Sort: How good is Unix sort? Biju Srinivasan
1997-10-25 4:00 ` era eriksson
1997-10-25 4:00 ` Neil Schemenauer
1997-10-27 5:00 ` Tim Smithers
1997-10-27 5:00 ` Bob Vickers
1997-10-28 5:00 ` Joe Schunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox