Debian Bug report logs - #444699
gnuplot: -persist takes inordinate amounts of cpu

version graph

Package: gnuplot; Maintainer for gnuplot is Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>; Source for gnuplot is src:gnuplot (PTS, buildd, popcon).

Reported by: Matthijs Melchior <mmelchior@xs4all.nl>

Date: Sun, 30 Sep 2007 12:24:07 UTC

Severity: normal

Tags: moreinfo, unreproducible, upstream

Merged with 444701

Found in versions gnuplot/4.2.0-4, gnuplot/4.2.2-1

Fixed in version gnuplot/4.4.0-1.1

Done: Agustin Martin <agmartin@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://sourceforge.net/tracker/?func=detail&aid=3065389&group_id=2055&atid=102055

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Cyril Bouthors <cyril@bouthors.org>:
Bug#444699; Package gnuplot. (full text, mbox, link).


Acknowledgement sent to Matthijs Melchior <mmelchior@xs4all.nl>:
New Bug report received and forwarded. Copy sent to Cyril Bouthors <cyril@bouthors.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Matthijs Melchior <mmelchior@xs4all.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gnuplot: -persist takes inordinate amounts of cpu
Date: Sun, 30 Sep 2007 14:22:10 +0200
[Message part 1 (text/plain, inline)]
Package: gnuplot
Version: 4.2.0-4
Severity: normal


gnuplot takes an inordinate amount of cpu time when invoked with the
-perstsit option.  On the machine where the problem is detected,
one "gnuplot -persist" process takes 33% of the cpu, 2 "gnuplot -persist"
invocations make the system unresponsive with 100% cpu and a load of
~20.

strace shows the gnuplot process sits in a loop doing
  nanosleep({0, 10000}, NULL).

usecase:
  I have a script to plot NTP behavoiur, and it uses 'gnuplot -persist'
  to show a graph.  I use multiple invocations of 'gnuplot -perstis'
  to compare different days.

A generated gnuplot script and input file are attached.
To see the behavour give the following command, twice:
  gnuplot -persist /tmp/ntpgraph.debug

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnuplot depends on:
ii  gnuplot-nox                   4.2.0-4    A command-line driven interactive 
ii  gnuplot-x11                   4.2.0-4    X11-terminal driver for gnuplot

gnuplot recommends no packages.

-- no debconf information
[ntpgraph.debug (text/plain, attachment)]
[loopstats.20070929 (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Cyril Bouthors <cyril@bouthors.org>:
Bug#444699; Package gnuplot. (full text, mbox, link).


Acknowledgement sent to sacrificial-spam-address@horizon.com:
Extra info received and forwarded to list. Copy sent to Cyril Bouthors <cyril@bouthors.org>. (full text, mbox, link).


Message #10 received at 444699@bugs.debian.org (full text, mbox, reply):

From: sacrificial-spam-address@horizon.com
To: 444699@bugs.debian.org
Subject: Gnuplot wakes up 100x/second for no good reason.
Date: Sat, 29 Mar 2008 16:48:49 -0400
Package: gnuplot
Version: 4.2.2-1

After popping up a plot window (even if the window has been closed),
ust sitting there at the prompt, gnuplot is doing an infinite stream of
select(1, [0], NULL, NULL, {0, 10000})  = 0 (Timeout)

Give that it isn't doing anything ELSE, that should have a NULL final
parameter.  I confess I've been lazy and haven't tracked it down to a
particular line in the source code; unfortunately, running it under ltrace
kills it with a SIGTRAP.

This eats laptop batteries unnecessarily and should be fixed.

(Found via powertop, but I expect this is the same as the existing bug.)




Information forwarded to debian-bugs-dist@lists.debian.org, Bradley Smith <bradsmith@debian.org>:
Bug#444699; Package gnuplot. (Mon, 13 Sep 2010 16:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bastien ROUCARIES <roucaries.bastien@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bradley Smith <bradsmith@debian.org>. (Mon, 13 Sep 2010 16:15:03 GMT) (full text, mbox, link).


Message #15 received at 444699@bugs.debian.org (full text, mbox, reply):

From: Bastien ROUCARIES <roucaries.bastien@gmail.com>
To: 444699@bugs.debian.org, 444701@bugs.debian.org, Debian bugs control server <control@bugs.debian.org>
Date: Mon, 13 Sep 2010 18:11:35 +0200
forcemerge 444699 444701
tag  444701 + upstream
forwarded 444701
https://sourceforge.net/tracker/?func=detail&aid=3065389&group_id=2055&atid=102055
thanks




Forcibly Merged 444699 444701. Request was from Bastien ROUCARIES <roucaries.bastien@gmail.com> to control@bugs.debian.org. (Mon, 13 Sep 2010 16:15:12 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from Bastien ROUCARIES <roucaries.bastien@gmail.com> to control@bugs.debian.org. (Mon, 13 Sep 2010 16:15:12 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bradley Smith <bradsmith@debian.org>:
Bug#444699; Package gnuplot. (Tue, 14 Sep 2010 08:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bastien ROUCARIES <roucaries.bastien@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bradley Smith <bradsmith@debian.org>. (Tue, 14 Sep 2010 08:03:03 GMT) (full text, mbox, link).


Message #24 received at 444699@bugs.debian.org (full text, mbox, reply):

From: Bastien ROUCARIES <roucaries.bastien@gmail.com>
To: 444699@bugs.debian.org, Matthijs Melchior <mmelchior@xs4all.nl>, Nicolas Caval <nicolas.caval@wanadoo.fr>, Matt Blissett <matt+debian@blissett.me.uk>
Subject: [bug] gnuplot -persist bug
Date: Tue, 14 Sep 2010 09:59:28 +0200
tag 444699 + unreproducible
tag 444699 +  moreinfo
thank

I could not reproduce the bug.

From upstream:

>The loop in question deals with events from the window manager, so I think
>that in order to pursue this we would need to know what desktop and window
>manager is in use.  Note that there was a similar report that turned out to
>involve a bug in the Ion window manager:
>  http://www.mail-archive.com/ion-general@lists.berlios.de/msg01047.html
>
>Also this thread from 2006 might possibly be relevant
>  http://blog.gmane.org/gmane.comp.graphics.gnuplot.devel/month=20060201




Added tag(s) unreproducible. Request was from Bastien ROUCARIES <roucaries.bastien@gmail.com> to control@bugs.debian.org. (Tue, 14 Sep 2010 08:03:07 GMT) (full text, mbox, link).


Added tag(s) moreinfo. Request was from Bastien ROUCARIES <roucaries.bastien@gmail.com> to control@bugs.debian.org. (Tue, 14 Sep 2010 08:03:07 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://sourceforge.net/tracker/?func=detail&aid=3065389&group_id=2055&atid=102055'. Request was from Bastien ROUCARIES <roucaries.bastien@gmail.com> to control@bugs.debian.org. (Fri, 26 Nov 2010 16:24:07 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Mon, 01 Aug 2011 16:42:49 GMT) (full text, mbox, link).


Removed tag(s) fixed-upstream. Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Mon, 08 Aug 2011 16:42:28 GMT) (full text, mbox, link).


No longer marked as fixed in versions 4.4.0-1.1+b1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:55 GMT) (full text, mbox, link).


Marked as fixed in versions gnuplot/4.4.0-1.1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:55 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 01 Dec 2013 07:25:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 23:41:18 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.