bbr Kernel 4.9.51

aws linux 官方 https://aws.amazon.com/tw/amazon-linux-ami/2017.09-release-notes/ ubuntu https://segmentfault.com/a/1190000008395823 https://farer.org/2017/05/18/build-kernel-with-bbr-on-ec2-amazon-linux/ 修改/etc/sysctl.conf文件,加入如下两行: net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr 檢查 cat /proc/sys/net/ipv4/tcp_congestion_control

2017-11-17 · 1 min · 17 words · Me

iptraf

Better way is Amazon Linux and Enhanced Networking on Linux C3、C4、M4 http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sriov-networking.html I think is better for performace.

2017-11-02 · 1 min · 18 words · Me

大陸 vps 測試

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. You must be install python command at first.\nDo you want to install? [y/n]” is_install if [[ ${is_install} == “y” || ${is_install} == “Y” ]]; then if [ “${release}” == “centos” ]; then yum -y install python else apt-get -y install python fi else exit fi ...

2017-09-25 · 7 min · 1339 words · Me

[轉]OVS (Open vSwitch) 心得 楊金龍

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所造成的廣播風暴。

2017-09-23 · 1 min · 22 words · Me

linux usb boot windows

https://www.pendrivelinux.com/yumi-multiboot-usb-creator/ https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

2017-09-21 · 1 min · 2 words · Me

aws linux partition resize

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 最大磁碟空間

2017-08-01 · 1 min · 69 words · Me

[轉]谁吃了我的Linux内存?

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.files is exist, removing now " rm \-f /tmp/cache.files fi while read line do lsof -p $line 2\>/dev/null|awk '{print $9}' >>/tmp/cache.files done</tmp/cache.pids if \[ \-f /tmp/cache.pcstat \] then echo "the cache.pcstat is exist, removing now" rm \-f /tmp/cache.pcstat fi for i in \`cat /tmp/cache.files\` do if \[ \-f $i \] then echo $i >>/tmp/cache.pcstat fi done /data0/brokerproxy/pcstat \`cat /tmp/cache.pcstat\` rm \-f /tmp/cache.{pids,files,pcstat}

2017-07-27 · 1 min · 132 words · Me

netdata io

https://my-netdata.io/

2017-04-24 · 1 min · word · Me

ubuntu lvm 新增硬碟

http://blog.xuite.net/m740138.m740138/blog/31793294-LVM%E5%AF%A6%E6%88%B0 要注意的地方是 硬碟分割完之後,partion id要設8e (linux lvm) https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/ ====== 說明 第一部份: 實體磁區先切 第二部份:加到LVM 第三部份:更新系統 第一部份: 兩種方式 A. fdisk B.gparted (圖形) 基本上建議用B. 去下載 http://gparted.org/ iso,掛到虛擬機上 vmware F2 進bios 改光碟開機,然後用圖形化介面,把磁碟擴展。 如果用A. 方法是 把多的空間建立partition,問題在於partition會越建越多,比較不推 通用部份: fdisk -l 請記得 要看兩個地方: DISK /dev/sda xxxxxG DISK /dev/mapper/xxxxxxxx xxxxxG 兩個部份是目前硬碟空間使用情況 第二部份: 先用pvscan 看有沒有free空間 再來加到LVM, lvextend -L +xxxxG /dev/ubuntu-vg/root //注意,這裡請用lvdisplay 第三部份: resize2fs /dev/ubuntu-vg/root

2016-08-10 · 1 min · 54 words · Me

linux mint 最新版中的gcin常常失效,換hime

gcin不知道什麼原故,常常一下能用,一下不能用,完全搞不懂!! 一下line(wine)不行,一下chrome不行,一下sheel下不行,重啟也沒用,看設定是完全正確的!本來想去官方問,看了一下,沒有人有這問題,發問要註冊,就懶了…再試用幾天,今天最扯,明明上一分鐘chrome能打嘸蝦米,下一分鐘就不能打,注音也是,按ctrl+space也不行,切來切去,又重啟gcin,進系統砍,反正試到最後…放棄了! 就在找其他輸入法時,切回chrome時,又能輸入嘸蝦米了……注音又能輸入了…到底gcin在搞什麼鬼,所以現在決定換成hime,希望不要再發生這種非常無理頭的事情… http://itechlogger.blogspot.com/2013/11/linux-mint.html http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=234&blogId=1 http://hime.luna.com.tw/

2014-07-04 · 1 min · 6 words · Me

[轉]免費軟體--線上使用的辦公室軟體

http://freesf.tnc.edu.tw/modules/newbb/viewtopic.php?topic_id=3565&forum=13 免費軟體–線上使用的辦公室軟體 Think Office Online 註冊時只要填email不用其它資料 註冊後可以有30mb的儲存空間 第一次啟動約需五分鐘下載Java程式 以微軟 Office的格式為主要格式 有中文介面,也可以輸入中文,沒有巨集功能 可以另存為 rtf pdf svg htm 支援 IE Firefox Safari Linux MS Windows Mac 另有桌面版為49.95美金 http://online.thinkfree.com/index.jsp

2005-09-11 · 1 min · 26 words · Me

rkhunter linux偵測漏洞

鳥哥有

2005-09-11 · 1 min · word · Me

Ximian Evolution 類似 outlook

http://www.gnome.org/projects/evolution/

2005-08-22 · 1 min · word · Me