ub_server_running_memory_layout
2016-06-21 19:57:47 0 举报
ub_server_running_memory_layout是一个用于描述服务器运行内存布局的术语。它指的是服务器在运行时,操作系统和应用程序如何分配和管理内存资源的一种方式。这个布局包括了内存的各个区域,如堆、栈、全局/静态变量等,以及它们在物理内存中的位置和大小。通过了解服务器的内存布局,开发人员可以更好地优化程序性能,减少内存泄漏和提高系统稳定性。此外,它还有助于分析和解决内存相关的问题,如内存碎片、内存泄漏等。总之,ub_server_running_memory_layout是一个重要的概念,对于理解服务器内存管理和优化应用程序性能具有重要意义。
作者其他创作
大纲/内容
int epfd
指针service_handler_base*
sql_db_session_map
字符串\"pay_direct_trans\"
void* data
mcpack
nshead
rpc_client_map
void* read_buf
type=void*size=sizeof(/thread_instance_data**)
ub_server_pdata_t
void* usersef_buf
store the starting addr of
each thread_instance_data objhas its own set of pointerspointing to their own set of service objs like create_direct_trans_serivce
int sev_sock
....................
void* pool
malloc-edsize=131072
thread_instance_data
thread_data
main threadg_pkey
thread 2g_pkey
字符串\"create_direct_trans\"
......
1)inside one thread_instance_data its thread_data member variable is used by all service objs like create_direct_trans_serice for construction2)members of thread_data like sql_db_session_map are initialized inside constructors of service classes like create_direct_trans_service
handler_map(map)
pthread_mutex_t lock
create_direct_trans_service
pthread_t pid
type=void *size=8 bytes
int fd
写出
store the starting addr of
int (* cb_native)()
g_server_vec.rpc_proc_list
malloc-edsize=655360
pay_direct_trans_service
thread_instance_data for thread 0newed inside dispatcher::create_thread_datahold own map of cmd-service_handler_wrapper*
ub_server_handle
void* user_buf
读入
total size=12*sizeof(void *)there are 12 pointers1 per thread
struct _xpool_t
void* write_buf
redis_client
void* parent
epoll
thread 1g_pkey
int (* cb_drastic)()
0 条评论
下一页