https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh
#!/usr/bin/env bash
# Description: Test your server’s network with Speedtest to China
# Copyright (C) 2017 - 2017 Oldking
# URL: https://www.oldking.net/305.html
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
SKYBLUE='\033[0;36m'
PLAIN='\033[0m'
# check root
[[ $EUID -ne 0 ]] && echo -e “${RED}Error:${PLAIN} This script must be run as root!” && exit 1
# check python
if [ ! -e ‘/usr/bin/python’ ]; then
echo -e
read -p “${RED}Error:${PLAIN} python is not install.
https://www.facebook.com/dominic16y/posts/1378435818935569
今天跑去台中聽了OVS (Open vSwitch)講座,收獲頗豐(真的值回車票價了!),這個東西我自己的研究可能要花好幾個月的時間,還不一定能抓對方向或抓到重點,講師今天一個下午就把所有關鍵的問題都提到了,比如說你linux bridge 用的好好的幹嘛要轉到ovs來,這是大家都會關心的問題。
底下一些重點整理:
1.linux bridge效能很好,沒有什麼特殊的需求的話,不用轉到OVS去。
2.linux bridge效能的極限,kernel 跑不滿10G的頻寬(大約7G/s左右),若你不用10G的網路的話,linux bridge很好用。
3.OVS原生的效能比linux bridge效能差
4.OVS必須要另外加DPDK才能夠跑滿10G頻寬。(大約可跑到15~20G/s)
5.OVS單台機器沒有什麼用,它的功能跟linux bridge一樣
6.OVS必須要多台,並加上controller才能發揮它真正的功能
7.controller 推薦ONOS、OVN
8.OVS支援所有L2的功能(和靜態路由L3功能),它要使用controller之後,就可以不用STP,可充份利用所有頻寬,也不怕looping所造成的廣播風暴。
https://www.pendrivelinux.com/yumi-multiboot-usb-creator/
https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
http://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux
1、AWS console EC2 resizse
2、login EC2
2.1、 lsblk get info to disk size. Is resize ok?
2.2 resize2fs /dev/xvda1
If 2.2 finish, then resize faild. follow 2.3
2.3 parted /dev/xvda
2.3.1 parted> print all -> get disk real size
2.3.2 parted> resizepart
2.3.3 parted> 1
2.3.4 parted End?>put size is 2.3.1
2.3.5 parted>exit
then 2.2 again. If ok then 2.1 check age.
PS:
2.3.4 End?> -1
-1 最大磁碟空間
http://colobu.com/2017/03/07/what-is-in-linux-cached/#more
slabtop -s c
======================
pcstat
https://github.com/tobert/pcstat
#!/bin/bash #you have to install pcstat if \[ ! \-f /data0/brokerproxy/pcstat \] then echo "You haven't installed pcstat yet" echo "run \\"go get github.com/tobert/pcstat\\" to install" exit fi #find the top 10 processs' cache file ps \-e -o pid,rss|sort -nk2 -r|head -10 |awk '{print $1}'\>/tmp/cache.pids #find all the processs' cache file #ps -e -o pid>/tmp/cache.pids if \[ \-f /tmp/cache.files \] then echo "the cache.
https://my-netdata.io/