CPU Usage quite high
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%...

I believe this is not normal and I hope it is possible to fix this!
thanks,
How many files/directories/GB are we talking about here?
Roughly 15GB
To me this looks like a combination of two factors
- 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
- 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?
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.
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?
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 'éèÎç'?
No, CSync Finished slot with error false means there were no errors, so it's actually fine.
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!
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 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.
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 no idea about android, sorry.
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 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.
Glad to hear, thanks for your dedication and work!
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?
I wouldn't know however the problem still persists in 5.0.5.
@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?
no. There are about 15 normal sized subdirs (including .), 3 of medium size and one large.
I have everything organized in subdirectories of varying sizes .. so there's no direct files in my top sync directory ..