LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2014, 08:07 AM   #1
Dingbat
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Question Transfer speed mounted smbfs is slow


I have look around the various forums but dont see anyone doing quite the same thing I am attempting.
My issue is that the transfer speed of a mounted smbfs loop device is very very slow. I have set this up in the past and it used to be faster, (not super fast, but faster then it is now).

The Setup:

I have a SMB sharing NAS station accessible though the network. On it is a large file being used as a loop device in combination with cryptsetup. First I access the smb share, then I access the loop device with losetup and cryptsetup, then I mount the loop device as a drive and start using it though the network. I know there is going to be some transfer limitations but when I first started doing this it was much faster then it is now, and I dont know what changed to make it go slow. So I start by accessing it with :
sudo mount -t smbfs //ipofthestation/nameoftheshare /mnt/eb
no problem.
Browse the share and I see my file: “loopbackfilename”
then,
sudo losetup /dev/loop0 “loopbackfilename”
no problem
apply the decryption with cryptsetup:
sudo cryptsetup -c aes -s 256 -h sha256 create eb /dev/loop0
type in the crypt passphrase.... no problem.
Now Mount the crypted loop device to linux:
sudo mount -t ext4 /dev/mapper/eb /mnt/unencryptedmountlocation

now I can pass files to and from that location and it goes though the network encrypted and gets written to the NAS encrypted. I been running Backups with standard duplicity and noticed that it takes very very very long time. I watched the traffic as it happens and it spikes to about 12 mbs every minut or two. It used to (I thought) cache a bunch of data then shoot it over the net at like 80 mbs (was much faster)but it doesnt do that anymore.
i checked the hardware and the eth cables but they are not the problem

Any thoughs or ideas how to do that better.
 
Old 11-03-2014, 03:18 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
Have you set a high level of logging on somewhere?

A network file system that is very very slow... but otherwise works... often the answer is somebody was trying to debug stuff and logging everything.

The other thing that makes things hideously slow is a config setting that stops reasonable local cacheing of the networks data.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File transfer speed to slow!!-HElP!! Fregat Linux - Networking 3 10-15-2009 05:30 AM
Stumped by SLOW transfer speed n34tsd Linux - Networking 2 09-28-2007 04:10 AM
Slow File Transfer Speed moman Linux - Networking 3 11-22-2006 10:50 PM
NIC transfer speed fast... receive speed slow landev Linux - Networking 5 11-07-2006 03:09 PM
slow transfer speed samba Cavenaghi Linux - Networking 1 06-04-2005 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration