add some metrics for memory statistic. current heap memory usage, current hashtable size and connection buffer usage.
fix __GNUC_MINOR__ >= 6 to 2
it's may be error or just design in __GNUC__ && __GNUC_MINOR__ judgment for
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic pop
For the diagnostic pop to have only local effect requires version GCC 4.6 or higher, in GCC 4.2 it affects the entire file.
Merge remote-tracking branch 'twitter/master'
move memory manage code(alloc, zalloc etc) to mc_alloc(.c/.h).
add (heap_curr) a metric for current heap memory usage.
add metrics for current hashtable size and connection buffer usage.
add a tool that will monitar a memory usage.
we should have to maintain the free memory area for each slab this will defenately reduced the slab calcification problem.
See twctop in scripts folder
@manjuraj sir ,
I have red most of the information about the project and it's code . now I am trying to create a small module for "creating a memory slab " . next what should I do ?