PDA

View Full Version : Question about ./shared_memory


Huppy
11-20-2015, 12:15 PM
I was wondering, the shared_memory executable, is that supposed to keep running after
you start the linux server ?
It seems to do it's shared loading, then stops, goes back to cmd prompt, (like below)
Takes about 5 seconds from enter button to cmd prompt again.
huppy@phenom:~/eqemu$ ./shared_memory
[Status] Loading items...
[Status] Loading factions...
[Status] Loading loot...
[Status] Loading skill caps...
[Status] Loading spells...
[Status] Loading base data...
huppy@phenom:~/eqemu$
My whole server starts up without any errors and nothing in the logs. It does create the
files in the server share folder.
Just to add - when I run top, I don't see the process in the list. If I run killall cmd, it tells
me there is no such process.

Shendare
11-20-2015, 12:37 PM
shared_memory takes the listed portions of the database and saves them into files in the shared_memory folder, allowing them to be quickly and easily loaded directly into memory instead of being queried from the database each time they're accessed by each different process.

So, yeah, once it's done its refresh of those files from the database, its work is done until you make a change to the database. It's simplest to have it run each time you start your server, so you don't have to worry about whether or not you've made an applicable change that needs shared_memory to be run again.

Huppy
11-20-2015, 12:46 PM
Oh thats great to hear, thank you Shendare. I was just concerned, because I haven't run a linux box
in awhile, so I wanted to make sure everything was behaving normally, haha