2015年9月24日

摘要: dhcp获取ip地址,网卡驱动和ip地址获取正常,ping www.baidu.com可以ping通,但是打开浏览器或者qq上网不行,而且系统有提示腾讯管家出错的信息,初步怀疑360和腾讯管家打架导致,后采用以下步骤恢复。#ipconfig /release#ipconfig /renew#nets... 阅读全文
posted @ 2015-09-24 22:39 深入浅出eBPF 阅读(212) 评论(0) 推荐(0) 编辑

2015年9月12日

摘要: Changing author infohttps://help.github.com/articles/changing-author-info/To change the name and/or email address recorded in existing commits, you mu... 阅读全文
posted @ 2015-09-12 20:36 深入浅出eBPF 阅读(261) 评论(0) 推荐(0) 编辑

2015年9月7日

摘要: 个人总结:FlatBuffer相对于Protobuffer来讲,优势如下:1. 由于省去了编解码的过程,所以从速度上快于Protobuffer,个人测试结果100w次编解码,编码上FlatBuffer 优势不明显,解码上优势明显2. FlatBuffer的格式文件定义上比Protobuffer格式更... 阅读全文
posted @ 2015-09-07 10:42 深入浅出eBPF 阅读(2431) 评论(0) 推荐(0) 编辑

2015年6月19日

摘要: Linux环境设置Socket接收和发送超时:须如下定义:struct timeval timeout = {3,0};//设置发送超时setsockopt(socket,SOL_SOCKET,SO_SNDTIMEO,(char *)&timeout,sizeof(struct timeval));... 阅读全文
posted @ 2015-06-19 21:36 深入浅出eBPF 阅读(6786) 评论(0) 推荐(0) 编辑

2015年6月18日

摘要: 最近学习MQTT协议,选择了当前比较流行的MQTT Broker “mosquitto”,但是在阅读代码过程中发现其网络底层库封装的相当差劲。对于MQTT协议的变长头长度的读取上,基本上采取每次一个byte的方式进行读取判断,对于系统调用read的高代价来讲,真的是相当的浪费,也难怪其不能作为高并发... 阅读全文
posted @ 2015-06-18 11:33 深入浅出eBPF 阅读(1675) 评论(0) 推荐(0) 编辑

2015年6月9日

摘要: eglibc 2.11 allocator (a variant of ptmalloc), nedmalloc 1.06, hoard 3.8, jemalloc 2.2.1, and tcmalloc 1.7 性能测试http://locklessinc.com/benchmarks_alloc... 阅读全文
posted @ 2015-06-09 14:31 深入浅出eBPF 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://hbprotoss.github.io/posts/li-yong-ld_preloadjin-xing-hook.html好久没玩hook这种猥琐的东西里,今天在Linux下体验了一把。loader在进行动态链接的时候,会将有相同符号名的符号覆盖成LD_PRELOAD指定的... 阅读全文
posted @ 2015-06-09 14:29 深入浅出eBPF 阅读(2441) 评论(0) 推荐(0) 编辑

2015年6月5日

摘要: $uname-aLinuxdebian-11-343.16.0-4-amd64#1SMPDebian3.16.7-ckt9-3~deb8u1(2015-04-24)x86_64GNU/Linux经过测试Debina 8.0 已经解决了Aceept thundering herdhttps://gis... 阅读全文
posted @ 2015-06-05 17:40 深入浅出eBPF 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 设置相关脚本:默认:$cat /proc/sys/net/ipv4/ip_local_port_range32768 61000$cat setting.sh#/bin/bash# modify backlog, meanwhile change listen function to 1024, ... 阅读全文
posted @ 2015-06-05 15:49 深入浅出eBPF 阅读(846) 评论(1) 推荐(0) 编辑

2015年5月26日

摘要: 原文地址:https://code.facebook.com/posts/296442737213493/introducing-mcrouter-a-memcached-protocol-router-for-scaling-memcached-deployments/开源地址:https://g... 阅读全文
posted @ 2015-05-26 10:02 深入浅出eBPF 阅读(214) 评论(0) 推荐(0) 编辑

导航