从percona 的压测来看,确实很牛笔啊。提升很大。

http://www.mysqlperformanceblog.com/2014/01/29/percona-server-thread-pool-improvements/

当然,他指出目前mysql5.6 有2套thread pool ,一套是mysql企业版里面的,另外一套是maridb 的开发人员实现的,percona 在这个基础上又完善了一些,目前在percona mysql 里面可以直接用了。特别想应用一下。



2014年2月3日 15:03:19

但是我用实际测了一下,用的是percona 的tpcc 工具。线程开到400,500 的时候,就已经不行了。。pc 还不大好测试,一共2g内存。每个thread 都是有内存开销的。

之前tpcc 的帖子幸好还有。http://www.cnblogs.com/gqdw/p/3187394.html

mysql tpcc<create_table.sql
mysql tpcc<add_fkey_idx.sql
./tpcc_load localhost tpcc root "" 5 ./tpcc_start -hlocalhost -dtpcc1000 -uroot -w5 -c16 -r10 -l200

  线程开到400,很多都是sleep的,即使开了thread pool 也没用。有时间到服务器上测一下。

AMD Athlon(tm) X2 240 Processor 这个cpu 2g 内存,

innodb_buffer_pool_size = 500M
#thread_handling=pool-of-threads
innodb_flush_log_at_trx_commit=2
max_connections=2000

能跑6000tpmc

表示每分钟能处理大概3000个订单的事物。每秒就是50个订单。



2014-02-04 10:01:55

发现之前对thread pool的认识是不对的,他其实不是一个直接提升性能的东西,

我们知道mysql 一般的模型是一个线程对应一个client 请求,当并发超过一定限度时,线程就互相争用系统资源,就比如cpu 100%了以后,你再多的client去连都是没用的,性能反而会直线下降。

就如这张图上的,直线下降。而用了thread pool 以后呢,控制连接数,剩下的放到pool 里面或者在外面等待,这样就不超系统的极限,性能得到了保证。

add 2014-02-04 23:15:39

又对服务器测了一下,8核的,12g内存。

发现最多能跑到4w tpmc 。很不错的成绩。

mysql5.6 thread pool的更多相关文章

  1. Reporting Service 告警"w WARN: Thread pool pressure. Using current thread for a work item"

    如果Reporting Service偶尔出现不可访问或访问出错情况,这种情况一般没有做监控的话,很难捕捉到.出现这种问题,最好检查Reporting Service的日志文件. 今天早上就遇到这样一 ...

  2. The CLR's Thread Pool

    We were unable to locate this content in zh-cn. Here is the same content in en-us. .NET The CLR's Th ...

  3. MySQL thread pool【转】

    本文来自:http://blog.chinaunix.net/uid-26896862-id-3993773.html 刚刚经历了淘宝的双11,真实感受到了紧张的氛围.尽管DB淡定的度过,但是历程中的 ...

  4. worksteal thread pool

    worksteal的场景 对于一个线程池,每个线程有一个队列,想象这种场景,有的线程队列中有大量的比较耗时的任务堆积,而有的线程队列却是空的,现象就是有的线程处于饥饿状态,而有的线程处于消化不良的状态 ...

  5. Improve Scalability With New Thread Pool APIs

    Pooled Threads Improve Scalability With New Thread Pool APIs Robert Saccone Portions of this article ...

  6. CLR thread pool

    Thread Pooling https://msdn.microsoft.com/en-us/library/windows/desktop/ms686756(v=vs.85).aspx Threa ...

  7. MySQL Thread Pool: Problem Definition

    A new thread pool plugin is now a part of the MySQL Enterprise Edition.In this blog we will cover th ...

  8. Thread Pool Engine, and Work-Stealing scheduling algorithm

    http://pages.videotron.com/aminer/threadpool.htm http://pages.videotron.com/aminer/zip/threadpool.zi ...

  9. DUBBO Thread pool is EXHAUSTED!

    一.问题 在测试环境遇到的异常信息,如下: 16-10-17 00:00:00.033 [New I/O server worker #1-6] WARN  com.alibaba.dubbo.com ...

随机推荐

  1. 关于JavaEE中Spring模块的学习!

    七大模块,如下: 1. Spring Core: Core封装包是框架的最基础部分,提供IOC和依赖注入特性.这里的基础概念是BeanFactory,它提供对Factory模式的经典实现来消除对程序性 ...

  2. Data Flow Diagram with Examples - Customer Service System

    Data Flow Diagram with Examples - Customer Service System Data Flow Diagram (DFD) provides a visual ...

  3. jax-rs下载文件

    @Path("/file") public class FileService { private static final String FILE_PATH = "c: ...

  4. CentOS7虚拟机安装vmtools

    直接开始: 在安装vmtools之前,需要先安装两个小部件,否则将安装失败. 下面是步骤: 1.切换为root模式,需要输入root密码,但是不显示. 命令为: su 2.安装gcc 命令为: yum ...

  5. HTML中使用CSS样式(上)

    在每一个标签上都可以设置style属性,这就是CSS样式: <div style="height:48px;border: 1px solid red;text-align:cente ...

  6. Netty(二):数据在ChannelPipeline中的流经

    本文目的:测试数据在ChannelPipeline中的流经顺序及状态. 先看本文的测试代码: AdditionalInBoundHandler:入站处理器,不做任何处理,只是在响应读事件时打印用来观察 ...

  7. 使用Xamarin开发即时通信系统 -- 基础篇(大量图文讲解 step by step,附源码下载)...

    如果是.NET开发人员,想学习手机应用开发(Android和iOS),Xamarin 无疑是最好的选择,编写一次,即可发布到Android和iOS平台,真是利器中的利器啊!而且,Xamarin已经被微 ...

  8. Jenkins 部署(基于 windows)

    一.安装 jdk,配置环境变量 二.安装 tomcat 和 jenkins 1.检查电脑上 8080 端口是否被占用: 命令行中输入:netstat -ano 2.下载Tomcat Tomcat官方网 ...

  9. 10)drf 过滤器(条件查询 排序 ) 分页器

    一.群查接口各种筛选组件 数据准备 models.py class Car(models.Model): name = models.CharField(max_length=16, unique=T ...

  10. 10 微信小程序路由跳转

    一.四种跳转方式 API路由详解 除了tabBar这种底部跳转的方法,我们还有路由跳转,以下四种方式: 1. wx.switchTab() :跳转到 tabBar 页面,并关闭其他所有非 tabBar ...