GNU bug report logs - #12738
'sort' wastes cpu-cycles of all available cpus

Previous Next

Package: coreutils;

Reported by: "Schwidom, Frank" <Frank.Schwidom <at> HS-Lausitz.de>

Date: Fri, 26 Oct 2012 07:46:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Frysinger <vapier <at> gentoo.org>
To: bug-coreutils <at> gnu.org
Cc: 12738-done <at> debbugs.gnu.org, "Schwidom,
	Frank" <Frank.Schwidom <at> hs-lausitz.de>, Jim Meyering <jim <at> meyering.net>
Subject: Re: bug#12738: 'sort' wastes cpu-cycles of all available cpus
Date: Fri, 26 Oct 2012 17:28:04 -0400
[Message part 1 (text/plain, inline)]
On Friday 26 October 2012 05:42:31 Jim Meyering wrote:
> Schwidom, Frank wrote:
> > In some situations sort wastes cpu-cycles of all available cpus.
> > 
> > $ sort --version
> > sort (GNU coreutils) 8.7
> > Packaged by Gentoo (8.7 (p1))
> 
> However, your version of sort is quite old and
> that bug was fixed almost two years ago:
> (from "NEWS")
> 
>     * Noteworthy changes in release 8.8 (2010-12-22) [stable]
> 
>     ** Bug fixes
> 
>       sort with at least two threads and with blocked output would
> busy-loop (spinlock) all threads, often using 100% of available CPU cycles
> to do no work.  I.e., "sort < big-file | less" could waste a lot of power.
> [bug introduced in coreutils-8.6]
> 
> The latest release is coreutils-8.20.

and Gentoo has stabilized newer versions in the interim with 8.16 going stable 
most recently in Aug 2012.
-mike
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 12 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.