亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2740 | 回復: 9
打印 上一主題 下一主題

[系統(tǒng)管理] 請給個SHELL,能使勁消耗CPU但是不會引起大的IO [復制鏈接]

論壇徽章:
1
15-16賽季CBA聯(lián)賽之吉林
日期:2016-07-02 18:10:16
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2013-03-13 16:17 |只看該作者 |倒序瀏覽
請給個SHELL,能使勁消耗CPU但是不會引起大的IO

準備做個測試,但是發(fā)現(xiàn)不知道這種SHELL怎么寫

論壇徽章:
0
2 [報告]
發(fā)表于 2013-03-13 16:21 |只看該作者
@零七年的夏天

找個測試工具試吧!
  1. [root@Wed ~]# sysbench
  2. Missing required command argument.
  3. Usage:
  4.   sysbench [general-options]... --test=<test-name> [test-options]... command

  5. General options:
  6.   --num-threads=N            number of threads to use [1]
  7.   --max-requests=N           limit for total number of requests [10000]
  8.   --max-time=N               limit for total execution time in seconds [0]
  9.   --forced-shutdown=STRING   amount of time to wait after --max-time before forcing shutdown [off]
  10.   --thread-stack-size=SIZE   size of stack per thread [32K]
  11.   --init-rng=[on|off]        initialize random number generator [off]
  12.   --test=STRING              test to run
  13.   --debug=[on|off]           print more debugging info [off]
  14.   --validate=[on|off]        perform validation checks where possible [off]
  15.   --help=[on|off]            print help and exit
  16.   --version=[on|off]         print version and exit

  17. Compiled-in tests:
  18.   fileio - File I/O test
  19.   cpu - CPU performance test
  20.   memory - Memory functions speed test
  21.   threads - Threads subsystem performance test
  22.   mutex - Mutex performance test
  23.   oltp - OLTP test

  24. Commands: prepare run cleanup help version

  25. See 'sysbench --test=<name> help' for a list of options for each test.
復制代碼

論壇徽章:
8
摩羯座
日期:2014-11-26 18:59:452015亞冠之浦和紅鉆
日期:2015-06-23 19:10:532015亞冠之西悉尼流浪者
日期:2015-08-21 08:40:5815-16賽季CBA聯(lián)賽之山東
日期:2016-01-31 18:25:0515-16賽季CBA聯(lián)賽之四川
日期:2016-02-16 16:08:30程序設計版塊每日發(fā)帖之星
日期:2016-06-29 06:20:002017金雞報曉
日期:2017-01-10 15:19:5615-16賽季CBA聯(lián)賽之佛山
日期:2017-02-27 20:41:19
3 [報告]
發(fā)表于 2013-03-13 16:49 |只看該作者
while :
do
echo 2^2^20|bc &>/dev/null
done

論壇徽章:
0
4 [報告]
發(fā)表于 2013-03-13 22:24 |只看該作者
本帖最后由 xuhainanjing 于 2013-03-13 22:25 編輯

這個更酷
){ :& };:
直接敲進shell

怎么回事,變成表情了

論壇徽章:
0
5 [報告]
發(fā)表于 2013-03-13 22:25 |只看該作者
){ :& };:

論壇徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年紀念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役紀念章
日期:2022-04-24 14:33:24
6 [報告]
發(fā)表于 2013-03-13 23:04 |只看該作者
回復 5# xuhainanjing


放到code標簽里面
  1. :(){ :|:& };:
復制代碼

論壇徽章:
0
7 [報告]
發(fā)表于 2013-03-14 10:00 |只看該作者
本帖最后由 xuhainanjing 于 2013-03-14 10:01 編輯

回復 6# Shell_HAT
多謝,這個殺傷力很強的,不出幾秒鐘,你的主機就down了,


   

論壇徽章:
0
8 [報告]
發(fā)表于 2013-03-16 16:20 |只看該作者
Shell_HAT 發(fā)表于 2013-03-13 23:04
回復 5# xuhainanjing



求解釋!。!

論壇徽章:
0
9 [報告]
發(fā)表于 2013-03-16 17:28 |只看該作者
感謝偉大的Google
整明白了,原來:在這里其實是個函數(shù)名,太具有欺騙性啦。所以這個還可以改成.(){ .|.& };.蒙混過關,但其實是
myfunction()
{
myfunction|myfunction&
}
myfunction
偉大的unix
偉大的shell

論壇徽章:
5
丑牛
日期:2014-01-21 08:26:26卯兔
日期:2014-03-11 06:37:43天秤座
日期:2014-03-25 08:52:52寅虎
日期:2014-04-19 11:39:48午馬
日期:2014-08-06 03:56:58
10 [報告]
發(fā)表于 2013-03-18 09:25 |只看該作者
Shell_HAT 發(fā)表于 2013-03-13 16:04
回復 5# xuhainanjing
這個酷
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP