Author Topic: slow tagging  (Read 15607 times)

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: slow tagging
« Reply #15 on: December 01, 2014, 06:45:45 AM »
Photo Mechanic uses the Windows function CreateDirectory() to create the directories for the cache folders.[...]
PM passes NULL for the security descriptor which has the following effect:

In the comments below this exception was noted:

Quote
Note: CreateDirectory and CreateDirectoryEx will bypass the security of the parent folder if SeRestorePrivilege is enabled.
Does this mean anything to you?

I looked at the documentation for that value and also searched the entire source code of PM and did not find SeRestorePrivilege anywhere in it.  I understand what it does, but PM doesn't activate that mode.

-Kirk

Offline VGER

  • Newcomer
  • *
  • Posts: 38
    • View Profile
Re: slow tagging
« Reply #16 on: December 01, 2014, 06:55:26 AM »
I found out something else:

Starting PM doesn't louse up the ACLs. Exiting PM does.

I reset the ACLs and checked (ok), started PM and checked (ok), exited PM and checked (wrong).

I have set PM to "clear cache on exit". Let's see what this does...

Bingo: Now (option "clear on exit" disabled) the ACLs "survive" a PM start/exit cycle!

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: slow tagging
« Reply #17 on: December 01, 2014, 07:30:01 AM »
When empty cache on exit is enabled, how much of the cache folder tree remains for you?

-Kirk

Offline VGER

  • Newcomer
  • *
  • Posts: 38
    • View Profile
Re: slow tagging
« Reply #18 on: December 01, 2014, 08:37:22 AM »
When empty cache on exit is enabled, how much of the cache folder tree remains for you?
Everything. ;-)

Apparently, nothing is deleted at all. /preview and /tumb contain no less subdirs than before. I haven't looked at the files contained therein, though.

A manual "clear all" (button in config dialog) doesn't do more either.

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: slow tagging
« Reply #19 on: December 01, 2014, 09:02:16 AM »
Ok, looks like we're getting somewhere! Have you already tried moving the location of the cache too? Is the behaviour the same?

Cheers,
Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline VGER

  • Newcomer
  • *
  • Posts: 38
    • View Profile
Re: slow tagging
« Reply #20 on: December 01, 2014, 09:32:14 AM »
Ok, looks like we're getting somewhere! Have you already tried moving the location of the cache too? Is the behaviour the same?
Yes, I relocated the /cache directory (setting in PM's config) and said "delete old" when asked. The new directories also got the funny permissions. The latest discoveries (PM start vs. exit) I have performed on the standard location again (after moving back the cache), since there apparently wasn't any difference in behaviour to the new one (a top-level directory on the volume.)
« Last Edit: December 01, 2014, 09:33:46 AM by VGER »

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: slow tagging
« Reply #21 on: December 03, 2014, 04:37:31 PM »
When PM is running on your system, what user is PM running as?  (You can view this in the Windows Task Manager)

-Kirk

Offline VGER

  • Newcomer
  • *
  • Posts: 38
    • View Profile
Re: slow tagging
« Reply #22 on: December 04, 2014, 04:49:09 AM »
PM is running under my normal "work" user. Nothing abnormal there.