![]() |
#46 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() 64MB cache : That is 1.5+ times the size of my first Hard Drive See if you can find a Utility to read out the SMART status. (I know I can do it with a Ubuntu (even on the Live CD)) It should flag detected issues with the drive long before you may be able to notice them otherwise. |
|
![]() |
![]() |
![]() |
#47 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Only an additional idea and maybe you did something similar.
I had a problem a couple of weeks ago. What happen? I had a custom column with a bad design. Therefore I decide to change this column. I did it the way that I define a new one with a similar display- and column name and add a digit to it to have it different to the old one. I update then the content to the new column, check the results of the database and was happy that everything was working well. I thought… After this, I delete the old column and rename the new one to the old column name. So fare so good. Next day Friday, I made a Calibre update and after this, I switch to my test library for testing some other things. Some when later I switched back to my main library because I had to add a book there and I was heavily surprised to wait about 3 (!) minutes for adding a book and then additional 3 minutes for updating my metadata. Doing this with my test library, this process takes only a second. I check my main library again; I saw that I made a stupid thing: I renamed my new column display name but I forgot to rename the column name itself. Unfortunately the old column was part of a virtual library and every time I made a change in the metadata, Calibre try to update the data and was not able to do that what result in a long activity to update the caching data (I guess). After I changed the column name to the correct name the library runs like charm again. My lesson learned… |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2014
Location: Italy
Device: iPad mini
|
@BetterRed Sorry for the late answer. I've installed Calibre Portable in the USB3 HD and copied the library in there. The problem is the same. I've to wait more than 30 sec for the metadata editor to move to the next book
![]() The problem is the same even if I use a different PC with win 7 64 bit( I don't have a PC with win7 32 bit so I don't know if that maybe a issue). I've set the environment variable on my main PC (many many thanks for the detailed explanation !!!!) and the problem is solved ![]() ![]() |
![]() |
![]() |
![]() |
#49 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2014
Location: Italy
Device: iPad mini
|
@Divingduck Thanks for the advice but I don't think I've a similar problem.
I've 2 custom column : 1 (yes/no) for the status of the book (read - to read); 2 for the detail of the series. If I update my metadata I've no problem. I open the edit windows only if I want to "manualy" download the metadata so I can choose wich metadata result I want to save in my library. Some source don't have the series info. If I change any value of the colums in the main windows I've no problem and no delay |
![]() |
![]() |
![]() |
#50 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
NTFS is a complex journaled file system that operates a bit like a database (see http://www.ntfs.com/ntfs.htm for a lot of info). Creating a file requires several read and write operations. Most of the read operations can come from the disk cache. Which leads me to speculate ... Glancing through this thread I didn't see how much memory your computer has. A 2TB disc will have an enormous amount of control space (file allocation tables, journals, open file tables, etc) that for performance reasons should always be in the cache. Unfortunately, if the computer doesn't have enough memory, the cache will be too small and performance will suffer. My guess is that with a disk that size, you would want at least 4GB of RAM so your cache can be large enough. More would be better. Do you have that much? One reason moving the database to a smaller drive would improve performance is that more of that drive's control space could fit in the cache. The fact that you are seeing a performance improvement supports my argument. |
|
![]() |
![]() |
Advert | |
|
![]() |
#51 | |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2014
Location: Italy
Device: iPad mini
|
Quote:
|
|
![]() |
![]() |
![]() |
#52 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
If your computer uses DDR3 memory, looking into a memory upgrade is a sensible thing to do; DDR3 is practically free, compared to DDR2. (At least here, in the Netherlands.) If DDR2 hadn't been so expensive, I'd even have upgraded this almost six year old system to 16 GB. |
|
![]() |
![]() |
![]() |
#53 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Also I suspect that the write cache is disabled by default on external harddrives? Might help to activate it, at the expense of much higher likelihood of corrupt filesystem if the cable is pulled out by mistake.
|
![]() |
![]() |
![]() |
#54 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() 1a)Defrag 1b)shrink the partition 1c) create the new partition 2) Move selected (you logic applied) old partition files files to their new home. repeat 1a, 1b, expand the new partition to use the recovered space |
|
![]() |
![]() |
![]() |
#55 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() My understanding is that editing a single cell in the book list is similar, with respect to disk I/O, as changing a value in Metadata Edit and terminating with OK. Perhaps chaley can confirm that. And if that's true, then would it not call the disk control memory theory into question - chaley? BR Last edited by BetterRed; 03-09-2014 at 05:22 PM. |
|
![]() |
![]() |
![]() |
#56 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() I'm shocked to 'learn' the lack of disk control space would create delays of 60 seconds to move to the Next Book in Metadata Edit without doing any edits on the current book - when I assume calibre would do no writes. I might have believed 1 or 2 seconds, even 5 but... not a minute or more! I have a 6GB Windows 7 system with an i5 processor, I have 2x2TB internal SATA2 drives and 2x2TB external drives in a 2 slot USB3 dock attached to a PCIe USB3 adapter. The drives are WD Black Caviar, unpartitioned, included in AV scanning, included in content indexing, have write caching enabled, and the two external drives are also compressed. I keep my libraries (4,000-35,000 books) on the internal non-system disk, with a copy on one of the USB3 externals. I don't have any delays of any significance in Metadata Edit (sub-second response), or elsewhere in calibre. Calibre performance is even faster on the external drives - but so is everything else. I run ~20 programs in my system tray. When I run calibre I'm typically running (in addition to the tray applets), xplorer2, conEMU, firefox, quodlibet, notepad++, utorrent, and at least one or two of, DAMWerks, chrome, excel, word, autocad, outlook, avidemux, mpc, VS2010. I also dive in and out of the ebook-viewer and ebook-editor programs. Calibre's performance is the same at the end of the day as it was at the beginning, I don't close it, or anything else unless there's a reason - eg I change a Tweak. I run a similar application to calibre to manage a large engineering image collection (+2M images), it keeps all the metadata (much much more per image than any ebook has) in a relational database. I don't have any performance problems with it either. I'm tempted to remove 2GB to see what difference it does make ![]() Be interesting to know if other users with this 'problem' can overcome it by using the CALIBRE_OVERRIDE_DATABASE_PATH env. variable. BR Last edited by BetterRed; 03-09-2014 at 05:08 PM. |
|
![]() |
![]() |
![]() |
#57 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
As for differences between editing a single field and the edit metadata window: I expect that there are many. Editing a single field creates a single transaction within which that one field is modified. Edit metadata verifies every metadata item for the book (I think), something I think requires many transactions. It also requires verification of the file structure because the title and author information might have changed. This verification includes checking letter case on case-less file systems (like windows). In the end, all we seem to know is:
|
|
![]() |
![]() |
![]() |
#58 | |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2014
Location: Italy
Device: iPad mini
|
Quote:
Calibre is fast in all the other operations this is what puzzle me! ![]() For example : - If I donwload the metadata and covers for 20-30 books in a single operation and in the windows that ask me if I want to apply the change I choose "review downloaded metadata" and I chose one by one if I want to accept it or not I've no delay! - If I select 20-30 books and open "Edit metadata" and change 1 o more value for all the books or use "search and replace" I've no delay. I don't understand why Calibre slow down only when I open "Edit Metada" windows for a single book even if I don't change anything in it. |
|
![]() |
![]() |
![]() |
#59 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I removed 2GB of memory, so I now have 4GB
Metadata Edit termination has barely changed, maybe < 1 second to < 2 seconds. To test (in my media library 7000 books) I changed 5 standard columns - including 1 Title correction (INsied to Inside) and 10 custom columns. And I downloaded the metadata for a regular book. If I edit cells in the book list, the time to Tab to the next cell appears to be a tad slower than it is with 6GB - but it's marginal. Looking at calibre in Task Manager I don't see it thrashing, the number of read and write operations is modest when I change something. Each field changed in Metadata edit seems to add about 20 writeops to a base of about 100, and 40 readops to a base of about 70. There's 16 writeops for the opf file, when cells are edited this occurs for every cell, with Metadata Edit its once only. I'm wondering if its "some program is wired into real memory", maybe a service that's always loaded, even in Safe mode. The gigabyte program that monitors my temps, starts fans etc, thrashes the disks more than calibre does. When I did the 4GB tests my AV scanner was doing its morning run, and the content indexer found itself something to do and wrote 3GB of something. So... I dunno. Anyway I found the OP a solution, even though I don't really understand why it is so. That's the second one in a few days - giving calibre its own Temp folder was the other one, dunno why it worked either. BR Last edited by BetterRed; 03-09-2014 at 08:16 PM. |
![]() |
![]() |
![]() |
#60 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you want to observe what calibre's doing with reading and writing you can use Task Manager, here's a How to do that ==>> http://www.watchingthenet.com/identi...n-windows.html Using what's suggested at that Watching the Net post, it doesn't look like calibre is thrashing my disks - in fact its disk i/o is quite modest. Maybe you'll see something different. Better put that 2GB back, before I lose it BR Last edited by BetterRed; 03-09-2014 at 09:47 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Edit Metadata | Comments field focuse -> close window | copyrite | Calibre | 2 | 08-08-2012 02:38 PM |
metadata edit very slow | jeroencl | Library Management | 1 | 04-28-2012 11:51 AM |
Edit metadata window off screen | toomuchreading | Calibre | 34 | 04-14-2012 09:17 AM |
Edit metadata window changed in 8.41? | speakingtohe | Calibre | 9 | 03-09-2012 05:54 PM |
Slow scrolling in main window | svenlind | Calibre | 6 | 07-10-2010 03:22 AM |