Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2015, 07:25 AM   #1
johnelle
Zealot
johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.
 
Posts: 119
Karma: 2137668
Join Date: Mar 2015
Location: Groton, MA
Device: Kindle app on Samsung Tab
Pushed it over the edge...now what?

Let me say up front that yes I am using Calibre on the LAN which I know is unsupported but it seems actually fairly common.

I have been merrily loading books and it was never very fast but I could at least make progress working in the background. However in the last week I seem to have fallen over some cliff--a metadata update on one book takes 15 minutes or more. Its really unusable at this point.

Code:
Calibre V2.45
Lan Write Speed (90Kbits/sec)
Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
16GB Memory
Windows 10
It almost seems the db has hit some limit. Is there any way to reorganize the db? Any kind of optimization that will fix this serious problem? This isn't just a "gee I would like it to startup faster" issue--its really not usable any more.
johnelle is offline   Reply With Quote
Old 12-23-2015, 07:30 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Have you tried doing a "Calibre Library / Library Maintenance / Check Library" operation?
HarryT is offline   Reply With Quote
Old 12-23-2015, 08:20 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You have probably exceeded some network cache size limit, either for the db or for the directory structure, causing the system to thrash. If this is the case there isn't anything that calibre can do.

I know you don't what to hear this, but using calibre on network file systems is simply asking for disaster. Some day things *will* go very badly, potentially destroying your library.
chaley is offline   Reply With Quote
Old 12-23-2015, 01:10 PM   #4
johnelle
Zealot
johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.
 
Posts: 119
Karma: 2137668
Join Date: Mar 2015
Location: Groton, MA
Device: Kindle app on Samsung Tab
Yes well

I did run the library check and it found no errors.

Performance remains the same. I moved to a machine with a faster connection (about 300K bits/sec write) and it performs the same. I can look for network settings but I suspect it actually is the DB since the performance is bad even on this larger machine with a few less hops to the router.

I understand the risks but in reality all you lose is the metadata. The important data (i.e. the book contents) will still be there. The tool is free so I guess I can't complain but in this day and age to not be able to support network storage seems a bit arcane.
johnelle is offline   Reply With Quote
Old 12-23-2015, 02:53 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by johnelle View Post
Performance remains the same. I moved to a machine with a faster connection (about 300K bits/sec write) and it performs the same. I can look for network settings but I suspect it actually is the DB since the performance is bad even on this larger machine with a few less hops to the router.
If a local cache starts thrashing then performance will fall by orders of magnitude. That cache might be a db cache, a directory structure cache, a disk block cache, a connection cache, or any number of other things.
Quote:
The tool is free so I guess I can't complain but in this day and age to not be able to support network storage seems a bit arcane.
You might have a point, but in the end it is irrelevant. Calibre is how it is and NASes are how they are. You can accept the risk and the performance problems, or you can move your library to a local disk and if you want sync it to your NAS. Your choice.
chaley is offline   Reply With Quote
Old 12-23-2015, 02:53 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@johnelle - calibre is a database application, to function on a network means it needs to have a robust client-server architecture, shared storage devices (NAS's, servers etc) don't provide that out of the box. Furthermore would have to work on a number of different operating systems (OS/X, Windows, Linux) and file systems (HFS, NTFS, Ext, NFS etc)

FWIW - Kovid is working on a new calibre server component that may address some/all of your issues, at guess I would say we'll see it next year. Kovid won't release it until he is confident it works reliably, and I anticipate he will have a beta testing phase.

Meanwhile, have you considered using the CALIBRE_OVERRIDE_DATABASE_PATH feature, see ==>> Environment variables. Or using symbolic links at the server that target the metadata.db file(s) on the client that does the updating. The efficacy of either will depend on what you're trying to achieve by having the library on a server.

BR
BetterRed is online now   Reply With Quote
Old 12-24-2015, 07:09 AM   #7
johnelle
Zealot
johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.johnelle ought to be getting tired of karma fortunes by now.
 
Posts: 119
Karma: 2137668
Join Date: Mar 2015
Location: Groton, MA
Device: Kindle app on Samsung Tab
Thanks for the environmental setting...that made it more straightforward to implement the local DB solution. Big difference. Haven't quite got the sharing working on other machines yet but eventually I will beat them into submission like anything windooz.
johnelle is offline   Reply With Quote
Old 12-24-2015, 03:32 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by johnelle View Post
Thanks for the environmental setting...that made it more straightforward to implement the local DB solution. Big difference. Haven't quite got the sharing working on other machines yet but eventually I will beat them into submission like anything windooz.
@johnelle - If you want those other machines to update the library concurrently -- forget it; at some point you'll end up with a corrupt library database.

The database software used by calibre (SQLite) is designed for a single user environment. It's the same software Mozilla and Google use in their browsers, there's a rumour that MS uses it in Windows 10

If you were to run calibre-server on the other machines -- it's currently read only -- then you could keep a copy of the database on those machines and use the environment variable to refer to it.

The 'update' machine would put a copy of the database file on the server when its instance of the calibre library manager closes, and the other machines would take a copy of that file when their instances of calibre-server starts.

NB - I have never tried this. You might need to have the 'update' machine write a 'semaphore' to the server before it copies the database there and remove it after it's done copying. The other machines would look for the 'semaphore' before taking a copy and starting calibre-server and wait if the 'semaphore' is present, or tell the user to try again in a few minutes.

BR

Last edited by BetterRed; 12-25-2015 at 03:28 AM.
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
new update pushed timezone Amazon Kindle 4 05-04-2012 05:46 AM
Touch New Firmware being pushed - 1.9.6 Psyke Kobo Reader 0 07-14-2011 10:29 PM
Reports of 3.1 being pushed out for automatic upgrade Tiersten Amazon Kindle 33 02-20-2011 10:37 AM
Pushed over by Amazon dilerniapub General Discussions 3 10-05-2010 12:10 AM
Next page button pushed in too far? jurat Amazon Kindle 5 06-02-2010 03:59 AM


All times are GMT -4. The time now is 04:41 AM.


MobileRead.com is a privately owned, operated and funded community.