bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort 5.2.1 is VERY slow


From: Dick Hessel
Subject: sort 5.2.1 is VERY slow
Date: Mon, 28 Feb 2005 23:12:15 -0800
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Hi,
I was looking at some data in a 6MB text file using sort.
When I used the --key flag, the speed of sort was embarrassingly bad.
It was *~80 times slower* on my new Athlon64 processor as on
an old 1GHz P3 using cygwin's sort under Windows 2000!

I ran
grep "konnect 1" Out_konnect | sort --key=4 -n |less

on my 2.4GHz Athlon64 processor.  The file size is
home $  grep "konnect 1" Out_konnect |wc
265680 1062720 6159635

The command on Suse Linux ran for over 7 minutes.

The file is on the Linux machine, however, I can access the same
files via samba from an old Windows PC.  While the Linux sort was running,
I ran the same command on the 1GHz P3 Windows 2000 system using cygwin's
sort.  It ran in about 5 seconds.

The slow version of sort is

sort (coreutils) 5.2.1
Written by Mike Haertel and Paul Eggert.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'm running Suse Linux
Linux linux 2.6.4-52-default #1 Wed Apr 7 02:15:23 UTC 2004 x86_64 x86_64 x86_64 GNU/Linux


The fast, cygwin version of sort on Windows is

home $ sort --version
sort (textutils) 2.0.21
Written by Mike Haertel and Paul Eggert.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Dick
--------------------------------------------------------------------
Dick Hessel                                     925_417_1171 (home)
SSOC                                            925_699_1209 (cell)
3226 Flemington Ct                              925_281_4912 (fax)
Pleasanton, CA 94588 address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]