EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: ClrMame Pro seems slow scanning Maygay Roms  (Read 10848 times)

bob

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 85.0 Firefox 85.0
    • View Profile
ClrMame Pro seems slow scanning Maygay Roms
« on: 29 January 2021, 11:34 »

This is with the latest ClrMamepro and the latest Mame.

The scanner is really struggling with the MayGay Roms. Each one is taking 5-10 minutes. I cant for the life of me see why. Is this a known issue ?
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 88.0.4324.104 Chrome 88.0.4324.104
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #1 on: 29 January 2021, 12:14 »

Erm...nope

Full standard (splitmerged/zip/no softwarelists/nosha1 deep check) MAME 228 scan takes around 46 seconds on a low cost ssd/full cache.

You may need to check if other 3rd party tools (like virusscanners) interfear.
Logged

bob

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 85.0 Firefox 85.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #2 on: 29 January 2021, 12:52 »

Thanks for the info.

I will try and find out whats slowing it down. Its been over 13 hours now and only 35 % in. Its very strange as previously it was fast. Just this latest mame seems to have massively slowed down.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 88.0.4324.104 Chrome 88.0.4324.104
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #3 on: 29 January 2021, 13:13 »

Must be something different...just some newly added sets can't be the cause.

Turn off all fix options and do a scan, maybe you miss something in such sets and got a weird scanner advanced fix option enabled which runs over and over again through all your files.

Scanner->Advanced->"Deeper check for fixable missing files" should be turned off for example
Logged

bob

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 85.0 Firefox 85.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #4 on: 29 January 2021, 15:26 »

Thanks Roman

That did the trick. Thanks also for producing such a tool, without it I would have given up trying to organise the roms years ago.
Logged

ssergE

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 85.0 Firefox 85.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #5 on: 14 February 2021, 05:14 »

Hi
I also suffered the same issue.  Disabled AV and "Deeper check for fixable missing files" with no success.  Only when I unticked the fix option for "Missing" was it able to get past the Maygay roms.

I access my ROMs over the network as they are on a NAS, so I think the added latency in opening the file is really highlighted for some reason.  Another thing I noticed is all the "meta-sets" (not sure the right terminology - things like the keyboard controllers and cartridge slots/etc) all add a pause to the scanning process, whereas normal rom sets fly by nice and quickly.
Logged

ssergE

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 85.0 Firefox 85.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #6 on: 14 February 2021, 06:23 »

Hi
To further expand on my last post - trying to fix the missing roms issue (there's two GALs that have been added to all the Maygay sets) by dragging a zip (funnily enough not containing the required files :( ...) to the results window with the fix missing check box ticked causes the really long running behaviour.

Looking at may NAS access logs I can see it is working its way through all ~1000 m1* Maygay sets, for each of the Maygay sets its trying to fix, so if I left it running it would do it 1000*1000 times, which seems to be a cause of slowness.

I'm wondering given the 'strangeness' of the Maygay machines (lots of variants, all sharing similar/same roms) it's uncovered some slowness?

Anything I can do to help diagnose what is going on?  It's a fantastic program!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 88.0.4324.150 Chrome 88.0.4324.150
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #7 on: 14 February 2021, 08:43 »

Nah...there are several things here happening:

Dragging a set into the scanner tree window will run the rebuilder which touches the source(dragged) file exactly once and it creates any matching file in the destination. So when you miss 1000 times the same file and the file is in the dropped set it reads it once and writes it 1000 times...which would still be very fast.

When the rebuilder job is done, a scan is perfomed (when the belonging option is enabled). If you got the enhanced fix missing option enabled and still got a missing file somewhere, the scanner will look for it. Without that ticked option, it looks in your specified add folders, the backup folder and parent/clone sets of the current set. If you tick that option it will run through all files you got.....and that's the killer.

So a) it's not the drag'n drop operation and b) it's not "Maygay" (maybe only because the structure of the set leads to some missing files which are shared over the sets) and c) it's purely the advanced fix missing option...so keep it turned off....

Usually you add missing sets with the rebuilder.
Logged

ssergE

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 85.0 Firefox 85.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #8 on: 15 February 2021, 00:32 »

Thanks for the info; it certainly helps.
Finding the 2 missing files that were shared across the maygay sets and using the rebuilder did the trick.  Not sure where I picked up the drag-n-drop workflow from.

Thanks again!
Logged

Fred92

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 86.0 Firefox 86.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #9 on: 28 February 2021, 17:40 »

Hello,
i post here because i have the same issue (tried both with 4.039a and latest build.4.040 64bits)
my check is stuck on maygay too when i launch a new scann
and when i select "stop scanning"  clrmamepro freezes
i uncked all advanded scanner options.
my roms are stored on a Nas.
previously (for months/years) there was no problem... strange behaviour since 2/3 latest mame's roms builds.

any help welcome.
Thanks all

Fred.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 88.0.4324.190 Chrome 88.0.4324.190
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #10 on: 28 February 2021, 17:49 »

Unless you have some network issues (https://www.emulab.it/forum/index.php?topic=4902.msg18940#msg18940) it's really based on an enabled advanced scanner option to do a deeper fix missing check. Or a virusscanner goes wild.
You may want to do some monitoring with Windows Taskmanager to see which task is taking cpu power or check the network traffic.
Logged

Fred92

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 86.0 Firefox 86.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #11 on: 28 February 2021, 18:02 »

thank you answering.
here are screenshots of my config
no deep scan at all...
NO VIRUSCANNER (i haven't any one on this PC)
i tryed another new scann and it's stuck on "m1albsq" for minutes...and then m1alley...
my NAS is on ethernet, no network issue at all.
« Last Edit: 28 February 2021, 18:06 by Fred92 »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 88.0.4324.190 Chrome 88.0.4324.190
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #12 on: 28 February 2021, 18:23 »

Turn off the fix missing option and try again

...and you're sure you use not separated bios sets??? That should actually be enabled....and I see you're not using a direct MAME import but an external dat....shouldn't be a problem but...it's not official :)

if you now accidently turned off "separate bios sets", you're running into a lot of fix missing operations now...since you tell each and any set to have all bios files not separated (so you keep thousands of copies of the same files now).
« Last Edit: 28 February 2021, 18:28 by Roman »
Logged

Fred92

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 86.0 Firefox 86.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #13 on: 28 February 2021, 19:14 »

so...
here is how i have done :
before i wan doing a new scann with fix all options.
now this way doesn't work for me and is too long.
So i make a new scan without fixing anything and no deep.
then i make a rebuild
then a fix all.
and like that, it's more quickly done.
consider it's fixed for me (but i think there is something wrong since latest updates.. roms or softmware i don't know because i haven't done like this before for years and there was no issue at all).
Thanks helping.
Fred.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 10.0 Safari 10.0
    • View Profile
Re: ClrMame Pro seems slow scanning Maygay Roms
« Reply #14 on: 28 February 2021, 19:25 »

well, it is basically fix missing. depending on the advanced option it looks a) in your addpaths, in the backup folder and your rompaths for the missing file. If the advanced option is not ticked, it only looks in sets named after the set where the missing file is and in sets named after parent and clones of that set. if the advanced option is enabled it looks in any file which is of course overkill.

now if a big group of newly added sets miss a lot of files (or using not separarted bios sets), fix missing looks pretty long (and over and over again) for the files.. although the scenario is pretty rare it does happen. progetto snaps dats are a typical example where fix missing should be turned off. it use some placeholder files for pngs and so you may have hundreds instances of the same missing file and each would be looked up individually with fix missing (while the rebuilder would create them all at once). now if you additionally use solid packed 7z archives you can go for summer holiday while fix missing is working....


so....usually you should a) keep the advanced option disabled, b) do a rebuild first to add all new stuff and the finally scan with fix options on to get rid of the rest of te problems....
Logged
Pages: [1]   Go Up
 

Page created in 0.092 seconds with 21 queries.