mtr has high CPU use when paused

Bug #1468202 reported by clickwir
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mtr (Ubuntu)
Fix Released
Undecided
Samuel Henrique

Bug Description

While running mtr, hitting 'P' to pause, causes CPU use to ramp up. Pressing 'space' to unpause, resumes normal function and CPU use. This consumes one (1) core at 100%.

While running mtr, hitting 'H' to get the help menu also pauses the current traceroute/ping process while displaying a Help menu. However, this pause does not cause excess CPU use and normal function and CPU use are resumed when leaving the Help screen.

sudo apt-cache policy mtr-tiny
mtr-tiny:
  Installed: 0.85-3
  Candidate: 0.85-3
  Version table:
 *** 0.85-3 0
        500 http://mirrors.advancedhosters.com/ubuntu/ vivid/main amd64 Packages
        500 http://mirror.symnds.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

uname -a
Linux mach 3.19.0-21-generic #21-Ubuntu SMP Sun Jun 14 18:31:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Kubuntu 15.04 64bit

Tags: cpu mtr
Revision history for this message
clickwir (clickwir) wrote :

Package change from mtr to mtr-tiny.

description: updated
Revision history for this message
clickwir (clickwir) wrote :

Additional: I removed mtr-tiny and installed mtr. Running mtr opens a GUI window and that can be paused and unpaused without affecting the CPU use. However, adding the '-t' option to run in curses mode, will reproduce the high CPU use when paused.

According to ftp://ftp.bitwizard.nl/mtr/mtr-0.86.diff there is a fix for this in the latest version.
"+ Fixed (longstanding) bug that mtr used 100% cpu when paused."

Revision history for this message
clickwir (clickwir) wrote :

Stable release 0.86 / December 9, 2014; 9 months ago

Can we please have an updated version?

Here's even a link for the source: ftp://ftp.bitwizard.nl/mtr/mtr-0.86.tar.gz

Revision history for this message
clickwir (clickwir) wrote :
Changed in mtr (Ubuntu):
status: New → Confirmed
Changed in mtr (Ubuntu):
assignee: nobody → Samuel Henrique (samueloph)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.