Raised This Month: $ Target: $400
 0% 

Multiple servers from same SRCDS installation => Bad?


Post New Thread Reply   
 
Thread Tools Display Modes
Neevar
Senior Member
Join Date: Mar 2014
Old 09-09-2014 , 12:54   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #11

they kinda make sense to me. I will try out and let you guys know.

thanks for the input!
Neevar is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-09-2014 , 14:39   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #12

Quote:
Originally Posted by joropito View Post
PS: cp -rs will work, but it's better in performance to symlink full folder and not each file.
Performance during creation or performance during lookup? They may take up slightly more room in the filesystem index, but lookup time should remain unchanged... or be slightly faster as it no longer has to do an intermediate lookup on the folder.

The point in doing cp -rs is that it allows you to add files to directories such as SourceMod's configs/, extensions/, and plugins/ and/or have different files in them. Incidentally, as previously noted, each install should have its own logs directory.

For instance, I have multiple configurations set up for SourceMod on my test server. I have a base install of sourcemod installed as addons/sourcemod/ with cp -rs copies as addons/sourcemod-prophunt/, addons/sourcemod-vsh/, and addons/sourcemod-midwest/ for example. These have been created using cp -rs ~/tf2/addons/sourcemod/* ~/tf2/addons/sourcemod-prophunt/ as an example. I also use +sm_basepath in my server startup line to specify which copy of SourceMod I'm using. When I updated files in the main version, I use cp -rs to copy them again... which results in a lot of errors about files already pointing to said files, but it copies the ones its missing.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-09-2014 at 14:40.
Powerlord is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-12-2014 , 00:14   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #13

using powerlord's method of cp -rs

unable to notice any drastic changes but will monitor when server are full and see
Neevar is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-12-2014 , 08:38   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #14

Quote:
Originally Posted by Neevar View Post
using powerlord's method of cp -rs

unable to notice any drastic changes but will monitor when server are full and see
You can notice at map load time (when files are read from disk)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Amroth
Senior Member
Join Date: Apr 2013
Location: /root
Old 09-12-2014 , 11:14   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #15

Recently, map loads take too much time in my servers,
I use ln -s to each server for maps folder. Main maps folder has 675 file and 11.204mb total.

I tried to use cp -rs command but its even worse to read files, In winscp, lookup to folder even take too much time.

Is symbolic link can be reason for slow maps load? or my maps folder too big?

Last edited by Amroth; 09-12-2014 at 11:14.
Amroth is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-12-2014 , 11:38   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #16

If you use cp -rs, listing files will take more time because it has to follow each link.

Using ln -s (at folder level), the only link lookup is for folder, then you're inside the original folder.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Neevar
Senior Member
Join Date: Mar 2014
Old 09-25-2014 , 03:03   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #17

Hi guys,

I'm here to say that i'm running 2 x vanilla server and 2 x modded servers using cp -rs

each copy has it's own sm and mm folders

recently, i realized that there are random crashes in the server.

the crashes are usually pointing to server_srv.so, engine_srv.so, libtier0_srv.so

below is one of the crash i get. This is a tank server that used to run smoothly when i didn't use symlinks and ran individual copies. Nothing changed

Code:
#0  0xb6cb2a59 in Sys_Error_Internal(bool, char const*, char*) () from /home/game-server/GS5_TankRush/bin/engine_srv.so
#0  0xb6cb2a59 in Sys_Error_Internal(bool, char const*, char*) () from /home/game-server/GS5_TankRush/bin/engine_srv.so
#1  0xb6cb2b20 in Sys_Error(char const*, ...) () from /home/game-server/GS5_TankRush/bin/engine_srv.so
#2  0xb6cb2b96 in CEngineConsoleLoggingListener::Log(LoggingContext_t const*, char const*) () from /home/game-server/GS5_TankRush/bin/engine_srv.so
#3  0xb748b529 in CLoggingSystem::LogDirect(int, LoggingSeverity_t, Color, char const*) () from bin/libtier0_srv.so
#4  0xb7489b76 in Error () from bin/libtier0_srv.so
#5  0xaf2aaefc in UTIL_SetModel(CBaseEntity*, char const*) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#6  0xaed905d9 in CBaseAnimating::SetModel(char const*) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#7  0xaf059164 in CWeaponSpawn::Spawn() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#8  0xaf2ac1d9 in DispatchSpawn(CBaseEntity*, bool) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#9  0xaee8bf84 in SpawnAllEntities(int, HierarchicalSpawn_t*, bool) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#10 0xaee8cb33 in CMapEntitySpawner::SpawnAndActivate(bool) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#11 0xaee8d5a1 in MapEntity_ParseAllEntities(char const*, IMapEntityFilter*, bool) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#12 0xaecb437e in CTerrorGameRules::CleanUpMap() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#13 0xaecbbf03 in CTerrorGameRules::RestartRound() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#14 0xaf00924e in CDirector::Restart() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#15 0xaf009d46 in CDirector::FullRestart() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#16 0xaf03f6dd in CDirectorSessionManager::UpdateDisconnectedPlayers() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#17 0xaf03f725 in CDirectorSessionManager::UpdateSession() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#18 0xaf00c134 in CDirector::Update() () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#19 0xaee64fdf in CServerGameDLL::GameFrame(bool) () from /home/game-server/GS5_TankRush/left4dead2/bin/server_srv.so
#20 0xa9085c73 in __SourceHook_FHCls_IServerGameDLLGameFramefalse::Func(bool) () from /home/game-server/GS5_TankRush/left4dead2/addons/sourcemod/bin/sourcemod.2.l4d2.so
#21 0xbfbd3a58 in ?? ()

could it be that files in the bin directory should not be symlinked?

the vanilla servers do crash too. But in their report, there's no information about the crash
Code:
----------------------------------------------
CRASH: Wed Sep 25 10:15:29 SGT 2014
Start Line: ./srcds_linux -game left4dead2 +hostport 27016 -ip 192.168.1.102 +mp_gamemode versus +map c8m1_apartment -debug
End of Source crash report
----------------------------------------------
I've checked to see if the times of the crashes matched, but none did.
Neevar is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-25-2014 , 08:56   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #18

Should not be a problem.. but if the game tries to update itself could be.

Not sure on SRCDS but in HLDS the script to run the server try to update the game.
While using symlinks you have to run updates in a separate way.

Also, if you see the traceback it crash on UTIL_SetModel called after some sourcemod hook.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Neevar
Senior Member
Join Date: Mar 2014
Old 09-25-2014 , 11:02   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #19

yeap, noticed that setmodel thing.

will await another crash and check the logs to see if i can find anything.
Neevar is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-25-2014 , 22:49   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #20

so my coop vanilla crashed today.

heres the debug info:
Code:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000000 in ?? ()
#0  0x00000000 in ?? ()
#1  0xb4b54a3f in SQVM::LeaveFrame() () from /home/game-server/GS2_PureVanillaCoop/bin/vscript_srv.so
#2  0xb4b55388 in SQVM::Return(int, int, SQObjectPtr&) () from /home/game-server/GS2_PureVanillaCoop/bin/vscript_srv.so
#3  0xb4b4f386 in SQVM::Execute(SQObjectPtr&, int, int, SQObjectPtr&, unsigned int, SQVM::ExecutionType) () from /home/game-server/GS2_PureVanillaCoop/bin/vscript_srv.so
#4  0xb4b50d8b in SQVM::Call(SQObjectPtr&, int, int, SQObjectPtr&, unsigned int) () from /home/game-server/GS2_PureVanillaCoop/bin/vscript_srv.so
#5  0xb4b24061 in sq_call () from /home/game-server/GS2_PureVanillaCoop/bin/vscript_srv.so
#6  0xb4b5f301 in CSquirrelVM::ExecuteFunction(HSCRIPT__*, CVariantBase<CVariantDefaultAllocator>*, int, CVariantBase<CVariantDefaultAllocator>*, HSCRIPT__*, bool) () from /home/game-server/GS2_PureVanillaCoop/bin/vscript_srv.so
#7  0xaed17fd0 in CScriptSpeechQueue::PerFrameDispatch() () from /home/game-server/GS2_PureVanillaCoop/left4dead2/bin/server_srv.so
#8  0xaebb2a7c in InvokePerFrameMethod(void (IGameSystemPerFrame::*)(), char const*) [clone .isra.25] () from /home/game-server/GS2_PureVanillaCoop/left4dead2/bin/server_srv.so
#9  0xaebb2fd7 in IGameSystem::FrameUpdatePostEntityThinkAllSystems() () from /home/game-server/GS2_PureVanillaCoop/left4dead2/bin/server_srv.so
#10 0xaedfa422 in CServerGameDLL::GameFrame(bool) () from /home/game-server/GS2_PureVanillaCoop/left4dead2/bin/server_srv.so
#11 0xa914cc73 in __SourceHook_FHCls_IServerGameDLLGameFramefalse::Func(bool) () from /home/game-server/GS2_PureVanillaCoop/left4dead2/addons/sourcemod/bin/sourcemod.2.l4d2.so
#12 0xbfb90bb8 in ?? ()
In the logs on that time, I don't see anything other than people chatting, the director spawning mobs and all. everything is normal.

But i realized something.
This is the log continued on another new log file
Code:
L 09/25/2014 - 23:05:54: Log file started (file "logs/L192_168_001_102_27016_201409252305_000.log") (game "/home/game-server/GS2_PureVanillaCoop/left4dead2") (version "5565")
L 09/25/2014 - 23:05:54: Banid: "<><STEAM_1:1:38163693><>" was banned "permanently" by "Console"
L 09/25/2014 - 23:05:54: Banid: "<><STEAM_1:1:53994890><>" was banned "permanently" by "Console"
L 09/25/2014 - 23:05:54: server_cvar: "sm_heartbeat_timeout" "20.0"
L 09/25/2014 - 23:13:07: [META] Loaded 0 plugins (2 already loaded)
L 09/25/2014 - 23:13:07: Preventing spawning
L 09/25/2014 - 23:13:08: server_message: "quit"
L 09/25/2014 - 23:13:08: Log file closed
Is this normal???

Crash happened 23:05:22 (stated in the debug.log)
the log previous to this log ends at 23:05:07
This log started at 23:05:54

i have sv_logflush 1

there's no error logs or anything in sourcemod folder though

I'm using Ubuntu 14.04 LTS

perhaps i should change OS and see? any reccomendation?
Neevar is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:42.


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