ubuntuone-syncdaemon hashing slows down session startup

Bug #1044942 reported by Sebastien
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntuone-client (Ubuntu)
Triaged
High
Ubuntu One Client Engineering team

Bug Description

ubuntuone-syncd is usually hashing during the first minutes of my desktop sessions.

For some reasons (GMA500 video card not supported https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/) my laptop is "naturally" running slowly, especially just after login when the unity desktop is starting.

The "top" command shows me that ubuntuone-syncdaemon is consuming 100% of my CPU during and still after the desktop startup, which I suppose contributes greatly to the impression of slowness I have

I see no reason why a synchronization daemon should have same priority that processes of the user interface and I think the user experience could be improved by changing the process niceness.

I've tried and it's a bit better, that's why I wish the line "os.nice(19)" could be added in the ubuntuone-syncd python script.

Changed in ubuntuone-client (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
Revision history for this message
Sebastien (tuzisan) wrote :

This screenshot taken just after desktop login shows a system load greater than 4 while the laptop has only 2 cores, and ubuntuone-syncdaemon hashing. Before I modified its nice value to 19, it was 0 and interactivity was really bad.

Revision history for this message
Sebastien (tuzisan) wrote :

This screenshot shows that few minutes after having opened the desktop session, after startup application have initialized, ubuntuone-syncdaemon is still hashing and consumes lot of resources.

The size of files in my Ubuntu One account is about 300M each, which is a possible explanation for such a long time spent in hashing. However I tried this command to get a hash value of one of these files on the same computer:

$ time sha1sum 300.mega.bytes.file
9ee2e5689ece78a5644aa357597473cb127a7e4c 300.mega.bytes.file

real 0m12.493s
user 0m3.976s
sys 0m8.189s

And I get a result in 12s, which makes me think that the right solution for ubuntuone-syncdaemon could be not only executing with a higher nice value, but also using a less time consuming hashing algorithm.

Cheers.

Revision history for this message
JohnRB (rbxtnc) wrote :

I have the same issue, ubuntuone-syncd uses an extreme amount of cpu for the first few minutes after login. I am running and Intel NUC D54250WYK.

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.