Jump to content

mtmaps (OpenMP)


Recommended Posts

  • 4 weeks later...
  • Replies 319
  • Created
  • Last Reply

Top Posters In This Topic

just a question.... i havn't the omp.h in my compiler (VC++ express 2008) so how can i use this patch?

or where can i find that header?

I wonder if that's possible. All I know is that you are right that the express version does not support openMP. Only the professional and the team version supports it...

Maybe someone knows a 'hacky' way to implement it....^_^

Link to comment
Share on other sites

I wonder if that's possible. All I know is that you are right that the express version does not support openMP. Only the professional and the team version supports it...

Maybe someone knows a 'hacky' way to implement it....^_^

Platform SDK 2008

http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en

Link to comment
Share on other sites

  • 1 month later...

hello just want to note here, that we're running mangos with latest 3.1.3 commit

very stable with this patch by derex: http://pastebin.com/m7d3df483

stable means in this case no crash for 48h with 1200 user peak

actualy i had to implement two patches (but are hacks :/ ) for some long known crashes/freeze - but don't know if they are related to the patch so i won't post them here

Link to comment
Share on other sites

my crashfix: http://pastebin.com/m2038ed4b

ps: it's a realy bad hack :P and if someone asks: you don't got it from me.. ^^

the other one is just removing an assert..

please don't spam the thread with such stuff and stay on topic.. i just posted this patch cause patch in first post got no updates.. also the patch i posted is surely nothing special and if you have an already running one you shouldn't switch to this one..

ps: cyrex you should use another os.. i think win3.11 doesn't support 64bit, which is in your case better, cause you have more than 4gb ram which can't be adressed with 32bit ^^

Link to comment
Share on other sites

ps: cyrex you should use another os.. i think win3.11 doesn't support 64bit, which is in your case better, cause you have more than 4gb ram which can't be adressed with 32bit ^^

win3.11 was 16bit ;)

but i'd suggest to use win 1.0... at least that one did not have a bluescreen (afaik) :P

Link to comment
Share on other sites

hello just want to note here, that we're running mangos with latest 3.1.3 commit

very stable with this patch by derex: http://pastebin.com/m7d3df483

Thanks for using it, but my name is not Derex (while it's nice that you compare me with him). Actually it's my patch with Infinity's mods, and slight omp critical lock added somewhere where i was too stupid to forget. EVEN if Derex added something to it, It's rude to completely remove any credits of Infinity's and mine work.

Link to comment
Share on other sites

hello just want to note here, that we're running mangos with latest 3.1.3 commit

very stable with this patch by derex: http://pastebin.com/m7d3df483

stable means in this case no crash for 48h with 1200 user peak

actualy i had to implement two patches (but are hacks :/ ) for some long known crashes/freeze - but don't know if they are related to the patch so i won't post them here

This patch for what revision? Does it works correctly after implementing per-map guid storing

Link to comment
Share on other sites

Core: 8754

I think that crash is for mtmaps

(gdb) bt full
#0  FreezeDetectorRunnable::run (this=0x7f77c8f1e3b0)
   at ../../../src/mangosd/Master.cpp:111
   curtime = <value optimized out>
#1  0x00000000007e4efc in ACE_Based::Thread::ThreadTask (param=0x7f77cdcd3860)
   at ../../../src/shared/Threading.cpp:183
   _task = (class ACE_Based::Runnable *) 0x7f77c8f1e3b0
#2  0x00007f77ce48a3ba in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00007f77cda4cfcd in clone () from /lib/libc.so.6
No symbol table info available.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Some idea?

Link to comment
Share on other sites

Core: 8754

I think that crash is for mtmaps

(gdb) bt full
#0  FreezeDetectorRunnable::run (this=0x7f77c8f1e3b0)
   at ../../../src/mangosd/Master.cpp:111
   curtime = <value optimized out>
#1  0x00000000007e4efc in ACE_Based::Thread::ThreadTask (param=0x7f77cdcd3860)
   at ../../../src/shared/Threading.cpp:183
   _task = (class ACE_Based::Runnable *) 0x7f77c8f1e3b0
#2  0x00007f77ce48a3ba in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00007f77cda4cfcd in clone () from /lib/libc.so.6
No symbol table info available.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Some idea?

Give us a full backtrace, your server froze, this is just the freeze detector

Link to comment
Share on other sites

my crashfix: http://pastebin.com/m2038ed4b

ps: it's a realy bad hack :P and if someone asks: you don't got it from me.. ^^

the other one is just removing an assert..

please don't spam the thread with such stuff and stay on topic.. i just posted this patch cause patch in first post got no updates.. also the patch i posted is surely nothing special and if you have an already running one you shouldn't switch to this one..

ps: cyrex you should use another os.. i think win3.11 doesn't support 64bit, which is in your case better, cause you have more than 4gb ram which can't be adressed with 32bit ^^

Hi balrok, Thanks for your time, just one question it's this assert the one that you remove ? And it's this safe to remove?

Object.h

 const uint32& GetUInt32Value( uint16 index ) const
       {
           ASSERT( index < m_valuesCount || PrintIndexError( index , false) );
           return m_uint32Values[ index ];
       }

Link to comment
Share on other sites

Source: http://bitbucket.org/KingPin/trinitycore2/changeset/2e70f8737837/

Author: raczman

Rewritten by mangos, works fine.

Productivity above on 20-30 %, than at mtmaps Derex

On Quad Core:

Cpu0 : 31.7%us, 6.3%sy, 0.0%ni, 57.3%id, 0.3%wa, 0.3%hi, 4.0%si, 0.0%st

Cpu1 : 46.3%us, 6.7%sy, 0.0%ni, 43.7%id, 0.0%wa, 0.3%hi, 3.0%si, 0.0%st

Cpu2 : 39.9%us, 5.0%sy, 0.0%ni, 49.2%id, 0.3%wa, 0.7%hi, 5.0%si, 0.0%st

Cpu3 : 37.0%us, 4.6%sy, 0.0%ni, 52.1%id, 0.3%wa, 0.3%hi, 5.6%si, 0.0%st

On Dual Core:

Cpu0 : 51.5%us, 3.7%sy, 0.0%ni, 41.1%id, 2.0%wa, 0.0%hi, 1.7%si, 0.0%st

Cpu1 : 51.5%us, 4.6%sy, 0.0%ni, 38.3%id, 2.0%wa, 0.3%hi, 3.3%si, 0.0%st

Maximum online 2700ppl

patch 5.1(Fixed compil on Windows) rev 8120+ : http://filebeam.com/bf71d473c6bab04d6ca59806719ca40e

patch 5 rev 8120+ : http://filebeam.com/f1f3ca6b6321e7c714424322b2166cde

Guys the patch approaches for version 3.1.3 ^_^

Greetings from Russia

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use