![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Connection performance improvement?
A change was made in calibre 2.3 to reduce the time "waiting for calibre" before metadata is transferred. A user with 18 thousand books on his device (!) said that the time went from 12 minutes to 2 minutes.
The amount of improvement is directly related to the number of books on the device. There was a check that was done ((books on device) squared) number of times. For 18,000 books that is some 320 million checks. Five thousand books is 25 million checks. Is anyone else seeing an improvement? I am wondering how many books must be on the device to make the change apparent. |
![]() |
![]() |
![]() |
#2 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Not really noticeable with 5000 books. I wouldn't have know there was a change if you hadn't posted this.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 472362
Join Date: Jan 2013
Location: France
Device: Galaxy Note II & Note Pro 12.2, PocketBook Touch Lux, PB Touch,Odysse
|
Time of connection has been considerably reduced using Calibre 2.3, compared to 2.2.
I'm the user you talk about ![]() But, unhappily, 2.4 release has broken all your changes. Time of connexion is twice worst than in 2.2 : 26 minutes for initial connection, and the same after transfert of 38 books. You told me that it would be fixed in 2.5. BTW thank you for your quick answer. Edit : When writing this message, I hadn't read the pinned message. Thanks for all Last edited by PO40600; 09-29-2014 at 07:37 AM. |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 10
Karma: 10
Join Date: May 2011
Device: Galaxy N-8000, Moto G - KitKat, Xolo 4.2, Nook Classic, Nook Color
|
![]()
I have just over 3000 books on my Galaxy GT-800 tablet. Calibre library has over 5600.
The initial steps have become fast compared to Calibre 2.4 (timings: Get Device Information (12s), set library information (1s) and Get List of Books on Device(46s) and Sending Metadata to Device (27m 16s for 622/2280) ) The metadata update is very slow. (roughly 15 items per 50 seconds) Q. Can't this metadata update happen only for changed items? Or optionally can the user turn this feature off? Best wishes. |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Now, to the timings. There is something very wrong. As noted above, metadata is sent to the device only if has changed. For my "production" tablet (Nexus 7 2012) with 1250 books on it, if the metadata hasn't changed then the times you mention for me are: - Get device info: 2 seconds - Set library info: 0 seconds - Get list of books: 7 seconds - Send metadata: 1 second. Note that metadata is considered changed if the last_modified date for the metadata changes. There are several ways that the date can change including editing templates of custom columns or requesting that all metadata be backed up. It can change for books if you change the case of a tag or change a series. Get device info should not take 12 seconds. The only thing calibre does is read its cache file and send a few packets to CC. The long time makes me wonder if you are running into memory problems on the calibre machine, causing reading the cache to be very slow. As an experiment I changed the template for a custom column, which changed the last_mod time for every book. The time to send metadata was 12 minutes, or 0.58 seconds per book. I did it twice and got the same number each time. My number is consistent with what others have told me they see. It is 5 times faster than you are seeing. The question is why? Again, I wonder if calibre is memory constrained. If it is then the process of determining what metadata to send would be going to virtual memory, something that would slow down everything. What are the specs of the computer you are using? If you are running windows, are you running the 64-bit calibre? I also would wonder about the speed of your wifi, but slow wifi would not explain the long get device info times. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
I have noticed one thing. It does the "sending metadata to calibre" where it sends all of the metadata a lot more often.
|
![]() |
![]() |
![]() |
#7 | |
Member
![]() Posts: 10
Karma: 10
Join Date: May 2011
Device: Galaxy N-8000, Moto G - KitKat, Xolo 4.2, Nook Classic, Nook Color
|
Quote:
Rating: 4.6 Windows Performance Index CPU 5.7 Memory 7.1 Graphics 4.6 Disk transfer Rate 5.9 Installed RAM: 8 GB (7.68) System Type: Windows 7 Professional with SP1. 64bit Calibre 2.5 64bit Physical Memory: 7860MB Cached: 2806MB Available: 4890MB Free: 2100MB Number processes: 85 Wifi: 50MBPS Hope some of this may help you to make sense ![]() thank you! |
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() Posts: 10
Karma: 10
Join Date: May 2011
Device: Galaxy N-8000, Moto G - KitKat, Xolo 4.2, Nook Classic, Nook Color
|
Quote:
(all MB) 7860 total/2953 cached/4311 available/1372 free Processes: 92 Commit (GB) 3/15 Kernel Memory (MB) 407 paged/142 Non paged The send metadata is again very slow. More than 2 seconds per item. Which is more than double the amount of time it takes for your Nexus. The memory picture remains essentially the same and the number of processes is 91. |
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
There are several things that force CC to resend metadata to calibre
Does any of this match what you are seeing? |
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
I am seeing things that are similar to what you say I should expect, but not exactly the same. 1) If I change a custom column so that all metadata is impacted, I will get a full metadata transfer from C to CC the next time I connect on both machines. 2) As a subset of this, if I change a few books, they will all resend their metadata on the next connect. 3) If I change the ePub, it will get sent on the next connect, but only once. Not once per machine. 4) Each time I connect on either machine for the first time after connecting on the other machine, I get the "asking calibre what metadata it needs" for about 20 seconds, then I get the "sending metadata to calibre" where it sends all of the metadata for my whole library. This takes over a minute. Then it resends whatever metadata has changed on the other machine. 5) If I then connect on either machine where I haven't connected on the other machine, I get the "asking calibre what metadata it needs" for about 20 seconds. Then it sends whatever metadata has changed on the this machine. This might not be a new issue. Connections do seem a lot slower these days, but I can't tell for sure when it started. I haven't bought it up because it was just an inconvenience, and I didn't wan't to bother you if everything was still working. I also suspected it might have something to do with my large library |
|
![]() |
![]() |
![]() |
#12 | ||||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
![]() This too is as desired, but I hadn't actually tried it. What it means is that dropbox is preserving file modification dates for the formats as it syncs them. This is good. Quote:
The only way I can see this happening is if calibre's cache of the metadata on the device is not being saved properly. If this happens then the first time you connect after starting calibre CC will send all metadata. It won't send it again until you quit and restart calibre. Is this what is happening? I looked at calibre's code and on a mac the cache is in "~/Library/Caches" where the ~ character means your home folder. Does this folder exist? Is it synced between the two machines? Quote:
Quote:
Last edited by DoctorOhh; 10-08-2014 at 03:53 AM. Reason: corrected 1st close quote |
||||||
![]() |
![]() |
![]() |
#13 | ||
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Just so you know, all the things that were as expected were expected by me as well. I included them for completenessness (is that a word) and so you would know what was working.
Quote:
Quote:
Is anyone updating their book files outside of Calibre? If not, this should work. |
||
![]() |
![]() |
![]() |
#14 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Am I correct in assuming that the libraries on the two machines are in fact the same library, synced by dropbox? In particular, they share the same metadata.db file? And that metadata.db file has not been "conflicted"? If so then I can't find any reason that the following steps shouldn't work
Quote:
|
||||
![]() |
![]() |
![]() |
#15 | ||
Calibre Companion Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
Quote:
Got it. Well, its still worth having the automatic epub update, so I will live with the longer connect times. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
That's an improvement! | caheaton | Kobo Reader | 8 | 04-11-2011 01:04 PM |
call for testers from source: dramatic performance improvement | chaley | Calibre | 3 | 12-15-2010 09:45 AM |
Wireless internet connection frustrating IDS connection | Socrates | iRex | 8 | 10-21-2009 12:46 PM |