×

Falcon

  • FalconChen
    2019-12-18 12:53
    你觉得自己活到多少岁就算不亏了?
  • FalconChen
    2019-12-17 22:51
    docker desktop for mac真不是一般的占资源,打开一会风扇呼呼叫,电量以肉眼可见的速度往下掉
  • FalconChen
    2019-12-17 18:54
    ???
  • FalconChen
    2019-12-17 15:10
    不喜欢yaml ,太容易出错
  • FalconChen
    2019-12-17 00:47
    腾讯云这垃圾io
    bash 代码片断
    sysbench fileio --file-total-size=2G --file-num=100  --file-test-mode=rndrw run
    sysbench 1.0.17 (using system LuaJIT 2.0.4)
    
    Running the test with following options:
    Number of threads: 1
    Initializing random number generator from current time
    
    
    Extra file open flags: (none)
    100 files, 20.48MiB each
    2GiB total file size
    Block size 16KiB
    Number of IO requests: 0
    Read/Write ratio for combined random IO test: 1.50
    Periodic FSYNC enabled, calling fsync() each 100 requests.
    Calling fsync() at the end of test, Enabled.
    Using synchronous I/O mode
    Doing random r/w test
    Initializing worker threads...
    
    Threads started!
    
    
    File operations:
        reads/s:                      11.72
        writes/s:                     7.81
        fsyncs/s:                     22.07
    
    Throughput:
        read, MiB/s:                  0.18
        written, MiB/s:               0.12
    
    General statistics:
        total time:                          10.2376s
        total number of events:              326
    
    Latency (ms):
             min:                                    0.01
             avg:                                   30.67
             max:                                  573.37
             95th percentile:                      147.61
             sum:                                 9999.00
    
    Threads fairness:
        events (avg/stddev):           326.0000/0.00
        execution time (avg/stddev):   9.9990/0.00
    
  • FalconChen
    2019-12-16 20:33
    放松一下
  • FalconChen
    2019-12-16 19:49
    #daily tips# 强制终止一个screen , screen -X -S Your-Screen-ID quit 。移除一个不活动的screen : screen -wipe
  • FalconChen
    2019-12-16 18:58
    以前太膨胀了,1G内存的小服务器,php-fpm进程还使用默认的动态管理,最大进程数50,初始进程5。开了三个小网站,光各大搜索引擎就爬崩了,负载分分钟上20,ssh都连不上去。现在改成 ondemand 好很多,空闲超过10s就终止,负载也正常了,只有 0.2 上下。
  • FalconChen
    2019-12-16 12:32
    每日一题:午餐吃什么?
  • FalconChen
    2019-12-16 11:13
    一天,老王的邻居出远门,要老王照顾好家里的藏獒和鹦鹉,并且告诉他,藏獒随便逗,鹦鹉不能逗。老王逗了藏獒好久什么事也没有,看到鹦鹉,心想藏獒都逗得起,那只傻鸟怕什么?果断逗了鹦鹉,鹦鹉说话了“藏獒......咬他!!”老王卒~