Slow deletion of files

Page 4 of 5 FirstFirst ... 2345 LastLast
  1.    #31

    Have you tried reinstalling both of the programs again?
      My Computer


  2. Posts : 21
    Windows 7 Professional
    Thread Starter
       #32

    x BlueRobot said:
    Have you tried reinstalling both of the programs again?
    Yes, that was one of the first thing I did before contacting the authors of Calibre eBook. Steps were
    - export all my eBooks
    - remove Calibre + make sure the related directories (especially where the index was) is gone; I initially
    thought that my index library may be corrupt and re-creating it would help
    - re-install
    - re-import my books
    - add one random book ... remove .. and ... same

    Note though that did not have that much hope having noticed the sme slow response behavior with other apps before (an UPGRADE to a newer version "fully Windows 7 & 8 compatible" made the problem go away - I do not have that luxury with Calibre).
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #33

    Just so folks in the thread can see what we are talking about:



    That was inside a Virtual Machine running W7pro64bit. It had 1.5GB RAM and 4 cores of a mobile i5 CPU assigned. The host computer (and thus the VM) has an SSD.

    I grabbed the epub files from here:
    50 top free ebook classics in Kindle and epub format | iBookNook


    BTW, is it normal for the deletion process to leave the original epub files behind?
      My Computer


  4. Posts : 21
    Windows 7 Professional
    Thread Starter
       #34

    UsernameIssues said:
    BTW, is it normal for the deletion process to leave the original epub files behind?
    A drag-and-drop will add an eBook to Calibre's private directory (for me, C:\Users\XXX\Documents\Calibre Library\$Author\$Title). Removing cleans it there for sure (but the one you dragged and dropped remains as-is of course as a copy was added). Is this what you meant?

    What about if we approach this from a different angle:

    What on Windows 7 can cause a thread to hang there doing nothing for 20 to 40 seconds?

    Perhaps if we can name a few reasons and check, there is a chance to find the issue (although I doubt that all thread creation hang as the OS would be completely dysfunctional if that was so ... but still worth trying to think away from Calibre or DeleteXP or ... ). Especially, do you know what that SHFileOperation does? It invokes a "shell" but what does it do then and what does that mean exactly? Does it use a PATH environment and search for something (like invoke a command from the shell)? Any special directories I should be looking at then? In Unix, invoking a shell command would look into $PATH and if one of the path in $PATH is problematic (hanging or slow lookup), the execution of the command can be direly delayed ... Having no clue of Windows mechanisms for what is called "shell" activation, I am wondering if perhaps there is a similar issue here.
      My Computer

  5.    #35

    jlauret7 said:
    UsernameIssues said:
    BTW, is it normal for the deletion process to leave the original epub files behind?
    A drag-and-drop will add an eBook to Calibre's private directory (for me, C:\Users\XXX\Documents\Calibre Library\$Author\$Title). Removing cleans it there for sure (but the one you dragged and dropped remains as-is of course as a copy was added). Is this what you meant?

    What about if we approach this from a different angle:

    What on Windows 7 can cause a thread to hang there doing nothing for 20 to 40 seconds?
    Information about SHFileOperation() and File System Objects:

    Working with Files

    SHFileOperation function (Windows)

    The thread could have a lower priority level, but the thread should receive a priority boost after a while to prevent CPU starvation.

    Open Process Explorer, and then double click the DeleteXP.exe process, go to the Threads tab, and then post a screenshot - Screenshots and Files - Upload and Post in Seven Forums

    Base Priority = Starting priority of the thread associated with the process.

    Dynamic Priority = The current priority of the thread.

    Slow deletion of files-ff.jpg
      My Computer


  6. Posts : 21
    Windows 7 Professional
    Thread Starter
       #36

    [QUOTE=x BlueRobot;2489198]
    jlauret7 said:
    Open Process Explorer, and then double click the DeleteXP.exe process, go to the Threads tab, and then post a screenshot - Screenshots and Files - Upload and Post in Seven Forums

    Base Priority = Starting priority of the thread associated with the process.

    Dynamic Priority = The current priority of the thread.
    OK, trying ... see the attachment below (I do not see anything strange I have to say).
    Attached Thumbnails Attached Thumbnails Slow deletion of files-deletexp-threads.png  
      My Computer

  7.    #37

    Does it act slow when you have other programs open? Ensure you have the two programs running if your creating the User-Mode dump file:

    Try creating a User-Mode dump file - How to create a user-mode process dump file in Windows Vista and in Windows 7

    Then upload the dump files to here with - Screenshots and Files - Upload and Post in Seven Forums
      My Computer


  8. Posts : 21
    Windows 7 Professional
    Thread Starter
       #38

    x BlueRobot said:
    Does it act slow when you have other programs open? Ensure you have the two programs running if your creating the User-Mode dump file:

    Try creating a User-Mode dump file - How to create a user-mode process dump file in Windows Vista and in Windows 7

    Then upload the dump files to here [...]
    OK, so I created a dump of DeleteXP.exe (again just because it is a smaller program - if there is a need for one from Calibre, could do that instead). However, the full dump is 15 MB compressed ... So I am uploading the minidump.
    Last edited by jlauret7; 24 Aug 2013 at 07:35. Reason: Removed attachement
      My Computer

  9.    #39

    The call stack for the dump file seems to be corrupt, create a Minidump of both processes with ProcDump
      My Computer


  10. Posts : 21
    Windows 7 Professional
    Thread Starter
       #40

    x BlueRobot said:
    The call stack for the dump file seems to be corrupt, create a Minidump of both processes with ProcDump
    Sorry again for the delay in responding (on the move until next week).
    I have tried again using procdump.exe and attach both calibre and DeleteXP - I waited until the command
    got stuck to proceed with a dump (noticed the dump creation is near immediate). I hope those dumps are
    fine.
    Last edited by jlauret7; 24 Aug 2013 at 07:35. Reason: Removed attachements
      My Computer


 
Page 4 of 5 FirstFirst ... 2345 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:01.
Find Us