03-06-2022, 04:21 PM | #31 |
Plugin Developer
Posts: 6,331
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
I was thinking that it might be more useful to BR or chaley actually, since they know more about library structure than I do. I was unclear.
That said, I did download it and try it in my Win10 Cal5.38 64bit on an SSD. Switching between VL or directly between VM views with this (nearly) empty test library is basically instant for me. jnikkir's CPU (reported earlier) is a 2017 model according to google, that shouldn't be old enough to make that much difference. Not unless win11 on that hardware is a slug. I remember past windows 'upgrades' that made older hardware basically unusable. If it were me, I'd try reinstalling Calibre (and making sure you have 64bit) and rebooting the computer if you haven't already. Not because I have a reason, just because it's a reflex. |
03-06-2022, 04:31 PM | #32 |
Custom User Title
Posts: 8,644
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I would also consider checking hard drive health and running a memtest.
|
Advert | |
|
03-06-2022, 05:28 PM | #33 | |||
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
Quote:
And what owb suggests. BR |
|||
03-06-2022, 09:19 PM | #34 | |||||
Connoisseur
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
|
Okay, so many suggestions -- thank you!! They took me some time to get through, but here's what I've done:
Quote:
Quote:
Quote:
Quote:
Quote:
Gonna PM my library to BR.... |
|||||
03-07-2022, 01:05 AM | #35 |
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
jnikkir's library is OK in Safe Mode here - maybe a Win 10 v 11 thing.
I put the library on my 1TB internal SATA HDD - the VM switch times on the library (13 books and a single sort column) were laggy - much slower than VM switch times for bigger libraries with multiple sort columns on the same device. But here's the rub, VM switching on jnikkir's library was also rattly - I could hear disk r/w heads moving - that's not happening on my bigger, and arguably more complex libraries. On a whim, I put a copy of the library onto my 256GB SSD - result, VM switching near instantaneous. I admit that I've never been an SSD fan, not because there's anything wrong with them. But I'm not a speed freak and the claims for SSDs have IMO been over-hyped --- but this is the most dramatic effect I've seen from an SSD. So, I tried moving the metadata.db file from the library folder on the rattly drive to the SSD and dropping a symlink to it in the library folder on the rattly drive. Guess what, less laggy and no rattling. Which seems to indicate that the disk I/O I can hear on the rattly drive is related to the metadata.db file - which surprises me. I can't figure out why this tiddly little library should be rattling the disk drives cage but there's no doubt it is. BR |
Advert | |
|
03-07-2022, 01:44 AM | #36 |
Custom User Title
Posts: 8,644
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'd be curious to see what FileActivityWatch reports.
|
03-07-2022, 04:41 AM | #37 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If you send both the library and the calibre configuration folder (zipped up) to me then I will take a look. However, all I have is an SSD so given BetterRed's experience I might not see the problem.
Have you tried running Library / Library Maintenance / Check library? It is possible that the database is very fragmented. |
03-07-2022, 05:26 AM | #38 | |
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Still quite laggy on a rather old Flash thumb drive - no sound effects though BR |
|
03-07-2022, 05:42 AM | #39 |
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
And I tried it in a vanilla portable + View Manager plugin installed on the HDD - still red rattler and laggy
Sydney hasn't seen any blue sky like that for weeks. BR |
03-07-2022, 12:13 PM | #40 |
Plugin Developer
Posts: 6,331
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
It boggles my mind that a <1m DB file could cause physical disk access at all past the initial read. Surely it all fits in disk cache??
EDIT: Unless there's something that's cause write/flushes to occur? Last edited by JimmXinu; 03-07-2022 at 12:15 PM. |
03-07-2022, 01:55 PM | #41 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I agree. It "smells" like there is something that touches the disk in some other way that isn't cached, such as fetching file attributes. Another thought is the same as yours: something is telling the OS to flush the cache, perhaps as part of a transaction commit.
|
03-07-2022, 02:18 PM | #42 | ||||
Connoisseur
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
|
Quote:
Quote:
Quote:
Quote:
Sending those files to Chaley! |
||||
03-07-2022, 03:39 PM | #43 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I think I found what is happening but I have no idea why. Action Chains is calling gui.save_state many times each VL switch. Each call writes to the database, and might trigger a .25 second delay in Action Chains.
Here is a log that shows the calls. I added a print('save state XXX') that appears each time it is called. Someone else (@capink?) must look at why it is being called so often. FWIW: I think that the view manager setup should include the VL for each of the views so that clicking the tab and selecting the view in the View Manager do the same thing, |
03-07-2022, 03:57 PM | #44 | |
Connoisseur
Posts: 51
Karma: 198
Join Date: Feb 2022
Device: Kindle PW5/11th Gen
|
Quote:
Edit: Now that I think about it, does this account for the lag even when Action Chains wasn't doing anything, though? Just manually changing views without clicking on VL tabs has a lag too... Last edited by jnikkir; 03-07-2022 at 04:07 PM. |
|
03-07-2022, 04:06 PM | #45 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extremely slow in long files | arspr | Editor | 11 | 06-26-2014 06:22 AM |
[Old Thread] Why is Calibre so slow sending ebooks in emails? | rfog | Calibre | 10 | 05-17-2013 01:42 PM |
This long thread title is intended to reflect my thought's incredible complexity. | Prestidigitweeze | Lounge | 11 | 04-20-2012 06:28 AM |
[Old thread] Calibre really slow | spaze | Calibre | 15 | 03-24-2011 04:04 AM |
[Old Thread] Slow to 'get list of books on device' for Kindle DX | tklaus | Devices | 4 | 03-10-2011 12:11 PM |