Dropbox is taking too much CPU time. How can I fix it?

Good shout with using cpulimit.

I found this could be simplified (when logged as root) to

cpulimit -e dropbox -l 10

where -l specifies percentage of CPU. Note this is for total CPU over all cores, so a dual core would have a limit of 200

Output:

cpulimit -e dropbox -l 10
Process 2641 detected

Dropbox computes a hash of all files that it's going to sync, it uses it both to determine if they changed and to avoid uploading content that is already in their cloud (another customer has the same file).

Calculating hashes takes CPU power. It's usually noticeable at login.


Perhaps there is more to it than the problem of hashing.

One thing that I find strange is that with lsof | grep dropbox I do not see many open files under ~/Dropbox for the dropbox process.

What I did was to aptitude purge all packages related to dropbox, rm -r the 3 ~/.dropbo* folders (but not the ~/Dropbox folder), and then enable partner repositories and aptitude install nautilus-dropbox. Whether this procedure is problematic I do not know.

After a while (an hour?) with the new install and with dropbox CPU load I no longer see the load, so apparently the problem is solved. Perhaps the purging has helped or I just had a very large batch of files that needed updating.

Tags:

Cpu

Dropbox

12.04