搜索
首页数据库mysql教程Sysbench参数中文解释_MySQL

bitsCN.com

Sysbench参数中文解释

 

# sysbench测试用例:sysbench [general-options]&hellip; &ndash;test=<test-name> [test-options]&hellip; command通用选项:--num-threads=N           创建测试线程的数目。默认为1.--max-requests=N          请求的最大数目。默认为10000,0代表不限制。--max-time=N              最大执行时间,单位是s。默认是0,不限制。--forced-shutdown=STRING           超过max-time强制中断。默认是off。--thread-stack-size=SIZE           每个线程的堆栈大小。默认是32K。--init-rng=[on|off]       在测试开始时是否初始化随机数发生器。默认是off。--test=STRING             指定测试项目名称。--debug=[on|off]          是否显示更多的调试信息。默认是off。--validate=[on|off]       在可能情况下执行验证检查。默认是off。测试项目:fileio &ndash; File I/O testcpu &ndash; CPU performance testmemory &ndash; Memory functions speed testthreads &ndash; Threads subsystem performance testmutex &ndash; Mutex performance test(互斥性能测试)oltp &ndash; OLTP test (联机事务处理系统)指令: prepare(测试前准备工作) run(正式测试) cleanup(测试后删掉测试数据) help versionSee &lsquo;sysbench &ndash;test=<name> help&rsquo; for a list of options for each test. 查看每个测试项目的更多选项列表。# ./sysbench &ndash;test=fileio help--file-num=N   创建测试文件的数量。默认是128--file-block-size=N  测试时文件块的大小。默认是16384(16K)--file-total-size=SIZE   测试文件的总大小。默认是2G--file-test-mode=STRING  文件测试模式{seqwr(顺序写), seqrewr(顺序读写), seqrd(顺序读), rndrd(随机读), rndwr(随机写), rndrw(随机读写)}--file-io-mode=STRING   文件操作模式{sync(同步),async(异步),fastmmap(快速map映射),slowmmap(慢map映射)}。默认是sync--file-extra-flags=STRING   使用额外的标志来打开文件{sync,dsync,direct} 。默认为空--file-fsync-freq=N   执行fsync()的频率。(0&ndash;不使用fsync())。默认是100--file-fsync-all=[on|off] 每执行完一次写操作就执行一次fsync。默认是off--file-fsync-end=[on|off] 在测试结束时才执行fsync。默认是on--file-fsync-mode=STRING  使用哪种方法进行同步{fsync, fdatasync}。默认是fsync--file-merged-requests=N   如果可以,合并最多的IO请求数(0&ndash;表示不合并)。默认是0--file-rw-ratio=N     测试时的读写比例。默认是1.5# sysbench --test=cpu help--cpu-max-prime=N  最大质数发生器数量。默认是10000# sysbench --test=memory help--memory-block-size=SIZE  测试时内存块大小。默认是1K--memory-total-size=SIZE    传输数据的总大小。默认是100G--memory-scope=STRING    内存访问范围{global,local}。默认是global--memory-hugetlb=[on|off]  从HugeTLB池内存分配。默认是off--memory-oper=STRING     内存操作类型。{read, write, none} 默认是write--memory-access-mode=STRING存储器存取方式{seq,rnd} 默认是seq# sysbench --test=threads help--thread-yields=N   每个请求产生多少个线程。默认是1000--thread-locks=N    每个线程的锁的数量。默认是8# sysbench --test=mutex help--mutex-num=N    数组互斥的总大小。默认是4096--mutex-locks=N    每个线程互斥锁的数量。默认是50000--mutex-loops=N    内部互斥锁的空循环数量。默认是10000# sysbench --test=oltp helpoltp options:--oltp-test-mode=STRING    执行模式{simple,complex(advanced transactional),nontrx(non-transactional),sp}。默认是complex--oltp-reconnect-mode=STRING 重新连接模式{session(不使用重新连接。每个线程断开只在测试结束),transaction(在每次事务结束后重新连接),query(在每个 SQL语句执行完重新连接),random(对于每个事务随机选择以上重新连接模式)}。默认是session--oltp-sp-name=STRING   存储过程的名称。默认为空--oltp-read-only=[on|off]  只读模式。Update,delete,insert语句不可执行。默认是off--oltp-skip-trx=[on|off]   省略begin/commit语句。默认是off--oltp-range-size=N      查询范围。默认是100--oltp-point-selects=N          number of point selects [10]--oltp-simple-ranges=N          number of simple ranges [1]--oltp-sum-ranges=N             number of sum ranges [1]--oltp-order-ranges=N           number of ordered ranges [1]--oltp-distinct-ranges=N        number of distinct ranges [1]--oltp-index-updates=N          number of index update [1]--oltp-non-index-updates=N      number of non-index updates [1]--oltp-nontrx-mode=STRING   查询类型对于非事务执行模式{select, update_key, update_nokey, insert, delete} [select]--oltp-auto-inc=[on|off]      AUTO_INCREMENT是否开启。默认是on--oltp-connect-delay=N     在多少微秒后连接数据库。默认是10000--oltp-user-delay-min=N    每个请求最短等待时间。单位是ms。默认是0--oltp-user-delay-max=N    每个请求最长等待时间。单位是ms。默认是0--oltp-table-name=STRING  测试时使用到的表名。默认是sbtest--oltp-table-size=N         测试表的记录数。默认是10000--oltp-dist-type=STRING    分布的随机数{uniform(均匀分布),Gaussian(高斯分布),special(空间分布)}。默认是special--oltp-dist-iter=N    产生数的迭代次数。默认是12--oltp-dist-pct=N    值的百分比被视为&rsquo;special&rsquo; (for special distribution)。默认是1--oltp-dist-res=N    &lsquo;special&rsquo;的百分比值。默认是75General database options:--db-driver=STRING  指定数据库驱动程序(&lsquo;help&rsquo; to get list of available drivers)--db-ps-mode=STRING编制报表使用模式{auto, disable} [auto]Compiled-in database drivers:--mysql &ndash; MySQL drivermysql options:--mysql-host=[LIST,...]       MySQL server host [localhost]--mysql-port=N                MySQL server port [3306]--mysql-socket=STRING         MySQL socket--mysql-user=STRING           MySQL user [sbtest]--mysql-password=STRING       MySQL password []--mysql-db=STRING             MySQL database name [sbtest]--mysql-table-engine=STRING   storage engine to use for the test table {myisam,innodb,bdb,heap,ndbcluster,federated} [innodb]--mysql-engine-trx=STRING     whether storage engine used is transactional or not {yes,no,auto} [auto]--mysql-ssl=[on|off]          use SSL connections, if available in the client library [off]--myisam-max-rows=N           max-rows parameter for MyISAM tables [1000000]--mysql-create-options=STRING additional options passed to CREATE TABLE []

 


bitsCN.com
声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
在MySQL中使用视图的局限性是什么?在MySQL中使用视图的局限性是什么?May 14, 2025 am 12:10 AM

mysqlviewshavelimitations:1)他们不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinSorsubqueries.2)他们canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

确保您的MySQL数据库:添加用户并授予特权确保您的MySQL数据库:添加用户并授予特权May 14, 2025 am 12:09 AM

porthusermanagementInmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

哪些因素会影响我可以在MySQL中使用的触发器数量?哪些因素会影响我可以在MySQL中使用的触发器数量?May 14, 2025 am 12:08 AM

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)复杂的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)

mysql:存储斑点安全吗?mysql:存储斑点安全吗?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

mySQL:通过PHP Web界面添加用户mySQL:通过PHP Web界面添加用户May 14, 2025 am 12:04 AM

通过PHP网页界面添加MySQL用户可以使用MySQLi扩展。步骤如下:1.连接MySQL数据库,使用MySQLi扩展。2.创建用户,使用CREATEUSER语句,并使用PASSWORD()函数加密密码。3.防止SQL注入,使用mysqli_real_escape_string()函数处理用户输入。4.为新用户分配权限,使用GRANT语句。

mysql:blob和其他无-SQL存储,有什么区别?mysql:blob和其他无-SQL存储,有什么区别?May 13, 2025 am 12:14 AM

mysql'sblobissuitableForStoringBinaryDataWithInareLationalDatabase,而alenosqloptionslikemongodb,redis和calablesolutionsoluntionsoluntionsoluntionsolundortionsolunsolunsstructureddata.blobobobsimplobissimplobisslowderperformandperformanceperformancewithlararengelitiate;

mySQL添加用户:语法,选项和安全性最佳实践mySQL添加用户:语法,选项和安全性最佳实践May 13, 2025 am 12:12 AM

toaddauserinmysql,使用:createUser'username'@'host'Indessify'password'; there'showtodoitsecurely:1)choosethehostcarecarefullytocon trolaccess.2)setResourcelimitswithoptionslikemax_queries_per_hour.3)usestrong,iniquepasswords.4)Enforcessl/tlsconnectionswith

MySQL:如何避免字符串数据类型常见错误?MySQL:如何避免字符串数据类型常见错误?May 13, 2025 am 12:09 AM

toAvoidCommonMistakeswithStringDatatatPesInMysQl,CloseStringTypenuances,chosethirtightType,andManageEngencodingAndCollat​​ionsEttingsefectery.1)usecharforfixed lengengters lengengtings,varchar forbariaible lengength,varchariable length,andtext/blobforlabforlargerdata.2 seterters seterters seterters seterters

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

MinGW - 适用于 Windows 的极简 GNU

MinGW - 适用于 Windows 的极简 GNU

这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

安全考试浏览器

安全考试浏览器

Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。

DVWA

DVWA

Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中

Dreamweaver Mac版

Dreamweaver Mac版

视觉化网页开发工具

EditPlus 中文破解版

EditPlus 中文破解版

体积小,语法高亮,不支持代码提示功能