Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Running mame and other emulators from network  (Read 3663 times)

0 Members and 1 Guest are viewing this topic.

Hyperfan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:December 16, 2020, 12:19:06 pm
Running mame and other emulators from network
« on: November 03, 2009, 11:20:04 am »
I run a home server and am thinking of putting all the emulators and roms on the server drives then just running them from the network share on each pc to save me having to have mutiple copies of roms.

Does anyone do this? any noticable drop in performace when running bigger chd games?

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: Running mame and other emulators from network
« Reply #1 on: November 03, 2009, 11:47:56 am »
You will have a delay in starting the game while the rom is transferred into memory on the local machine.  This delay depends on the size of the rom and the speed of the network and hardware being used.  If you can deal with that perhaps minimal lag, you should be fine.

Hyperfan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:December 16, 2020, 12:19:06 pm
Re: Running mame and other emulators from network
« Reply #2 on: November 03, 2009, 11:51:37 am »
Do the chd games keep accessing the chd file? i guess they do?

DashRendar

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 488
  • Last login:November 06, 2015, 05:46:52 pm
  • "Don't get your servos in a twist pal."
Re: Running mame and other emulators from network
« Reply #3 on: November 03, 2009, 12:02:51 pm »
Out of curiosity, how many PCs will be running MAME?  Are you setting up an arcade where you would need multiple machines running, and would they be running at the same time?
WANTED: Somebody to go back in time with me. This is not a joke. P.O. Box 322, Oakview, CA 93022. You'll get paid after we get back. Must bring your own weapons. Safety not guaranteed. I have only done this once before.

Hyperfan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:December 16, 2020, 12:19:06 pm
Re: Running mame and other emulators from network
« Reply #4 on: November 03, 2009, 12:09:03 pm »
only a couple of machines on at a time.

I just want the data central then its all backed up automatically on my home server.

Turnarcades

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1973
  • Last login:May 13, 2017, 08:14:29 am
  • Craig @ Turnarcades
    • Turnarcades
Re: Running mame and other emulators from network
« Reply #5 on: November 03, 2009, 12:12:11 pm »
I would place doubt in running any type of game over a network due to the constant read/write cycles of emulators and PC games. Even by modern standards, it's just not as good as having it stored locally. By all means update over your network, but I personally wouldn't run them over the network. Until 'cloud computing' arrives properly and forces network protocol to be improved along with efficient remote access, I'd stick with the 'it's all wired in one place' solution.

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: Running mame and other emulators from network
« Reply #6 on: November 03, 2009, 01:41:14 pm »
If the emulators are stored remotely, then you would definitely have more issues.  I was assuming the roms were networked and the emulators would be local.

Deadly

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 97
  • Last login:April 28, 2021, 02:55:25 am
Re: Running mame and other emulators from network
« Reply #7 on: November 03, 2009, 02:11:28 pm »
If the emulators are stored remotely, then you would definitely have more issues.  I was assuming the roms were networked and the emulators would be local.

HIGHLY ill advised if you are planning on any heavy hitters such as Dreamcast, PS1, PS2 (others) or any MAME games that use a CHD. Storage is dirt cheap these days. If you're worried about updates then script it to push the updates to your clients which will also serve as a backup in case your server went down.
Any of the small stuff (for example) like SNES, Atari, MAME non CHD stuff would work fine over a NIC

Unless you are planning on fiber .. I would assume you're not.
« Last Edit: November 03, 2009, 02:15:32 pm by Deadly »

Hyperfan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:December 16, 2020, 12:19:06 pm
Re: Running mame and other emulators from network
« Reply #8 on: November 03, 2009, 02:19:02 pm »
No just gigabyte ethernet.

I guess then i can have a master emulator folder on the server with all the roms sets ect. then as you say get some big drives on each client and now and again get a script to copy the master set to make sure clients upto date.

1.5 tb drives are dirt cheap as you sy.

Deadly

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 97
  • Last login:April 28, 2021, 02:55:25 am
Re: Running mame and other emulators from network
« Reply #9 on: November 03, 2009, 03:33:35 pm »
Download this:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
You'll want to use robocopy.exe
Here's a script I wrote to use at work. Copy and paste in a text file calling it (for example mame.bat)
You can set this as a scheduled task on the CLIENT side so the ONLY thing you ever have to worry about is updating your server.
This will copy only data that changes to a newer file date. It will also PURGE items that no longer exist on the source.
Minor changes needed to match what ever directories you create.

====== Start Copying below==============
REM This script to be used to PULL files from server to client
REM This maps a drive letter to use
net use K: \\COMPUTERNAME-OR-IP\C$ PASSWORDHERE /USER:COMPUTERNAME-OR-IP\USERNAME /YES

K:

cd\PATH-TO-FILES

REM Tell the path to robocopy.exe. Then the mapped network path. Then where you want the files backed up to locally and finishing with a log file.

C:\Robocopy\robocopy.exe "K:\PATH-TO-FILES" *.* C:\MAME /R:0 /copyall /mir /ETA >> C:\log_files\backup.txt

C:

net use K: /DELETE /YES

exit
======Stop copying at the word EXIT====
 
I've added a couple extra steps due to past issues. This should ensure you see none ;)
« Last Edit: November 03, 2009, 03:36:20 pm by Deadly »

Hyperfan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:December 16, 2020, 12:19:06 pm
Re: Running mame and other emulators from network
« Reply #10 on: November 03, 2009, 03:38:52 pm »
Thats fantastic mate thanks very much.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Running mame and other emulators from network
« Reply #11 on: November 03, 2009, 05:00:39 pm »
I've run Mame off a network drive for quite some time now and the only delay I've noticed is in Mala flipping between games (it goes to get the video for each game and that can slow things down).

I don't have any CHD based games, but everything else doesn't seem to have any speed issues whatsoever.

I am running gigabit ethernet, though and mirror/striped raid on my server so that definitely helps.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Running mame and other emulators from network
« Reply #12 on: November 03, 2009, 05:03:23 pm »
Gigabit network will be fine for most roms: mame unzips them and stores it in memory, and gigabit is almost as fast as cheap local drives.

Normal CHDs, I wouldn't recommended doing them over network.  Mame does not store the whole CHD in memory, so it has to access it throughout the game.  The exception is the CP3 systems: the CHD is saved to nvram at installation, and the nvram is accessed instead of the CHD after that.  So some CHD games will run okay over the network.

LD-CHDs OTOH, can tax a local 7200 RPM drive and with constantly access; a network drive probably can't handle it.  Other normal CHD are also constant access, and they too might run into speed issues.

So you can do like Deadly & robocopy, or keep the rom sets on the net and the (less often changing) CHDs local.  

(I like the robocopy way; I didn't think of it before Deadly montioned it, but I've used robocopy for things like this and it worked great.)
Robin
Knowledge is Power