zoukankan      html  css  js  c++  java
  • 14.6.7 Configuring the Number of Background InnoDB IO Threads 配置InnoDB IO Threads的数量

    14.6.7 Configuring the Number of Background InnoDB IO Threads   配置InnoDB IO Threads的数量
    
    InnoDB 使用后台线程来服务各种类型的I/O请求。你可以配置后台线程的数量 服务服和写I/O 在数据页上,
    
    使用配置参数  innodb_read_io_threads and innodb_write_io_threads. 
    
    mysql> show variables like '%innodb_read_io_threads%';
    +------------------------+-------+
    | Variable_name          | Value |
    +------------------------+-------+
    | innodb_read_io_threads | 4     |
    +------------------------+-------+
    1 row in set (0.00 sec)
    
    
    mysql> show variables like '%innodb_write_io_threads%';
    +-------------------------+-------+
    | Variable_name           | Value |
    +-------------------------+-------+
    | innodb_write_io_threads | 4     |
    +-------------------------+-------+
    1 row in set (0.00 sec)
    
    
    那些参数指明后台线程的数量 用于读和写请求。 它们是支持的在所有平台上。
    
    
    你可以设置那些参数的值在MySQL 选项文件,你不能动态改变它们。
    
    默认那些参数的值是4,范围是1-64
    
    
    这个改变的目的是让InnoDB 更加的可扩展在高端系统上。
    
    每个后台线程可以处理256个挂起的I/O请求。
    
    一个主要的后台I/O来源是预读请求
    
    InnoDB 尝试平衡进来的请求负载以这样的方式  大多数后台线程共享工作。
    
    
    InnoDB 也尝试分配读请求从湘潭的extent 到相同的thread 来增加合并请求的机会
    

  • 相关阅读:
    浅谈MVVM模式和MVP模式——Vue.js向
    浅谈JavaScript中的null和undefined
    js的单线程和异步
    字符串替换replace方法
    数组的长度、数组元素的添加和删除
    去掉数组中的空元素
    创建数组方法、数组元素的读和写
    Android中H5和Native交互的两种方式
    请求抓取工具
    css层叠规则(层叠样式表)
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350067.html
Copyright © 2011-2022 走看看