Busy harddisk while typing or moving pad

Bug #782320 reported by Mumia W.
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Xpad
Fix Released
Medium
Arthur Borsboom

Bug Description

Hello. Xpad is a good program, but I have a problem with it.
Every time a pad is moved, my disk drive thrashes. It seems
that xpad is writing to disk a lot during window moves, so
I've created a patch that seems to solve the problem.
Thanks for writing and maintaining such a good program
for us.

Tags: performance

Related branches

Revision history for this message
Mumia W. (mumia-w-18) wrote :

I created a new patch with less cruft in it.

Revision history for this message
Mumia W. (mumia-w-18) wrote :

My patch might have a bug. If two pads are modified at about
the same time, the first pad probably won't be saved.
Setting TIMEOUT_SECONDS to a relatively low value probably
makes this a non-issue. However, this is a concern.

Revision history for this message
Mumia W. (mumia-w-18) wrote :

This patch fixes the original problem and does not cause some pads
to fail to be saved.
The original problem was that disk thrashing occurred whenever a pad
was moved.

Revision history for this message
Mumia W. (mumia-w-18) wrote :

This patch works with trunk and fixes the disk-trashing problem.
Also included is a change from
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576770

fixing a bug that made all pads blank and non-editable.

Changed in xpad:
milestone: none → 4.2
assignee: nobody → Sergei Riaguzov (riaguzov)
tags: added: performance
Changed in xpad:
importance: Undecided → Medium
Revision history for this message
niknah (hankin0) wrote :

Here's an updated patch to work with the current version in ubuntu 13.04, xpad 4.1

The patches here introduces a small bug. The contents are not saved if you exit xpad within 4 secs after you edit it. Say you were making a last edit before logging out.

I have made a fix for this in the patch.

summary: - Drive thrashes during pad moves
+ Busy harddisk while moving pad
Changed in xpad:
assignee: Sergei Riaguzov (riaguzov) → Arthur Borsboom (arthurborsboom)
Revision history for this message
Arthur Borsboom (arthurborsboom) wrote : Re: Busy harddisk while moving pad

Hi Mumia and Niknah,

Thanks for helping out on developing fixes for Xpad.
@Niknah, before I start testing, should this patch also resolve the 'write on keypress' issue?

summary: - Busy harddisk while moving pad
+ Busy harddisk while typing or moving pad
Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

I confirm I see a huge amount of disk I/O when typing, moving a pad, or moving the mouse cursor. There is also a relatively high CPU load for such simple actions.

Implementing patch on private branch to test the effect of the patch.

Changed in xpad:
status: New → Confirmed
Revision history for this message
niknah (hankin0) wrote :

Yes, the patch fixes my other bug report. 'write on keypress'

Thanks Arthur!

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

I have tested the patch.

Since I have an SSD and no HD led, I don't notice this behaviour, but according to iotop the patch reduces the disk I/O a lot.
So therefore, the patch has been implemented in the main branch.
If the regression tests before the release do not show any negative side effects, the patch will be included in version 4.2.

Thanks a mile for writing this patch!
Keep up the good work, and don't hesitate to suggest more improvements!

Changed in xpad:
status: Confirmed → Fix Committed
Changed in xpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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