client icon indicating copy to clipboard operation
client copied to clipboard

CPU Usage quite high

Open larivierec opened this issue 13 years ago • 38 comments

Good afternoon,

I'm not sure whether this is normal or not but my windows 7 system uses 25% of my CPU all the time. Sadly it's even worse on my laptop which runs Ubuntu 12.10 almost at 96%...

image

I believe this is not normal and I hope it is possible to fix this!

thanks,

larivierec avatar Mar 16 '13 17:03 larivierec

How many files/directories/GB are we talking about here?

danimo avatar Mar 18 '13 14:03 danimo

Roughly 15GB

larivierec avatar Mar 18 '13 14:03 larivierec

To me this looks like a combination of two factors

  1. You are having Microsoft Office files open on another hard disk (#427), so while the file is open on the other computer, it will constantly try to resync. We are investigating this issue atm
  2. When doing a sync, the client currently iterates over all local files.

Can you try to exclude 1. first by closing all office files shared with you?

danimo avatar Mar 18 '13 15:03 danimo

Hello again,

I would like to thank you for your prompt responses and secondly my windows computer which ownCloud stays always at about 25% is not currently running the office application at all, for the second point, i believe it does because i'm only syncing a single folder which has all my directories in it.

My laptop is using Ubuntu OS and does not have Microsoft products installed on it, also, like my windows computer its syncing one giant folder which then has all its subdirectories.

larivierec avatar Mar 18 '13 15:03 larivierec

Right, your Laptop does not have any Microsoft Products installed, but your Windows Computer probably has. Anyway, it was just an idea because of the popup that indicates the arrival of a new .docx file.

Can you run the client with --logwindow on linux and check what happens while the CPU is peaking?

danimo avatar Mar 18 '13 15:03 danimo

its as-if it constantly rescans my folders, this is a snippet of near the end of the log

CSync run took 48775 Milliseconds

03-18 12:05:13:528 -> CSync Finished slot with error false

03-18 12:05:13:528 Starting Event logging again in 2000 milliseconds

could it maybe be this? im not sure, but it constantly repeats the same process (which is normal for sync software) but does it get errors because of special characters like 'éèÎç'?

larivierec avatar Mar 18 '13 16:03 larivierec

No, CSync Finished slot with error false means there were no errors, so it's actually fine.

danimo avatar Mar 18 '13 16:03 danimo

I really dont know what it is all i know is it takes lots of juice (battery wise) if theres anything else i could provide to you let me know!

larivierec avatar Mar 18 '13 16:03 larivierec

I have the same problem on Ubuntu 12.04 and owncloud 4.5.8. I do have over 40k files in the cloud (mostly pictures wich take arround 50-60GB of space) and my --logwindow command starts the log and continuesly logs a lot of data. I tried to store it in a file with the option provided on the commandline but the file got huge in seconds so i stoped if. If you like i can rerun the sam proccess and post the log somewhere.

khartahk avatar Mar 22 '13 21:03 khartahk

@khartahk No need to do anything. The reason is that we do not store the state of the local file system, even though we could. So every time we check for changes on the server, we also do a local file tree walk. We are looking into persisting the database state in future releases.

danimo avatar Mar 22 '13 21:03 danimo

Thank you for this info. I guess i'll just turn it on when I add new files on the computer. One more question: is this the same problem for android app? If so wouldn't it be best if for android only the folder you are inn and no chjildren would be searched and synced on demand or on folder open. Because right now the app is quite without usefull application in real life usage. At least for me. It actualy never finishes to sync because it probably tries to go through all the files.

khartahk avatar Mar 22 '13 21:03 khartahk

@khartahk no idea about android, sorry.

danimo avatar Mar 22 '13 22:03 danimo

I'd think that this can't be good for the fans or the CPU in terms of "wear and tear". Here's my vote for a higher priority on this issue.

mkormendy avatar Mar 29 '13 22:03 mkormendy

@mkormendy You are right about pausing of course, but it's still inconvenient. Anyway, there's no use in voting. We know our priorities very well. Rest assured it's not something we are taking easy.

danimo avatar Mar 29 '13 22:03 danimo

Glad to hear, thanks for your dedication and work!

mkormendy avatar Mar 29 '13 23:03 mkormendy

I have the same issue, being on Linux. I noticed the following in the log:

There are astronomically high phash values, and at some point they start getting negative, like here

9221140125934053151 -9210697085773162064

Is this perhaps an overflow?

ghost avatar Apr 25 '13 19:04 ghost

I wouldn't know however the problem still persists in 5.0.5.

larivierec avatar Apr 29 '13 03:04 larivierec

@JuangDse no, this is neither a problem nor the reason for the high resource consumption

I my assumption correct that if you have that high load there are a lot of files in the top sync directory, not in sub folders in the sync dir?

dragotin avatar Apr 29 '13 07:04 dragotin

no. There are about 15 normal sized subdirs (including .), 3 of medium size and one large.

ghost avatar Apr 29 '13 07:04 ghost

I have everything organized in subdirectories of varying sizes .. so there's no direct files in my top sync directory ..

mkormendy avatar Apr 29 '13 14:04 mkormendy