![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2010
Device: PC
|
Slow -- excessive cpu utilization
Hey All,
I'm new to the forums and to calibre as well, having just installed it yesterday. Since then, i've been having trouble with excessive cpu utilization every time I use the application. For instance, importing arouind one hundred files, (including pdfs, docs, rtf and lits) took over an hour and the cpu usage was at max during this entire time. Also if i just click from one title to another it can utilize anywhere from 60-90% of my cpu, scrolling does the same. Is it normal that it is this sluggish? and a cpu hog? From the lack of many post concerning this problem i'd have to think no. So i'm wondering if it is something to do with my computer config. To that extent, i've disabled my Anti-virus (Avast) and killed all non-essential processes running and tried calibre, but its the same problem. (I never have any indexing programs running without consent.) I've noticed that the mem usage can reach ~500,000k, which is half of my total physical mem, when the app window is selected. Currently it is over 200,000k and it hasn't been the selected app for at least 10 minutes. In general the app runs sluggish and is not very responsive, i assume it is due to the cpu issue. As for drivers, i keep them pretty up to date. For instance, i can play Dragons Age with no video or sound issues. Does anyone have a solution or a suggestion? It would be appreciated as this app, aside from the problem i'm having, seems to be pretty nice, and would be immensely useful if it operated correctly. My system specs are listed below: Summary -------------------------------------------------------------------------------- Computer: Operating System Microsoft Windows XP Professional OS Service Pack Service Pack 3 DirectX 4.09.00.0904 (DirectX 9.0c) Computer Name ****** User Name ****** Motherboard: CPU Type AMD Athlon 64, 2000 MHz (10 x 200) 3000+ Motherboard Name ECS 755-A2 (5 PCI, 1 AGP, 1 CNR, 2 DDR DIMM, Audio, LAN) Motherboard Chipset SiS 755, AMD Hammer System Memory 1024 MB (PC3200 DDR SDRAM) BIOS Type Award (09/16/05) Communication Port Communications Port (COM1) Communication Port ECP Printer Port (LPT1) Display: Video Adapter NVIDIA GeForce 7600 GS (Omega 2.169.21) (512 MB) Monitor Plug and Play Monitor [NoDB] (L74090383840) Multimedia: Audio Adapter SiS 7012 Audio Device Storage: IDE Controller SiS PCI IDE Controller IDE Controller Standard Dual Channel PCI IDE Controller SCSI/RAID Controller ASU7C78W IDE Controller Disk Drive Maxtor 6Y080L0 (80 GB, 7200 RPM, Ultra-ATA/133) Disk Drive Maxtor 6L200M0 (200 GB, 7200 RPM, SATA) Disk Drive ST310005 20AS USB Device (931 GB, USB) Optical Drive DVDRW IDE1108 (DVD+RW:8x/4x, DVD-RW:8x/4x, DVD-ROM:12x, CD:40x/24x/40x DVD+RW/DVD-RW) SMART Hard Disks Status OK Partitions: C: (NTFS) 130002 MB (106170 MB free) D: (NTFS) 49999 MB (31922 MB free) E: (NTFS) 78159 MB (36109 MB free) G: (NTFS) 953867 MB (522956 MB free) Total Size 1183.6 GB (680.8 GB free) Input: Keyboard HID Keyboard Device Mouse HID-compliant mouse Network: Network Adapter SiS 900-Based PCI Fast Ethernet Adapter (192.168.0.10) Peripherals: Printer Lexmark 3100 Series Printer Microsoft XPS Document Writer USB1 Controller SiS 7001 PCI-USB Open Host Controller USB1 Controller SiS 7001 PCI-USB Open Host Controller USB1 Controller SiS 7001 PCI-USB Open Host Controller USB2 Controller SiS 7002 USB 2.0 Enhanced Host Controller USB Device Generic USB Hub USB Device Lexmark 3100 Series USB Device USB Composite Device USB Device USB Human Interface Device USB Device USB Human Interface Device USB Device USB Human Interface Device USB Device USB Mass Storage Device USB Device USB Printing Support |
![]() |
![]() |
![]() |
#2 |
Enjoying the show....
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,270
Karma: 10462843
Join Date: Jun 2008
Location: Arizona
Device: A K1, Kindle Paperwhite, an Ipod, IPad2, Iphone, an Ipad Mini & macAir
|
Welcome to MobileRead, ozzy.
Someone should post soon with suggestions. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's definitely not normal behavior. As for suggestions on what to do about it, I can't really think of anything beyond killing antivirus and other processes (malware scanners, windows defender and such) that might be interfering.
One user recently reported a similar problem on OS X, but was able to resolve it by stopping some processes that were interfering with calibre. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I'm guessing here, but might that have to do with the way Python is executed on windows? If I remember correctly, Python programs are executed similarly to Java programs in that they rely on an interpreter to be present on the system. And if I remember correctly, most *nix OSes have an interpreter in their standard install, which windows doesn't, so Calibre has to bring it's own, which doesn't seem to be as fast. Does that make sense to anyone?
That being said, I've never tried importing hundreds of books, but I'd kind of expect the program to use whatever CPU time it could get its hands on to do tasks like importing or converting. On the other hand, taking hours to import books does seem to be a very long time, and 60-90% utilization when just running the UI is excessive, but, I believe, not a programming fault, but caused by the choice of Python as a programming language. And lastly, for what it's worth, my Calibre installation (with a library of about 200 books) takes anywhere from 10-30% CPU when just jumping from one book to another. My system specs are roughly equal to yours. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 499044
Join Date: Feb 2010
Device: saamabook
|
by using the anti virus we find that our CPU is working fastly and the CPU utilization is done through synchronization.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
V 6.40 Even when sending files to my device (save to disk), I found that my A/V was being hit heavily
![]() I had excluded the Device drives (I locked the letters, and verified they were still correct). I excluded the library. I (unhappily, excluded a live program) C:... /calibre2 No Joy Calibre is using other file-space somewhere that triggers a real time scan of it'sactivity. Disabling A/V was the only thing that dropped the usage and really improved performance. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You forgot to exclude the temp files directory, but of course, if you disable that, there's no point any longer in having the A/V at all.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
You might also need to exclude the calibre-parallel processes which do a lot of the work.
|
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Hi,
I see the same high cpu usage and similar problems using the latest versions under Mac OSX Snow Leopard. I opened Activity Monitor and looked and it seems that the main calibre.app seems to be running under Rosseta (PowerPC) on my Intel Mac while all of the calibre-parallel threads are Intel Native. Under Snow Leopard, it no longer gives me the option to disable or enable Rosetta for the calibre.app so I could not change this. When a conversion is done using the gui, a new thread (running) intel is spawned (but none of the calibre-parallel threads are used) and this new calibre intel thread sucks up 100% cpu for a long time. So somehow, I think this problem is caused by the universal binaries and the use of Rosseta (the PowerPC code conversion) I keep Rosseta installed because I need to still use the PowerPC version of Microsoft Office 2004 to get full Macro support. Any ideas here, how I go about forcing calibre.app to run as a native Intel program on my Mac as opposed to running in Rosseta (PowerPC). Thanks KevinH |
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Running as PowerPC on Intel Native Mac
Hi,
This is so frustrating. calibre.app (according to my Activity Monitor) is the only PowerPC program I have running under MacOSX Snow Leopard x86_64. For some reason, no matter what you set for LSRequiresNative or LSArchitecturePriority in the Info.plist, it ALWAYS launches as PowerPC. I disable Rosetta completely but all that did was make calibre.app hang upon startup. Something in that binary is requiring PPC to start up. Any ideas on how to strip the frameworks in calibre.app of all ppc code to force it to come up native is welcome. Thanks, KevinH |
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's nothing in the binaries that forces PowerPC, calibre runs as Intel on my Intel Mac. But, if you want to strip powerpc code use lipo
|
![]() |
![]() |
![]() |
#13 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Okay,
I have no idea why the Info.plist entries are being ignored in Snow Leopard for calibre.app. Literally the only way I could get calibre.app to open up as an Intel (and not use Rosetta) on my Intel Mac was to do the following: cd /Applications/calibre.app/Contents/MacOS lipo -remove ppc calibre -output calibre.new mv calibre.new calibre Now, the program launches in half the time, the interface actually works properly, the calibre-parallel thread is used to do the work (unlike before). It still hits 100% of its cpu but on a multiprocessor system, it is just the one thread/cpu and the system stays quite responsive. I am not sure why but from now on, I am going to strip out the ppc code from calibre so that it actually runs properly on my machine. Just in case others run into the same thing. Hope this helps, Kevin |
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Hi,
By the way in my home directory under Library/Preferences/ there is a binary plist called com.apple.LaunchServices.plist and it had a net.kovidgoyal.calibre architecture entry that was set to PPC. Perhaps some time in the past I used getinfo to set the architecture to ppc, and after upgrading to Snow Leopard, there was not way to disable that. I used the plist editor to delete that entry. Hopefully if anyone else runs into this, they can see if it helps them versus using lipo to strip things. Thanks for your help. Kevin |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
I am having a similar problem with cpu usage.
I got a Kindle 3, and through various postings found Calibre to be the only real player in the ebook field. I was actually pretty OK with that, as I have heard many favorable things about Calibre. Setup was painless and it immediately recognized my kindle 3. The problem started when I tried to import my relatively large Ebook collection. I am trying to import 5,000 + or - at a time.
While it is importing it pegs the processor .... I mean everything it can get, as well as maxing out the memory. I have a rather extensive collection of books and that was only one folder. The problem being that it took 3 days to import those, and I have 6-7 other folders I would like in the database with similar size and structure. My system is relatively old but still pretty snappy AMD Phenom(tm) 9600 Quad-Core Processor 4 Gb DDR2 2.6.35-24-generic #42-Ubuntu SMP x86_64 GNU/Linux Python 2.6.6 Calibre 0.7.18 Any words from the wise would be greatly appreciated ! |
![]() |
![]() |
![]() |
Tags |
cpu, excessive, problem, slow, utilization |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 0.6.50 using 100% cpu | sol_barbez | Calibre | 10 | 06-14-2010 10:33 PM |
calibre - very slow conversion, very slow on PRS | cremofix | Calibre | 3 | 06-10-2009 04:21 PM |
in NOTES,can I delete an excessive new page | genome2k | iRex | 2 | 09-23-2008 04:12 PM |
iLiad ipdf with CPU Throttling | yokos | iRex Developer's Corner | 61 | 08-26-2008 07:10 PM |