[Top][All Lists]

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

Re: Multi-threading in sort(or core-utils)

From: Bo Borgerson
Subject: Re: Multi-threading in sort(or core-utils)
Date: Fri, 13 Jun 2008 11:30:49 -0400
User-agent: Thunderbird (X11/20080505)

address@hidden wrote:
> Hello
> Few minutes ago i used sort -u for sorting big file(236 Mb). I have 2 core 
> cpu(core 2 duo), but i found that sort use only one cpu(work in one thread). 
> I think it is good idea to make option(or by default) for sorting in threads 
> to increase performance on systems that might execute more than one thread in 
> parallel.
>    Klimentov Konstantin.


If you're using a shell that supports process substitution you could try
splitting your file in half and putting the bulk sorts of each half as
inputs to a merge:

So if you were doing:

$ sort bigfile

You could do:

$ sort -m <(sort bigfile.firsthalf) <(sort bigfile.secondhalf)


reply via email to

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