Linux下samba服務速度很慢的問題

來源:互聯網
上載者:User

最近,毛毛重新在虛擬機器上安裝了企業版5的Linux,啟動samba服務之後,發現從Winxp向Linux傳輸檔案速度很慢。

在網上查詢後,大概有下面幾種解決方案。

1: [global]
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384

2:在 smb.conf 裡添加下面的語句就可以解決smb ports = 139

3:

修改 /opt/etc/samba/smb.conf,加入

[global]

read size = 512 
socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=512 SO_SNDBUF=512 IPTOS_LOWDELAY 
getwd cache = yes

follow symlinks = no 
wide links = no

read raw = yes 
write raw = yes

large readwrite = yes 
getwd cache = yes 
strict locking = no 
fake oplocks = yes 
oplocks = no

4:關閉防火牆和selinux

但是沒有一種方法在我的電腦上能夠奏效。

這樣是弄得毛毛覺也睡不好啊,後來晚上睡得糊裡糊塗的時候,腦袋裡作了一個計算。

傳輸的檔案大小54M=54*1024=55296kb

傳輸的時候顯示還需30分鐘傳完30m=30*60=1800

傳輸速度=30.72kb

這個資料很熟悉啊,我想起我電腦上用了個限速軟體上傳速度設定的就是30kb

一下我就醒了,開啟電腦關掉限速軟體試一試,居然行了

我的問題是這樣解決的,你是不是和我一樣呢?

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.