<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[terminator3的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/terminator3</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; terminator3]]></copyright><item><title><![CDATA[codis3.1  codis-test 安装部署实践之三  codis-test的配置及启动]]></title><link>https://blog.csdn.net/terminator3/article/details/52893645</link><guid>https://blog.csdn.net/terminator3/article/details/52893645</guid><author>terminator3</author><pubDate>Sat, 22 Oct 2016 17:34:58 +0800</pubDate><description><![CDATA[本系列安装实践文档，参考codis 官方安装说明文档
     https://github.com/CodisLabs/codis/blob/release3.1/doc/tutorial_zh.md


#关闭防火墙，以免codis受到 各种虚拟机、docker环境的防火墙干扰
     #防火墙状态
     # systemctl status firewalld.servic]]></description><category></category></item><item><title><![CDATA[codis3.1  codis-test 安装部署实践之二  编译安装codis]]></title><link>https://blog.csdn.net/terminator3/article/details/52893638</link><guid>https://blog.csdn.net/terminator3/article/details/52893638</guid><author>terminator3</author><pubDate>Sat, 22 Oct 2016 17:33:58 +0800</pubDate><description><![CDATA[本系列安装实践文档，参考codis 官方安装说明文档
     https://github.com/CodisLabs/codis/blob/release3.1/doc/tutorial_zh.md




#安装编译相关工具
     [root@localhost src]#  yum -y  install gcc  git make autoconf


#安装 g]]></description><category></category></item><item><title><![CDATA[codis3.1  codis-test 安装部署实践之一  zookeeper  安装部署实践]]></title><link>https://blog.csdn.net/terminator3/article/details/52893633</link><guid>https://blog.csdn.net/terminator3/article/details/52893633</guid><author>terminator3</author><pubDate>Sat, 22 Oct 2016 17:33:01 +0800</pubDate><description><![CDATA[本系列安装实践文档，参考codis 官方安装说明文档
     https://github.com/CodisLabs/codis/blob/release3.1/doc/tutorial_zh.md




参考 Zookeeper 安装和配置
     http://coolxing.iteye.com/blog/1871009


#三台服务器，每台服务器的 hosts]]></description><category></category></item><item><title><![CDATA[问题处理备忘]]></title><link>https://blog.csdn.net/terminator3/article/details/8620558</link><guid>https://blog.csdn.net/terminator3/article/details/8620558</guid><author>terminator3</author><pubDate>Thu, 28 Feb 2013 09:48:27 +0800</pubDate><description><![CDATA[网络
        服务端程序，尽量避免主动关闭连接
            连接量大的时候，主动关闭大量的连接，会有大量 time_wait
            此时尽量让 客户端来关闭连接，服务端做半关闭即可（半关闭 写）
            另，《为什么 muduo 的 shutdown() 没有直接关闭 TCP 连接？ 》提到 
                用 sh]]></description><category></category></item><item><title><![CDATA[pprof 的使用]]></title><link>https://blog.csdn.net/terminator3/article/details/8588127</link><guid>https://blog.csdn.net/terminator3/article/details/8588127</guid><author>terminator3</author><pubDate>Mon, 18 Feb 2013 16:05:28 +0800</pubDate><description><![CDATA[1、安装
您可以在 google-perftools 的网站 (http://code.google.com/p/google-perftools/downloads/list) 上下载最新版的安装包


2、编译与运行



void bar()
{
    for(int i = 0; i < 1000; i++)
    {
        ;
    }

}

void]]></description><category></category></item><item><title><![CDATA[map hash_map unordered_map 性能测试 统计]]></title><link>https://blog.csdn.net/terminator3/article/details/8562164</link><guid>https://blog.csdn.net/terminator3/article/details/8562164</guid><author>terminator3</author><pubDate>Fri, 01 Feb 2013 11:10:10 +0800</pubDate><description><![CDATA[http://blog.chinaunix.net/uid-20384806-id-3055333.html
 
 
 
 


map hash_map unordered_map 性能测试
 
 
 
 
 


 
 
 
 
 
 
 


 
 
 
 
 
 
 


【1】插入总数/
总处理时间 单位us（微秒）]]></description><category></category></item><item><title><![CDATA[dirlt 的muduo笔记]]></title><link>https://blog.csdn.net/terminator3/article/details/7599638</link><guid>https://blog.csdn.net/terminator3/article/details/7599638</guid><author>terminator3</author><pubDate>Thu, 24 May 2012 19:17:04 +0800</pubDate><description><![CDATA[dirlt 的muduo笔记




1 Muduo

http://code.google.com/p/muduo/.在分析muduo之前必须了解一下作者的想法：http://www.cnblogs.com/Solstice/archive/2010/08/29/muduo_net_lib.html

线程安全，支持多核多线程不考虑可移植性，不跨平台，只支持 Linux，不支持]]></description><category></category></item><item><title><![CDATA[线程池模式举例：HS/HA 半同步/ 半异步模式与L/F 领导者跟随者模式]]></title><link>https://blog.csdn.net/terminator3/article/details/7598604</link><guid>https://blog.csdn.net/terminator3/article/details/7598604</guid><author>terminator3</author><pubDate>Thu, 24 May 2012 15:23:25 +0800</pubDate><description><![CDATA[本文根据网上资料整理


据《面向模式的软件架构2 - POSA2》总结，线程池有两种模式：HS/HA 半同步/ 半异步模式与L/F 领导者跟随者模式
这里不做概念论述，直接上例子


1、HS/HA 半同步/ 半异步模式
    又称生产者消费者模式
    HS/HA 模式 在队列中存放的是数据，队列的两端分别是生产者和消费者


1.1、原始版本
    原始的多线]]></description><category></category></item><item><title><![CDATA[volatile、mutex、gcc __sync_*原子操作 比较]]></title><link>https://blog.csdn.net/terminator3/article/details/7595414</link><guid>https://blog.csdn.net/terminator3/article/details/7595414</guid><author>terminator3</author><pubDate>Wed, 23 May 2012 17:46:26 +0800</pubDate><description><![CDATA[1、volatile 取消了编译器优化， 强制从内存读 而不是从CPU缓存读
    常见例子，用  volatile 修饰 线程退出标志   (int  isThreadEnd)，只是为了保证 isThreadEnd 的赋值不受编译器优化而忽略执行；
    因为 isThreadEnd 是个int flag，加上整型赋值的原子性（具体 [精彩] 对int变量的赋值是原子操作吗? ），因此多]]></description><category></category></item><item><title><![CDATA[awk 二次分割字符]]></title><link>https://blog.csdn.net/terminator3/article/details/7199212</link><guid>https://blog.csdn.net/terminator3/article/details/7199212</guid><author>terminator3</author><pubDate>Fri, 13 Jan 2012 16:41:42 +0800</pubDate><description><![CDATA[【需求】
   ...|fieldA=11|fieldB=12|fieldC=13|time=14|...
   ...|fieldA=21|time=22|fieldB=23|fieldC=24|...

  把 time=## 中，时间满足一定条件的，找出来（如小于5、小于4等等）
注意，其中time列的位置 不是固定的

    $cat  99.txt
2012-01-13]]></description><category></category></item><item><title><![CDATA[游戏服务器架构探讨（ZT）]]></title><link>https://blog.csdn.net/terminator3/article/details/7007291</link><guid>https://blog.csdn.net/terminator3/article/details/7007291</guid><author>terminator3</author><pubDate>Thu, 24 Nov 2011 11:20:19 +0800</pubDate><description><![CDATA[这里讨论的游戏服务器架构大概是目前国内乃至世界上的网游通用的一种架构了：
http://bbs.gameres.com/showthread.asp?threadid=93775
作者：qinglan


有段时间没有研究技术了，这次正好看到了新版的mangos，较之以前我看的版本有了比较大的完善，于是再次浏览了下他的代码，也借此机会整理下我在游戏服务器开发方面的一些心得，与大家探讨。]]></description><category></category></item><item><title><![CDATA[用 grep 实现敏感词屏蔽]]></title><link>https://blog.csdn.net/terminator3/article/details/7007275</link><guid>https://blog.csdn.net/terminator3/article/details/7007275</guid><author>terminator3</author><pubDate>Thu, 24 Nov 2011 11:18:14 +0800</pubDate><description><![CDATA[$cat filters.txt 
敏感词1|敏感词2|...|敏感词N
 
filters1.txt只有一行
 
$echo "敏感词" | egrep filtersBuff |wc
$1
 

$echo "非敏感词" | egrep filtersBuff |wc
$0
 
其中 filtersBuff 表示 filter.txt的内容 "敏感词1|敏感词2|...]]></description><category></category></item><item><title><![CDATA[Linux:如何查看一个进程的详细的启动时间]]></title><link>https://blog.csdn.net/terminator3/article/details/7007270</link><guid>https://blog.csdn.net/terminator3/article/details/7007270</guid><author>terminator3</author><pubDate>Thu, 24 Nov 2011 11:16:55 +0800</pubDate><description><![CDATA[ps -A -opid,stime,etime,args  | grep]]></description><category></category></item><item><title><![CDATA[A星算法-2 A*方法总结]]></title><link>https://blog.csdn.net/terminator3/article/details/7007253</link><guid>https://blog.csdn.net/terminator3/article/details/7007253</guid><author>terminator3</author><pubDate>Thu, 24 Nov 2011 11:14:06 +0800</pubDate><description><![CDATA[先看明白 http://zone.emsky.net/?uid-2-action-viewspace-itemid-118 或者 本博客中的《A星算法-1
 A星路径搜索算法入门》
图例所示
 
留意图例中的父指针；非常重要的要点；
然后对着以下说明，重新看一遍图示，有宏效；


好，现在你已经看完了整个说明，让我们把每一步的操作写在一起：
   1，把起始格添加到开启列表。]]></description><category></category></item><item><title><![CDATA[A星算法-1  A星路径搜索算法入门]]></title><link>https://blog.csdn.net/terminator3/article/details/7007243</link><guid>https://blog.csdn.net/terminator3/article/details/7007243</guid><author>terminator3</author><pubDate>Thu, 24 Nov 2011 11:12:19 +0800</pubDate><description><![CDATA[作者： Patrick Lester
译者：Panic2005年3月18日
译者序：很久以前就知道了A*算法，但是从未认真读过相关的文章，也没有看过代码，只是脑子里有个模糊的概念。这次决定从头开始，研究一下这个被人推崇备至的简单方法，作为学习人工智能的开始。
这篇文章非常知名，国内应该有不少人翻译过它，我没有查找，觉得翻译本身也是对自身英文水平的锻炼。经过努力，终于完成了文档，也明白的A*算]]></description><category></category></item><item><title><![CDATA[C++ 虚函数表解析]]></title><link>https://blog.csdn.net/terminator3/article/details/7007221</link><guid>https://blog.csdn.net/terminator3/article/details/7007221</guid><author>terminator3</author><pubDate>Thu, 24 Nov 2011 11:09:50 +0800</pubDate><description><![CDATA[C++中的虚函数的作用主要是实现了多态的机制。关于多态，简而言之就是用父类型别的指针指向其子类的实例，然后通过父类的指针调用实际子类的成员函数。这种技术可以让父类的指针有“多种形态”，这是一种泛型技术。所谓泛型技术，说白了就是试图使用不变的代码来实现可变的算法。比如：模板技术，RTTI技术，虚函数技术，要么是试图做到在编译时决议，要么试图做到运行时决议。
关于虚函数的使用方法，我在这里不做过多的]]></description><category></category></item><item><title><![CDATA[linux调整系统时间]]></title><link>https://blog.csdn.net/terminator3/article/details/7005639</link><guid>https://blog.csdn.net/terminator3/article/details/7005639</guid><author>terminator3</author><pubDate>Wed, 23 Nov 2011 20:35:46 +0800</pubDate><description><![CDATA[修改操作系统日期：
    #date -s 2008/2/22
修改操作系统时间
    #date -s 14:58:20

显示 CMOS 日期时间
    #hwclock --show 
将操作系统日期、时间写入 CMOS时间
    #clock -w]]></description><category></category></item><item><title><![CDATA[指针实例：指针的指针，数组指针，指针数组]]></title><link>https://blog.csdn.net/terminator3/article/details/7005635</link><guid>https://blog.csdn.net/terminator3/article/details/7005635</guid><author>terminator3</author><pubDate>Wed, 23 Nov 2011 20:34:45 +0800</pubDate><description><![CDATA[本人的基础不太好，对指针经常犯晕，写点实例供备忘；
    指针网上学习资料： 
http://learn.akae.cn/media/ch23.html
 
#include 
#include 
#include 
#define ARRAY_ROW  5
#define ARRAY_COL  6
void fun1( int c, char ** input )
{]]></description><category></category></item><item><title><![CDATA[设置线程栈大小]]></title><link>https://blog.csdn.net/terminator3/article/details/7005632</link><guid>https://blog.csdn.net/terminator3/article/details/7005632</guid><author>terminator3</author><pubDate>Wed, 23 Nov 2011 20:34:11 +0800</pubDate><description><![CDATA[要设置stack的原因是 linux下进程空间大约是3G 每线程默认8Mstack，这样大概只能启300左右线程就会耗光进程的空间资源 设置每线程 1Mstack，足够启3000 个线程]]></description><category></category></item><item><title><![CDATA[痛苦的epoll+线程池实践 2 相关模式的设置]]></title><link>https://blog.csdn.net/terminator3/article/details/7005627</link><guid>https://blog.csdn.net/terminator3/article/details/7005627</guid><author>terminator3</author><pubDate>Wed, 23 Nov 2011 20:33:36 +0800</pubDate><description><![CDATA[参见 《经验实在太重要了：epoll的一些补充》

epoll模式分为ET边缘模式和 LT水平模式
IO 阻塞模式分为 阻塞和非阻塞

1、ET边缘模式（listen socket fd）+非阻塞（listen socket fd）
  可以使用同一线程的epoll，但是应注意如果是 listen socket fd可读，应使用 while 重复 accept 多个连接
2、ET边缘]]></description><category></category></item></channel></rss>