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-12-2025, 09:03 PM   #31
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
How about this? I find with windows process monitor that my calibre process is making over 2 million disk writes to update a few tags on one book. author, title, 'tags'.
Is that to be expected?

and I notice that the monitor reports a different 'write' operation for each 4 bytes. Like 20 consecutive bytes written would require 5 write operations. that surely is wrong? and what module is responsible for that? on the windows end or on the calibre end?

Last edited by abrogard; 03-12-2025 at 09:12 PM.
abrogard is offline   Reply With Quote
Old 03-12-2025, 09:10 PM   #32
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,955
Karma: 26594922
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by abrogard View Post
How about this? I find with windows process monitor that my calibre process is making over 2 million disk writes to update a few tags on one book. author, title, 'tags'.
Is that to be expected?
Definitely not. It does no such thing. You definitely have some software on your machine interfering with calibre.
kovidgoyal is offline   Reply With Quote
Old 03-12-2025, 09:35 PM   #33
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
Definitely not. It does no such thing. You definitely have some software on your machine interfering with calibre.
Well windows process monitor thinks it does. Sees it as such. If you can suggest how I look further I will.

I'v zipped up a segment of the monitor output in libre calc format and attached it.
Attached Files
File Type: zip Logfile.zip (32.1 KB, 15 views)
abrogard is offline   Reply With Quote
Old 03-12-2025, 09:36 PM   #34
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,955
Karma: 26594922
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That just means there is something on your machine inserting code into the calibre process. Sadly the windows ecosystem is full of such junk.
kovidgoyal is offline   Reply With Quote
Old 03-12-2025, 09:48 PM   #35
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
You're saying it is a corrupt calibre install or you're saying that as calibre.exe runs the write functions are intercepted or such?
Any ideas on how to deal with it?
I never heard of 'inserting code' into a running process... how's that done? and how does it get found out?
You didn't look at the logfile did you?
abrogard is offline   Reply With Quote
Old 03-12-2025, 09:58 PM   #36
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,485
Karma: 29308976
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Can you post a list of all the processes that are running - e.g. from ProcessExplorer

BR
BetterRed is offline   Reply With Quote
Old 03-12-2025, 10:05 PM   #37
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,955
Karma: 26594922
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by abrogard View Post
You're saying it is a corrupt calibre install or you're saying that as calibre.exe runs the write functions are intercepted or such?
Any ideas on how to deal with it?
I never heard of 'inserting code' into a running process... how's that done? and how does it get found out?
You didn't look at the logfile did you?
It's how every antivirus with "live protection" on windows operates, for instance. Every write made by a processes gets intercepted and scanned for safety before being allowed to hit the filesystem. Similarly network operations are intercepted, etc etc.

No I didnt look at the log file, it's pointless I know perfectly well that calibre does not make 2 million writes when updating metadata for a single book. So they cant be coming from calibre code, a metadata update is literally updating a few rows in a sqlite database, proportional to the number of columns/fields you have in your library. And then there will be an eventual backup which is another single write to an OPF file.
kovidgoyal is offline   Reply With Quote
Old 03-12-2025, 10:16 PM   #38
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
It's how every antivirus with "live protection" on windows operates, for instance. Every write made by a processes gets intercepted and scanned for safety before being allowed to hit the filesystem. Similarly network operations are intercepted, etc etc.

No I didnt look at the log file, it's pointless I know perfectly well that calibre does not make 2 million writes when updating metadata for a single book. So they cant be coming from calibre code, a metadata update is literally updating a few rows in a sqlite database, proportional to the number of columns/fields you have in your library. And then there will be an eventual backup which is another single write to an OPF file.
ok, you call that 'inserting code'. alright. i don't see it as any insertion but have it your own way. the point is to reach clarity of understanding.
and in that direction my underlying point was that perhaps there would be something in the output that might be of interest and give some leads as to where to look.

which I think is a perfectly reasonable attitude. And if you don't then that's okay and just adds information about yourself.

I appreciate your help and interest.
I appreciate anyone's help and interest.
abrogard is offline   Reply With Quote
Old 03-12-2025, 10:18 PM   #39
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by BetterRed View Post
Can you post a list of all the processes that are running - e.g. from ProcessExplorer

BR
Yep. I've attached the output.
Attached Files
File Type: txt process explorer 1.txt (19.7 KB, 20 views)
abrogard is offline   Reply With Quote
Old 03-12-2025, 11:26 PM   #40
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,755
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I see a Google drive process running.
Calibre (the Library folder) is NOT compatible with Google drive.
Make 100% sure the Library folder is located elsewhere (lot a GD monitores folder)
theducks is offline   Reply With Quote
Old 03-12-2025, 11:56 PM   #41
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,485
Karma: 29308976
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I looked at the log, it's the updating of the SQLite database that chewing up the time, the metadata.opf activity is diddlysquat. What appears to be temporary file I/O in the root of the config directory surprised me… calibre normally does such things in its cache directory.

Re Process Explorer. Nothing leapt off the page, just a couple of "I wonder what that is, and why is he running that. "

Can you try without running calibre when Firefox is not running. I recently discovered Firefox was making my system unstable… such as unwanted reboots… disabling DuckDuckGo Privacy Essentials seems to have fixed it.

Seeing as how the problem manifests in Windows Safe Mode, could you run calibre under it again and capture another ProcExplorer list.

BR
BetterRed is offline   Reply With Quote
Old 03-13-2025, 12:15 AM   #42
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by theducks View Post
I see a Google drive process running.
Calibre (the Library folder) is NOT compatible with Google drive.
Make 100% sure the Library folder is located elsewhere (lot a GD monitores folder)
I shun google drive. I'm surprised it is there. I'll do what I can to remove it.

the library is on the actual hard drive, quite for sure. I moved it there. copied it over via usb stick, ' sneakernet'.
abrogard is offline   Reply With Quote
Old 03-13-2025, 12:19 AM   #43
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by BetterRed View Post
I looked at the log, it's the updating of the SQLite database that chewing up the time, the metadata.opf activity is diddlysquat. What appears to be temporary file I/O in the root of the config directory surprised me… calibre normally does such things in its cache directory.

Re Process Explorer. Nothing leapt off the page, just a couple of "I wonder what that is, and why is he running that. "

Can you try without running calibre when Firefox is not running. I recently discovered Firefox was making my system unstable… such as unwanted reboots… disabling DuckDuckGo Privacy Essentials seems to have fixed it.

Seeing as how the problem manifests in Windows Safe Mode, could you run calibre under it again and capture another ProcExplorer list.

BR
You will have noted the 4byte writes?

I'm busy writing a copy to usb again. I intend to move it to another machine and see if the problem persists there.

I will do the safe mode reboot and try when that copy finishes - takes forever.

you mean run without firefox running I think? I've tried that. didn't help.


Last edited by abrogard; 03-13-2025 at 12:21 AM.
abrogard is offline   Reply With Quote
Old 03-13-2025, 03:28 AM   #44
abrogard
Groupie
abrogard began at the beginning.
 
Posts: 168
Karma: 10
Join Date: May 2017
Device: kindle
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.
Attached Files
File Type: txt procexp17401303.txt (4.0 KB, 11 views)
abrogard is offline   Reply With Quote
Old 03-13-2025, 03:38 AM   #45
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,543
Karma: 9250680
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by abrogard View Post
So without doubt it is a Windows problem or, we could say I suppose, a possible windows/calibre conflict.
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.
Karellen is online now   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 06:42 PM.


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