Thank you Mike for reporting this problem, and for your patience with
this issue.
Recently I believe I have discovered a simple code change that
alleviates the excessive CPU usage related to the progress pulse bar.
Would you be able to test the following patch to see if this provides a
performance improvement?
Thanks,
Curtis Gedak
>From b45e4f0b07153a46566111e3601389e67ff031b7 Mon Sep 17 00:00:00 2001
From: Curtis Gedak <[email protected]>
Date: Mon, 9 Jan 2012 19:22:48 -0700
Subject: [PATCH 1/1] Increase sleep time to decrease pulse bar update frequency
Debian Bug 499193 - gparted: 100% cpu usage
Debian Bug 519764 - gparted: Lots of animation makes use over SSH
X-tunnel slow
---
src/Dialog_Progress.cc | 2 +-
src/Win_GParted.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc
index ecb7146..253a378 100644
--- a/src/Dialog_Progress.cc
+++ b/src/Dialog_Progress.cc
@@ -222,7 +222,7 @@ void Dialog_Progress::on_signal_show()
while ( Gtk::Main::events_pending() )
Gtk::Main::iteration();
gdk_threads_leave();
- usleep( 10000 ) ;
+ usleep( 100000 ) ;
gdk_threads_enter();
}
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 5da4e6c..38a67d9 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -618,7 +618,7 @@ void Win_GParted::show_pulsebar( const Glib::ustring & status_message )
while ( Gtk::Main::events_pending() )
Gtk::Main::iteration();
gdk_threads_leave();
- usleep( 10000 );
+ usleep( 100000 );
gdk_threads_enter();
Glib::ustring tmp_msg = gparted_core .get_thread_status_message() ;
if ( tmp_msg != "" )
--
1.7.4.1