pos機清理內存

 新聞資訊3  |   2023-08-18 17:21  |  投稿人:pos機之家

網上有很多關于pos機清理內存,磁盤IO性能如何壓測的知識,也有很多人為大家解答關于pos機清理內存的問題,今天pos機之家(m.shineka.com)為大家整理了關于這方面的知識,讓我們一起來看下吧!

本文目錄一覽:

1、pos機清理內存

pos機清理內存

介紹SysBench 是一款開源的、跨平臺的、模塊化的、多線程的性能測試工具, 可以執(zhí)行 CPU/內存/線程/IO/數據庫 等方面的性能測試. 用于評估操作系統(tǒng)的性能參數.

* oltp_*.lua: a collection of OLTP-like database benchmarks* fileio: a filesystem-level benchmark* cpu: a simple CPU benchmark* memory: a memory access benchmark* threads: a thread-based scheduler benchmark* mutex: a POSIX mutex benchmark主要包含如下幾種測試安裝 sysbenchyum -y install sysbench一 、CPU性能測試 (cpu測試主要是進行素數的加法運算)幫助命令 sysbench cpu help

sysbench 1.0.17 (using system LuaJIT 2.0.4)cpu options: --cpu-max-prime=N upper limit for primes generator [10000] 最大質數發(fā)生器數量。默認是10000測試命令 sysbench cpu --cpu-max-prime=20000 --threads=2 run二、內存分配及傳輸速度幫助命令 sysbench memory help

sysbench 1.0.17 (using system LuaJIT 2.0.4)memory options: --memory-block-size=SIZE size of memory block for test [1K] --memory-total-size=SIZE total size of data to transfer [100G] --memory-scope=STRING memory access scope {global,local} [global] --memory-hugetlb[=on|off] allocate memory from HugeTLB pool [off] --memory-oper=STRING type of memory operations {read, write, none} [write] --memory-access-mode=STRING memory access mode {seq,rnd} [seq]測試命令 sysbench memory --memory-block-size=8k --memory-total-size=2G run三、磁盤IO性能測試幫助命令 sysbench fileio help

fileio options: --file-num=N number of files to create [128] --file-block-size=N block size to use in all IO operations [16384] --file-total-size=SIZE total size of files to create [2G] --file-test-mode=STRING test mode {seqwr, seqrewr, seqrd, rndrd, rndwr, rndrw} --file-io-mode=STRING file operations mode {sync,async,mmap} [sync] --file-async-backlog=N number of asynchronous operatons to queue per thread [128] --file-extra-flags=[LIST,...] list of additional flags to use to open files {sync,dsync,direct} [] --file-fsync-freq=N do fsync() after this number of requests (0 - don\'t use fsync()) [100] --file-fsync-all[=on|off] do fsync() after each write operation [off] --file-fsync-end[=on|off] do fsync() at the end of test [on] --file-fsync-mode=STRING which method to use for synchronization {fsync, fdatasync} [fsync] --file-merged-requests=N merge at most this number of IO requests if possible (0 - don\'t merge) [0] --file-rw-ratio=N reads/writes ratio for combined test [1.5]測試命令1、prepare階段,生成需要的測試文件,完成后會在當前目錄下生成很多小文件

sysbench fileio --threads=2 --file-total-size=1G --file-test-mode=rndrw prepare2、run階段

sysbench fileio --threads=2 --file-total-size=1G --file-test-mode=rndrw run3、清理測試時生成的文件

sysbench fileio --threads=2 --file-total-size=1G --file-test-mode=rndrw cleanup四、 mutex性能測試幫助命令 sysbench mutex help

mutex options: --mutex-num=N total size of mutex array [4096] 數組互斥的總大小 --mutex-locks=N number of mutex locks to do per thread [50000] 每個線程互斥鎖的數量 --mutex-loops=N number of empty loops to do outside mutex lock [10000] 內部互斥鎖的空循環(huán)數量命令測試 sysbench mutex --threads=2 --mutex-num=4096 --mutex-locks=50000 --mutex-loops=10000 run五、POSXI線程性能幫助測試 sysbench threads help

threads options: --thread-yields=N number of yields to do per request [1000] 每個請求產生多少個線程。 --thread-locks=N number of locks per thread [8] 每個線程的鎖的數量命令測試 sysbench threads --threads=2 --thread-yields=100 --thread-locks=4 run六、數據庫性能(OLTP基準測試)

待定后續(xù)~

官方文檔:https://github.com/akopytov/sysbench

愛運維、愛分享,感興趣請幫關注或轉發(fā)~~

以上就是關于pos機清理內存,磁盤IO性能如何壓測的知識,后面我們會繼續(xù)為大家整理關于pos機清理內存的知識,希望能夠幫助到大家!

轉發(fā)請帶上網址:http://m.shineka.com/newstwo/100744.html
上一篇:即到付pos機 下一篇:pos機調用

你可能會喜歡:

版權聲明:本文內容由互聯(lián)網用戶自發(fā)貢獻,該文觀點僅代表作者本人。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如發(fā)現(xiàn)本站有涉嫌抄襲侵權/違法違規(guī)的內容, 請發(fā)送郵件至 babsan@163.com 舉報,一經查實,本站將立刻刪除。