上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 70 下一页
摘要: 向上游服务器发送请求处理 static void ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u, ngx_uint_t do_write) //向上游服务器发送请求 当一次发送不完,通过ngx 阅读全文
posted @ 2020-10-29 16:37 codestacklinuxer 阅读(111) 评论(0) 推荐(0)
摘要: 代理模式数据流处理: //配置proxy_pass后,在 ngx_http_core_content_phase 里面指向该函数 /* 那么,当有请求访问到特定的location的时候(假设这个location配置了proxy_pass指令), 跟其他请求一样,会调用各个phase的checker和 阅读全文
posted @ 2020-10-29 14:38 codestacklinuxer 阅读(146) 评论(0) 推荐(0)
摘要: valgrind的DRD和Helgrind 处理一个bug时,使用strace 发现线程死锁。 但是发生死锁的位置上下文怎样快速知道呢? 使用gdb 调试 打出调用栈,只能知道运行到此处发生死锁。但是是哪里开始出现死锁呢?? google搜索发现valgrind 的Helgrind可以解决 这个时候 阅读全文
posted @ 2020-10-28 18:13 codestacklinuxer 阅读(207) 评论(0) 推荐(0)
摘要: 这是对引擎strace 的结果,可以看到引擎在回复报文的时, 频繁的使用write 系统调用,报文内容可以看到就是一个http响应报文, 正常情况应该是只会调用一次write回复报文,但是实际情况是调用了多次write回复报文,根据http报文的响应头、响应行等依次回复报文。 所以优化方式: 将多次 阅读全文
posted @ 2020-10-28 17:36 codestacklinuxer 阅读(146) 评论(0) 推荐(0)
摘要: https://linux.cn/article-9273-1.html https://lwn.net/Articles/365835/ Documentation/trace/events.txt trace/ftrace-design.txt 什么是 ftrace? ftrace 是一个 Li 阅读全文
posted @ 2020-10-16 14:54 codestacklinuxer 阅读(161) 评论(0) 推荐(1)
摘要: 一个网络报文从网卡接收到被应用处理,中间主要需要经历两个阶段: 阶段一:网卡通过其DMA硬件将收到的报文写入到收包队列中(入队)阶段二:应用从收包队列中读取报文(出队)由于目前正在使用vpp/dpdk 优化waf引擎的工作,所以就看看ixgbe网卡在dpdk框架下是怎么工作的。下面分别介绍一下 收包 阅读全文
posted @ 2020-10-15 20:27 codestacklinuxer 阅读(1769) 评论(0) 推荐(0)
摘要: vim 的insert data 阅读全文
posted @ 2020-10-10 22:27 codestacklinuxer 阅读(216) 评论(0) 推荐(0)
摘要: gdb 经常用 ,但今天使用gdb 调试的时候, break 打断点, 结果也没有打出 哪一行的信息,就只是提示一个具体地址。 使用单步调试 结果爆出 stepping until exit from function dpdk_device_input, which has no line num 阅读全文
posted @ 2020-09-30 18:11 codestacklinuxer 阅读(1127) 评论(0) 推荐(0)
摘要: 转载:https://initphp.blog.csdn.net/article/details/51911189 一、Nginx的配置文件nginx.conf Nginx的配置文件每一行就是一条命令。 最外层的为核心模块的配置参数(类型:NGX_CORE_MODULE);内部嵌套的为各个子模块的配 阅读全文
posted @ 2020-09-30 10:32 codestacklinuxer 阅读(273) 评论(0) 推荐(0)
摘要: ngx_init_cycle for (i = 0; ngx_modules[i]; i++) { if (ngx_modules[i]->type != NGX_CORE_MODULE) { continue; } module = ngx_modules[i]->ctx; if (module- 阅读全文
posted @ 2020-09-27 10:29 codestacklinuxer 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 70 下一页