2011年10月10日 星期一

Ubuntu 10.04 samba server poor performance

samba一直是個好物
讓Windows可以透過網芳直接連到linux上撈資料

上次伺服器因為我手賤被我弄掛之後
重新整理一下讓它重生了
現在上面就跑SSH,遠端的操作跟跳板用~
另外就是跑transmission掛BT
既然有台機器要24H開著,那掛BT的重責大任交給他也是很合情合理的...

也因為要撈檔案出來
所以我裝了samba service在上面以便可以直接走網芳
但撈檔案的時候發現
在LAN裡面,100Mbps的ethernet
我居然抓檔案只有200KBytes ~ 300KBytes的速度
這個速度抓1080p的影片,比我從BT上抓還要慢...

找了一下資料
首先是samba的optimize
在smb.conf裡面[global]區塊
加入
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
修改後sudo service smbd restart重新啟動服務

這個時候更糟了,居然連不上server
查了一下找到一個bug report
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/554094
反正就是說 10.04的smbd有bug
已經修正了!

下apt-get update更新source list
接著apt-get upgrade更新所有套件
更新samba的時候,因為有修改過smb.conf,
會提示要合併或是要修改smb.conf,所以建議先更新samba之後再修改smb.conf,省點麻煩...

重新啟動server
搞定! 速度正常了~
現在撈檔案的速度最快大約7MBytes ~ 8MBytes

1 則留言:

gdtiwgl3ce 提到...

However, casinos in some locations allow cash bets with the decision "Money plays." Don't go away the dealer questioning if that $100 bill is a request for change or a bet on the next hand. If the dealer doesn't deal himself an ace as a face-up card, then players are requested in the event that they} want to “hit” or “stand”. To hit is to ask for another card, to face is to cross. If you choose to hit after which obtain a card that puts you over the value of 21, you’ve busted and second are|are actually} out of that spherical. You may proceed to hit till you are be} happy with your hand. The recreation is played towards the dealer, 토토사이트 and the item is to get as close a rating to 21 as potential with out exceeding that quantity.