Jump to content

[patch][8735] Intel Memory Allocator


Auntie Mangos

Recommended Posts

  • Replies 119
  • Created
  • Last Reply

Top Posters In This Topic

Hi Ambal,

I'm using this patch without any problems. Excely, the lagspikes reduces in terms of duration. So this is for windows servers, a step into better performance. Unfortunately not completely fix for the bottleneck, but hell, every step is one, right?

I'm using this patch in combination with OpenMP and one of the latest revisions before switch to 3.3.2.

Thanks for your efforts. Hope to see much more from you! :)

edit: Uptime 4 days+, with 125 testers.

Link to comment
Share on other sites

well i use RHEL maybe is for that?

Check whether patch applied correctly in Database.h/.cpp - this affects greatly DB memory allocator usage. Also, could you test MemoryAllocator w/o any other custom patches to be sure that this particular one causes problems?

Link to comment
Share on other sites

Cant compile

/root/Desktop/Mangos/Sources/src/shared/vmap/AABSPTree.h:1535: instantiated from \\u2018void G3D::AABSPTree<T>::getMembers(G3D::Array<Key>&) const [with T = VMAP::ModelContainer*]\\u2019

/root/Desktop/Mangos/Sources/src/shared/vmap/VMapManager.h:113: instantiated from here

/root/Desktop/Mangos/Sources/src/shared/vmap/../../../dep/include/g3dlite/G3D/Array.h:125: warning: \\u2018cdecl\\u2019 attribute ignored

/root/Desktop/Mangos/Sources/src/shared/vmap/../../../dep/include/g3dlite/G3D/Array.h: In instantiation of \\u2018G3D::Array<G3D::_AABSPTree::Handle<VMAP::ModelContainer*>*>\\u2019:

/root/Desktop/Mangos/Sources/src/shared/vmap/AABSPTree.h:380: instantiated from \\u2018G3D::AABSPTree<VMAP::ModelContainer*>::Node\\u2019

/root/Desktop/Mangos/Sources/src/shared/vmap/AABSPTree.h:1497: instantiated from \\u2018void G3D::AABSPTree<T>::intersectRay(const G3D::Ray&, RayCallback&, float&, bool, bool) const [with RayCallback = VMAP::IntersectionCallBack<VMAP::ModelContainer>, T = VMAP::ModelContainer*]\\u2019

/root/Desktop/Mangos/Sources/src/shared/vmap/VMapManager.cpp:560: instantiated from here

/root/Desktop/Mangos/Sources/src/shared/vmap/../../../dep/include/g3dlite/G3D/Array.h:125: warning: \\u2018cdecl\\u2019 attribute ignored

AR libmangosvmaps.a

make[5]: Entering directory `/root/Desktop/Mangos/Sources/objdir/src/shared/vmap'

make[5]: Nothing to be done for `install-exec-am'.

make[5]: Nothing to be done for `install-data-am'.

make[5]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/shared/vmap'

make[4]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/shared/vmap'

make[4]: Entering directory `/root/Desktop/Mangos/Sources/objdir/src/shared'

CXX Base.o

CXX Common.o

CXX Log.o

CXX MemoryLeaks.o

CXX ProgressBar.o

CXX Threading.o

CXX Util.o

AR libmangosshared.a

make[5]: Entering directory `/root/Desktop/Mangos/Sources/objdir/src/shared'

make[5]: Nothing to be done for `install-exec-am'.

make[5]: Nothing to be done for `install-data-am'.

make[5]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/shared'

make[4]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/shared'

make[3]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/shared'

make[2]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/shared'

Making install in realmd

make[2]: Entering directory `/root/Desktop/Mangos/Sources/objdir/src/realmd'

CXX AuthSocket.o

CXX Main.o

CXX RealmList.o

CXXLD mangos-realmd

/usr/bin/ld: cannot find libtbbmalloc.so.2

collect2: ld returned 1 exit status

make[2]: *** [mangos-realmd] Error 1

make[2]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src/realmd'

make[1]: *** [install-recursive] Error 1

make[1]: Leaving directory `/root/Desktop/Mangos/Sources/objdir/src'

make: *** [install-recursive] Error 1

Link to comment
Share on other sites

Ok Ambal, after test, i think the improvement is not the same in Linux System's, i noted that in the latest rev, i have more speed whitout Intel Allocator, noted that i tested in RHEL 5.4 x64.

Thanks for report, nanounico :) What about stability with new Intel TBB sources in 'rebase_branch'? Is it better or not? Do you still get crashes with memory allocator on your RHEL system?

Like I said before, performance gains depend greatly on OS you use ^_^ Because there are tons of different *nix OSes, some of which have very powerful standard memory allocator, thats why some of you, guys, do not notice any differences in performance ;)

P.S. You can compile mangos w/o Intel TBB memory allocator just by specifying USE_STANDARD_MALLOC define while compiling 'framework' project :rolleyes:

Link to comment
Share on other sites

I was wondering, couln't you make "tbb.so/tbbmalloc.so on *nix and tbb(_debug).dll/tbbmalloc(_debug).dll on windows" auto copy in the release dir?

Well, these libraries auto-copy into output folder :) You just need to copy them further into you mangos folder :)

And yes, if USE_STANDARD_MALLOC is defined, there is no need in them in mangos folder... Atleast for now since we are going to base all threading code on Intel TBB library in nearest future ;)

Link to comment
Share on other sites

Congrats Ambal for Push on Master.. :P Great Work, We need more improvements like this..

Chears.

PD: I dont know if is only me, but i feel a little angry when "Trinity" Stole(adapt) the best codes(Updates) created for Mangos, i say this, becouse, i suppose that not be long before they implement it well. sorry if I offend someone, is only my opinion.

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