03-01-2009, 11:04 PM | #1 |
Connoisseur
Posts: 91
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: Kindle Voyage, Samsung Galaxy S23+, Galaxy Tab S6
|
calibre-parallel process uses large amount of Win32 Handles
While doing it's background downloading thing, Calibri launches some process called calibre-parallel. After this process launched on my system, and begun doing it's thing, it immediately chewed up 53,210 Win32 Handles!
I was able to quit that particular process, while the main part of calibre remained running, and my Win32 Handles went back down to normal. I'm not sure exactly what that process is used for, downloading or fetching news I think. My system is a XPS M1730 2.4GHz Intel Core2 Duo with 2GB RAM running WinXP Pro SP3. I also filed this as a ticket on the web site, only because I couldn't decide which way to do it. I thought that here anyone else could experiencing something similar could pipe up with suggestions, whereas I saw it more of a bug so I also thought it should go in the ticket system. Since I couldn't decide for sure, you're getting both. |
03-02-2009, 07:02 AM | #2 |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
The calibre-parallel process is used for background tasks such as fetching articles, sending books to the reader or (probably most important) converting books to another format. The process will be re-started any time calibre is asked to perform this type of action.
Whether it should open so many handles I have no idea - it depends I guess on what type of handle they are and the complexity of the processing being performed. |
Advert | |
|
03-03-2009, 01:26 AM | #3 |
Connoisseur
Posts: 91
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: Kindle Voyage, Samsung Galaxy S23+, Galaxy Tab S6
|
Yeah, I figured out what it was used for. And I've successfully updated News and sent it to my Kindle 2 using this process. However, when it's done, it doesn't free up the handles, leaving the system in a somewhat unstable state if another app were to come along that needed lots of handles as well. In order to run "clean", an application really should clean up after itself. Instead, I'm left with 2 open calibre-parallel processes long after they're no longer needed, and they haven't freed up all the handles they used either.
|
03-03-2009, 01:35 AM | #4 |
creator of calibre
Posts: 44,551
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Umm handles are just integers and IIRC your system if its 32 bit has about 2**32 = 4294967296 available, so i wouldn't worry about it if I were you
|
03-03-2009, 01:53 AM | #5 |
Connoisseur
Posts: 91
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: Kindle Voyage, Samsung Galaxy S23+, Galaxy Tab S6
|
Alright, I won't worry about it.
But just so you know, I come from a software development environment and the devs always wanted to know about win32 handles and file handles and if they weren't cleaned up after each process and stuff like that. So it was always the kind of thing I reported. I'm not a software developer myself, but a network and system administrator, but the companies I've worked for have all been big names in software. But your right, the normal user probably wouldn't notice it, though it certainly makes me not want to leave calibre running all the time since it doesn't shut down those extra processes after. And you'd kinda implemented that taskbar feature so people could leave it running. (Don't ask me why... I'm just wicked OCD about my system. :lol: ) Maybe these ones are just references and aren't as big of a deal as open file handles though so I won't fret it. And I'll zip it now since it doesn't seem to be an issue for anyone. Last edited by CheriePie; 03-03-2009 at 01:56 AM. |
Advert | |
|
03-03-2009, 02:03 AM | #6 |
creator of calibre
Posts: 44,551
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre delibrately leaves the process running, this is because in common with all python programs startup time for calibre is a problem. By leaving the processes running, when you run multiple tasks each processes can be re-used quickly.
|
Tags |
calibre-parallel, win32 handles |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre-parallel.exe twice? | sideburnt | Calibre | 12 | 03-24-2012 09:51 PM |
Suddenly Calibre can't process html | saxondawg | Calibre | 10 | 09-12-2010 04:20 PM |
embeding fonts to epubs in Calibre - automated process | gulo | Calibre | 3 | 01-27-2010 02:23 PM |
Best way to convert large amount of books? | ficbot | Calibre | 3 | 01-11-2010 05:36 PM |
Upgrading to a newer calibre version - The Process? | Dr. Drib | Calibre | 4 | 06-22-2008 06:06 AM |