Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-13-2025, 05:07 AM   #46
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 12,761
Karma: 236462758
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Karellen View Post
It's not a general and widespread problem. Seems a problem on your system. I am a Windows 10 and now 11 user and haven't experienced the problem you describe.
Me either.
Sirtel is offline   Reply With Quote
Old 03-13-2025, 05:21 AM   #47
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,495
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by abrogard View Post
Here we are. Safe mode. No Firefox. Still takes forever.
And here is the process explorer output.
I did get the library onto another machine and ran it there.
No trouble at all.

So without doubt it is a Windows problem or, we could say I suppose, a possible windows/calibre conflict. There's not just me experiencing this.
Anyway here is the process explorer output for that session in safe mode.
It'll be lovely if it reveals something to someone somewhere, this is a real hassle.
The process explorer output confirms it's not a 3rd party program sticking its oar in, and the fact that all's well on another system tells us that the library isn't corrupted. Which leaves us with Windows… or hardware. My money's on the latter. If you have a portable HDD, move the library onto it and see what happens.

BR
BetterRed is offline   Reply With Quote
Old 03-13-2025, 05:22 AM   #48
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by Karellen View Post
It's not a general and widespread problem. Seems a problem on your system. I am a Windows 10 and now 11 user and haven't experienced the problem you describe.
sure. but there's a thread here about it somewhere from another guy. i was there for a while but i was butting in on their conversation so i started my own.

and how many users who never resort to forums we don't know, of course. same with all apps.
abrogard is offline   Reply With Quote
Old 03-13-2025, 05:26 AM   #49
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by BetterRed View Post
The process explorer output confirms it's not a 3rd party program sticking its oar in, and the fact that all's well on another system tells us that the library isn't corrupted. Which leaves us with Windows… or hardware. My money's on the latter. If you have a portable HDD, move the library onto it and see what happens.

BR
can you tell how you tell from the explorer output that its not the library? I'd just like to be able to read the explorer output intelligently myself. at the moment its just a list to me.

hardware? so use a portable hdd? like a usb hdd? I've got a number of them. I can try it on one of them.
abrogard is offline   Reply With Quote
Old 03-13-2025, 05:54 AM   #50
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,495
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by abrogard View Post
can you tell how you tell from the explorer output that its not the library?
I deduced it wasn't the library from what you posted, that I bolded in my reply:

Quote:
I did get the library onto another machine and ran it there.
No trouble at all.
Quote:
Originally Posted by abrogard View Post
I'd just like to be able to read the explorer output intelligently myself. at the moment its just a list to me.
I changed procexp17401303.txt to procexp17401303.csv, and opened it in nirsoft's CSVFileView did some column sorts (name and company)

Apart from a few familiar unattributed processes (registry, interrupts etc) everything else was Microsoft, calibre, or Sysinternals. I also booted my rig into Safe mode, ran calibre and had a look at a csv from process explorer - more or less identical to yours.

Quote:
Originally Posted by abrogard View Post
hardware? so use a portable hdd? like a usb hdd? I've got a number of them. I can try it on one of them.
Go for it

BR
BetterRed is offline   Reply With Quote
Old 03-13-2025, 06:36 AM   #51
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Apart from a few familiar unattributed processes (registry, interrupts etc) everything else was Microsoft, calibre, or Sysinternals. I also booted my rig into Safe mode, ran calibre and had a look at a csv from process explorer - more or less identical to yours.

Ah, right. Comparison with a known good. Fair enough. I was just wondering if there was any more to than that. Some known evil files or something.

Thanks for that.

Yep. I'll put it on a usb external - and copy it to the other internal, I have two on that machine. I'll test it all over the place.
abrogard is offline   Reply With Quote
Old 03-13-2025, 11:21 AM   #52
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,134
Karma: 78857258
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I wonder if using Process Monitor from SysInternals might provide some insight into file activity

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 03-13-2025, 12:03 PM   #53
sgmoore
Zealot
sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 642206
Join Date: Mar 2021
Device: Kindle Voyage
What sort of changes are you doing?

I got hit with an issue where I tagged a book without looking at what I was typing and without realising that my capslock was on. So the book ended up being tagged mYSTERY instead of Mystery.

Calibre then spent a long time updating the opf files for all the other books that had been tagged as Mystery to make them all say mYSTERY

So sometimes updating one book can affect lots of other records.
sgmoore is offline   Reply With Quote
Old 03-13-2025, 02:51 PM   #54
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,767
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by sgmoore View Post
What sort of changes are you doing?

I got hit with an issue where I tagged a book without looking at what I was typing and without realising that my capslock was on. So the book ended up being tagged mYSTERY instead of Mystery.

Calibre then spent a long time updating the opf files for all the other books that had been tagged as Mystery to make them all say mYSTERY

So sometimes updating one book can affect lots of other records.
But a case change is just 1 DB write. This is a Relational DB so the Tag table was the min change.
Dirty bit also gets set for all uses (that triggers the backup creation metadata.opf)
theducks is online now   Reply With Quote
Old 03-13-2025, 02:58 PM   #55
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 43,411
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Wouldn't the issue as suggested by sgmoore's example of having caps lock on be a one shot issue. After the change was made and everything was updated, that slowness would disappear unless something was triggering a change on every startup.
DNSB is offline   Reply With Quote
Old 03-13-2025, 05:43 PM   #56
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,767
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DNSB View Post
Wouldn't the issue as suggested by sgmoore's example of having caps lock on be a one shot issue. After the change was made and everything was updated, that slowness would disappear unless something was triggering a change on every startup.
I would think so.
OP have you looked at the file timestamps for metadata.opf in the book folder?
That might give a clue if these books are stuck in some weird update loop.
Does anyone know where the 'dirty' flag is kept? Maybe that is RO
theducks is online now   Reply With Quote
Old 03-13-2025, 06:22 PM   #57
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,134
Karma: 78857258
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I know at times I've seen local hard drives flagged as "removable" by Windows which could possibly change how the IO subsystem handles writes to the device. Does the hard drive show up in the ejectable icon in the system tray?
PeterT is offline   Reply With Quote
Old 03-13-2025, 06:31 PM   #58
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,495
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by PeterT View Post
I wonder if using Process Monitor from SysInternals might provide some insight into file activity
Been there, done that, see the log in OP's post #33 -

Quote:
Originally Posted by sgmoore View Post
What sort of changes are you doing?

I got hit with an issue where I tagged a book without looking at what I was typing and without realising that my capslock was on. So the book ended up being tagged mYSTERY instead of Mystery.

Calibre then spent a long time updating the opf files for all the other books that had been tagged as Mystery to make them all say mYSTERY

So sometimes updating one book can affect lots of other records.
Mass updates to metadata.opf files are done via a separate background process… slowly, can take minutes, hours, days even, and if you close calibre, next time it starts it will carry on updating them regardless.

And it's not just Tags, it's any column e.g. Comments; no casing issues there or triggering of mass metadata backup writes.

Quote:
Originally Posted by DNSB View Post
Wouldn't the issue as suggested by sgmoore's example of having caps lock on be a one shot issue. After the change was made and everything was updated, that slowness would disappear unless something was triggering a change on every startup.
The list from Process Explorer in Safe Mode, where the problem persists, suggests not… and its almost identical to me doing the same on my system.

Quote:
Originally Posted by theducks View Post
I would think so.
OP have you looked at the file timestamps for metadata.opf in the book folder?
That might give a clue if these books are stuck in some weird update loop.
Does anyone know where the 'dirty' flag is kept? Maybe that is RO
Snippet from Process Monitor log, only one book gets its metadata backup written, duration is the last column, as I already said it's diddlysquat… 0.002 secs.

Code:
10:53:50.60	calibre.exe	12148	WriteFile	D:\NOV 2022 CALIBRE LIBRARY\Otto Carius\Tigers in the Mud (1261)\metadata.opf	SUCCESS	Offset: 0, Length: 1,030, Priority: Normal	0.0001689
10:53:50.60	calibre.exe	12148	WriteFile	D:\NOV 2022 CALIBRE LIBRARY\Otto Carius\Tigers in the Mud (1261)\metadata.opf	SUCCESS	Offset: 0, Length: 4,096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal	0.0012767
10:53:53.24	calibre.exe	12148	WriteFile	D:\NOV 2022 CALIBRE LIBRARY\Otto Carius\Tigers in the Mud (1261)\metadata.opf	SUCCESS	Offset: 0, Length: 1,108, Priority: Normal	0.000089
10:53:53.24	calibre.exe	12148	WriteFile	D:\NOV 2022 CALIBRE LIBRARY\Otto Carius\Tigers in the Mud (1261)\metadata.opf	SUCCESS	Offset: 0, Length: 4,096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal	0.0007957
The 'dirty' flag is in the database, in a table named metadata_dirtied:

Code:
CREATE TABLE metadata_dirtied(id INTEGER PRIMARY KEY,
                             book INTEGER NOT NULL,
                             UNIQUE(book))
BR

Last edited by BetterRed; 03-13-2025 at 06:49 PM.
BetterRed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tags not stored when saving to disk? Phssthpok Library Management 14 11-09-2018 01:48 AM
Saving to disk doesn't write all the metadata into the PDF 1gnition Library Management 3 08-15-2013 04:28 AM
How did kobo write such slow software? notzed Kobo Developer's Corner 4 01-15-2013 11:12 PM
Save to disk and Tags tselling Calibre 2 08-30-2009 09:05 PM
Write Fast, Write Slow? Moejoe Writers' Corner 14 03-25-2009 09:55 AM


All times are GMT -4. The time now is 01:46 PM.


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