View previous topic :: View next topic |
Author |
Message |
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Sun Aug 10, 2014 3:09 Post subject: Does ResMan work as an alternative to erf MODs? |
|
|
I am fooling around with Jenkins as a Continuous Integration and SVN to store the entire temp0 contents of my module.
I am using shell commands to move all files besides the module.ifo to relevant folders for nwnx_resman to use.
This results in a compiled mod file that is 300kb instead of the 150mb Module I was working with before.
I am just wondering if anyone has tried such a drastic approach before?
Is there any performance degradation associated with having all module resources in the externalsources directory? |
|
Back to top |
|
|
leo_x
Joined: 25 Aug 2010 Posts: 75
|
Posted: Sun Aug 10, 2014 17:06 Post subject: |
|
|
I've moved all my scripts outside of the module for about a month now and seen no performance degradation. NWServer caches all scripts, so one of the big performance concerns is probably eliminated there. Linux seems quite good at caching file access and at avoiding fragmentation.
I doubt anyone has done what you're asking about because there is a big memory leak in the resman in the master branch for that kind of usage. I believe that I've fixed this issue here: https://github.com/jd28/nwnx2-linux/tree/resman_memleak But haven't wanted to send in a pull request until it had been tested further. Details are at the bottom of this thread: http://www.nwnx.org/phpBB2/viewtopic.php?t=1298 _________________ the awakening (PW Action) |
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Wed Aug 13, 2014 21:32 Post subject: |
|
|
I can confirm that you just need the module.ifo and at least the starting area.
Otherwise it will report invalid/corrupt module.
I've got my Jenkins setup to compile and pack modules, and even deploy them to amazon EC2 Linux servers automatically.
If your interested in such a thing - Vagrant is a good tool to use.
vagrant ssh will allow you to open a ssh session to the virtual machine once it starts up.
From there, I use sftp to pull the compiled module artifact down, and then kick off the nwnserver process. |
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Wed Aug 13, 2014 21:34 Post subject: |
|
|
Yeah, vagrant is pretty cool. Too bad it doesn't target Xen or KVM.
I'm kind of waiting for docker to gain a bit more traction and for the tooling to improve. |
|
Back to top |
|
|
|