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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-01-2009, 10:04 PM   #1
CheriePie
Connoisseur
CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.
 
CheriePie's Avatar
 
Posts: 84
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: KFHD 8.9, Kindle PW, HTC EvoLTE, (retired: Kindle 2, Fire OG)
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.
CheriePie is offline   Reply With Quote
Old 03-02-2009, 06:02 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 3,949
Karma: 777817
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.
itimpi is offline   Reply With Quote
 
Enthusiast
Old 03-03-2009, 12:26 AM   #3
CheriePie
Connoisseur
CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.
 
CheriePie's Avatar
 
Posts: 84
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: KFHD 8.9, Kindle PW, HTC EvoLTE, (retired: Kindle 2, Fire OG)
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.
CheriePie is offline   Reply With Quote
Old 03-03-2009, 12:35 AM   #4
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: 24,817
Karma: 4369673
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
kovidgoyal is offline   Reply With Quote
Old 03-03-2009, 12:53 AM   #5
CheriePie
Connoisseur
CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.CheriePie got an A in P-Chem.
 
CheriePie's Avatar
 
Posts: 84
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: KFHD 8.9, Kindle PW, HTC EvoLTE, (retired: Kindle 2, Fire OG)
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 12:56 AM.
CheriePie is offline   Reply With Quote
Old 03-03-2009, 01:03 AM   #6
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: 24,817
Karma: 4369673
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.
kovidgoyal is offline   Reply With Quote
Reply

Tags
calibre-parallel, win32 handles

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre-parallel.exe twice? sideburnt Calibre 12 03-24-2012 08:51 PM
Suddenly Calibre can't process html saxondawg Calibre 10 09-12-2010 03:20 PM
embeding fonts to epubs in Calibre - automated process gulo Calibre 3 01-27-2010 01:23 PM
Best way to convert large amount of books? ficbot Calibre 3 01-11-2010 04:36 PM
Upgrading to a newer calibre version - The Process? Dr. Drib Calibre 4 06-22-2008 05:06 AM


All times are GMT -4. The time now is 12:42 PM.


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