AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is it wise ? (https://forums.alliedmods.net/showthread.php?t=171630)

vamppa 11-08-2011 12:17

Is it wise ?
 
Is it wise
To unload/load amxmodx modules quite a lot of times through this method
on a daily basis ?

meta unload "Ham Sandwich"
meta unload "Fun"
meta unload "FakeMeta"
amx_off

amx_on
meta load addons/amxmodx/modules/hamsandwich_amxx_i386.so
meta load addons/amxmodx/modules/fun_amxx_i386.so
meta load addons/amxmodx/modules/fakemeta_amxx_i386.so

plugins functions work fine without the modules loaded into the meta list.
none problems so far.

any recommendations?
or thoughts about possible negative outcomes?
It would be appreciated to know before I apply this method onto more servers.

drekes 11-08-2011 13:54

Re: Is it wise ?
 
What the reason why you're doing this ?

fysiks 11-08-2011 18:10

Re: Is it wise ?
 
You shouldn't need to unload any module that doesn't do anything explicitly (aka all the default AMX Mod X core modules like all of the ones you just listed).

vamppa 11-08-2011 19:42

Re: Is it wise ?
 
Quote:

Originally Posted by drekes (Post 1592827)
What the reason why you're doing this ?

server CPU/MEM use.
or to reduce any possible lag caused by using too much resources.

fysiks 11-09-2011 01:34

Re: Is it wise ?
 
Quote:

Originally Posted by vamppa (Post 1593031)
server CPU/MEM use.
or to reduce any possible lag caused by using too much resources.

That would mean that the computer you are running the server on is from 1995.

If you are experiencing these issues then something else is likely causing it (if your computer is newer than 10 years old).

vamppa 11-09-2011 07:54

Re: Is it wise ?
 
nah where are not experiencing that, I just want to optimize it as best as I can.
because this method will be done on servers around the world which might be less better in hardware then my own.

so this wont cause any negative problems? just positive?

XINLEI 11-09-2011 08:11

Re: Is it wise ?
 
depending what you server is running.

sake 11-09-2011 09:17

Re: Is it wise ?
 
Don't unload AMXX Modules at runtime. End of story.

fysiks 11-09-2011 23:18

Re: Is it wise ?
 
The three modules that you listed (if you read all my posts) are not doing anything if they are unused by any plugin. But, the fact that they are running means that a plugin needs them. Regardless of the state of AMX Mod X (on or off) you should leave the modules running. If you didn't need them they wouldn't have loaded.

vamppa 11-11-2011 12:55

Re: Is it wise ?
 
yes, exactly
the strange thing is eventho they are unloaded the plugins that would require them still work fine map after map after day after day.
when the server is rebooted so will the load/unload.

I am guessing it is still in the servers memory.
will this cause any problems?


All times are GMT -4. The time now is 14:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.