client icon indicating copy to clipboard operation
client copied to clipboard

Client 1.5.1 on Mac 10.9.1: High CPU load

Open Dani3lSun opened this issue 12 years ago • 17 comments

Since upgrading, the new Sync Client 1.5.1 produces a very high CPU load (60-100%). Then looking at Little Snitch Firewall, the client downloads many files, but the local copy is on latest version...then looking atthe owncloud client log, the logfile has many entries such as: the current folder is currently syncing and SocketApi: Sync state changed

Dani3lSun avatar Feb 14 '14 17:02 Dani3lSun

After deleting the hole local owncloud folder and the settings in ~/Library/Application Support/ownCloud and configuring all from scratch, the problem is the same...high cpu load and many many connections. switching back to 1.5.0 client solves the problem for now.

Dani3lSun avatar Feb 14 '14 19:02 Dani3lSun

Same issue here, CPU load constantly around 80%.

wagnerand avatar Feb 15 '14 12:02 wagnerand

Related to owncloud/core#7217?

danimo avatar Feb 15 '14 14:02 danimo

I still got the same problem since client 1.5.0 under OS X 10.9.1. With 1.5.1 no changes... see also my post here: https://github.com/owncloud/mirall/issues/1314#issuecomment-34538622

screenshot 2014-02-15 um 22 13 26

sgcoffee avatar Feb 16 '14 09:02 sgcoffee

I have the same problem. The high CPU load seems to stem from permanent syncing attempts, but all files are in sync. After a "successful" sync of 0 files (because none have changed), the syncing immediately starts over again. The log looks like this:

... (one entry for each file saying INSTRUCTION_NONE) ...

02-16 20:19:45:629 _csync_merge_algorithm_visitor: INSTRUCTION_NONE file: kurzprofil.pdf 02-16 20:19:45:629 csync_reconcile: Reconciliation for remote replica took 0,00 seconds visiting 63 files. 02-16 20:19:45:629 Transaction Start "checkConnect" 02-16 20:19:45:629 Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid") 02-16 20:19:45:630 QVariant Mirall::MirallConfigFile::getValue(const QString&, const QString&, const QVariant&) const 02-16 20:19:45:630 QVariant Mirall::MirallConfigFile::getValue(const QString&, const QString&, const QVariant&) const 02-16 20:19:45:630 N------N Network Limits changed! 02-16 20:19:45:630 Transaction Start "All Finished." 02-16 20:19:45:630 CSync run took 1174 Milliseconds 02-16 20:19:45:771 [PROGRESS] progressed 0 bytes in 0 files in msec 28 02-16 20:19:45:771 -> CSync Finished slot with error false warn count 0 02-16 20:19:45:772 OO folder slotSyncFinished: result: 2 02-16 20:19:45:772 Folder in overallStatus Message: Mirall::Folder(0x10866ea20) with name "ownCloud" 02-16 20:19:45:773 Sync state changed for folder "ownCloud" : "Success" 02-16 20:19:45:773 SocketApi: Sync state changed 02-16 20:19:45:774 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 02-16 20:19:45:774 <===================================== sync finished for "ownCloud" 02-16 20:19:45:774 FolderWatcherPrivate::callback by OS X 02-16 20:19:45:775 void Mirall::FolderWatcher::changeDetected(const QString&) "/Users/bvp/ownCloud/" 02-16 20:19:45:777 Schedule folder "ownCloud" to sync! 02-16 20:19:45:974 XX slotScheduleFolderSync: folderQueue size: 1 02-16 20:19:45:985 Folder in overallStatus Message: Mirall::Folder(0x10866ea20) with name "ownCloud" 02-16 20:19:45:986 Sync state changed for folder "ownCloud" : "SyncPrepare" 02-16 20:19:45:986 SocketApi: Sync state changed 02-16 20:19:45:986 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 02-16 20:19:45:987 *** Start syncing 02-16 20:19:45:987 ==> returning exclude file path: "/Applications/owncloud.app/Contents/Resources/sync-exclude.lst"

(after that, all files are checked again, and so on...)

This can go on for hours, but sometimes, it stops by itself, and the client resumes normal operation, producing a short network connection every 30 seconds. But even from that state, the erroneous syncing can start again. Rstarting the client sometimes helps, but mostly does not.

On the server side, I get PROPFINDS for each file, answered by a HTTP 207.

splintering avatar Feb 16 '14 19:02 splintering

Same issue over here.

I'd like to downgrade to 1.5.0 but I can't find an official download for it. Does anybody know where it can be downloaded?

guardiande avatar Feb 17 '14 07:02 guardiande

@splintering thx, the log helps. These are the important lines:

02-16 20:19:45:774 FolderWatcherPrivate::callback by OS X
02-16 20:19:45:775 void Mirall::FolderWatcher::changeDetected(const QString&) "/Users/bvp/ownCloud/"
02-16 20:19:45:777 Schedule folder "ownCloud" to sync!

The file system notifier gets a notification about changes in it seems the top syncing folder (true?) and immediately schedules the folder again. I will investigate.

dragotin avatar Feb 17 '14 09:02 dragotin

Yes, this is true, it is the top syncing folder. Btw, it is not shared with Dropbox or something like that, it is exclusive to OC. At first I thought it might be some OSX problem (status files like .DS_STORE being updated etc.), but on the other hand I had 1.4.2 running smoothly, so the bug must have been introduced in the 1.5 branch (I skipped 1.5.0 , though).

Thanks for looking into this!

splintering avatar Feb 17 '14 10:02 splintering

Hey guys,

I can send you a log file tonight. I got this behavior since version 1.5.0. It was my very first installation of owncloud. And it is only a local server with local data (no integration of Dropbox etc...)

Thank you Stefan

Von meinem iPhone gesendet

Am 17.02.2014 um 11:01 schrieb splintering [email protected]:

Yes, this is true, it is the top syncing folder. Btw, it is not shared with Dropbox or something like that, it is exclusive to OC. At first I thought it might be some OSX problem (status files like .DS_STORE being updated etc.), but on the other hand I had 1.4.2 running smoothly, so the bug must have been introduced in the 1.5 branch (I skipped 1.5.0 , though).

Thanks for looking into this!

— Reply to this email directly or view it on GitHub.

sgcoffee avatar Feb 17 '14 10:02 sgcoffee

I also got this issue. There is a constant loop of FolderWatcher events resulting in constant syncing.

flavorplus avatar Feb 17 '14 14:02 flavorplus

Same issue here. Very high cpu load even when there aren't any file to sync

mtbf99 avatar Feb 17 '14 19:02 mtbf99

I believe this patch should fix the issue: https://github.com/owncloud/mirall/pull/1437

shadone avatar Feb 17 '14 21:02 shadone

I have this issue too and it is burning through my battery life. When do we have this fix released? Can I do anything to work around it?

karlmikaelskar avatar Feb 18 '14 18:02 karlmikaelskar

Downgrading helped for me: https://download.owncloud.com/desktop/stable/ownCloud-1.5.0.1811.dmg

guardiande avatar Feb 18 '14 18:02 guardiande

@guardiande Thx, downgrading helped here, too. @shadone Is there any way to know when your patch will be in a nightly build? Thx for patching, btw. :-)

splintering avatar Feb 18 '14 23:02 splintering

@splintering Unfortunately my patch is not merged into owncloud client just yet (due to legal reasons from my side - pending Contribution Agreement verification from my employer). Devs are aware of the issue though, maybe they fix it themselves if I take too long.

shadone avatar Feb 18 '14 23:02 shadone

Fixed with commit e4965ab06b548def1fa3ed4a89cab48db4a7f9fc This fix will come with release 1.5.2 which will come soon.

dragotin avatar Feb 20 '14 16:02 dragotin