DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-02-20 20:54:55

Randulf
Member
Registered: 2007-09-12
Posts: 9

Low perfomance Ubuntu to dns-323

Hi!
I have extremely bad performance when transferring files between my Ubuntu computer and the nas.
The nas is mounted using smbfs:
//192.168.1.xx/my_nas /home/user/mount_point smbfs auto,username=xxx,password=xxx,uid=1000,umask=000,user 0 0

Transferring files using cp command results in speeds of 2.4-2.7 MB/s
though transfering files using ftp (gftp) ~18 MB/s transferring a file of 100MB.

Whats going on here?
The dns-323 and the computer is connected via a Netgear gigabit switch (GS108).
Firmware is 1.04.
Ubuntu v. 7.04 on a athlon x2 4400+, 4 GB ram, asus A8N32-Delux motherboard etc.

Is there anybody else having these issues or does someone know whats wrong?
Thanks!

Last edited by Randulf (2008-02-20 21:00:05)

Offline

 

#2 2008-02-21 12:14:17

orbitaudio
Member
From: Brisbane, Australia
Registered: 2008-01-23
Posts: 25

Re: Low perfomance Ubuntu to dns-323

is your smbfs/mount using fuse (Filesystem in UserSpace).  Also is the either of the filesystems fat32 or ntfs?  Because these things may place additional load on either your NAS or main computer's cpu.

Offline

 

#3 2008-02-21 13:30:07

Randulf
Member
Registered: 2007-09-12
Posts: 9

Re: Low perfomance Ubuntu to dns-323

orbitaudio wrote:

is your smbfs/mount using fuse (Filesystem in UserSpace).  Also is the either of the filesystems fat32 or ntfs?  Because these things may place additional load on either your NAS or main computer's cpu.

fuse? Actually I have no idea, how do I find out?

My linux box have ext3 and the NAS is using ext2 I think.

Yesterday I tried to mount the nas with cifs instead of smbfs but same results, 2.4-2.7 MB/s

This is really annoying, my windows computer with 100Mb nic is faster and even windows using virtualbox on ubuntu is faster.

Anyway it cant be the switch, network card or the nas since i have speed using ftp.
Must be something with how I mount the device.

Last edited by Randulf (2008-02-21 13:32:53)

Offline

 

#4 2008-02-21 22:47:55

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Low perfomance Ubuntu to dns-323

There is many options in smb to tune...

Offline

 

#5 2008-02-21 23:37:32

Randulf
Member
Registered: 2007-09-12
Posts: 9

Re: Low perfomance Ubuntu to dns-323

frodo wrote:

There is many options in smb to tune...

Thanks for the tip.

Anyway, today I switch to my other network port on the motherboard and guess what! 14-17 MB/s, ~123 Mb/s
How can that be?
Is smb/cifs dependent on the NIC drivers?

eth0:
             product: 88E8001 Gigabit Ethernet Controller
             vendor: Marvell Technology Group Ltd.
eth1:
             product: CK804 Ethernet Controller
             vendor: nVidia Corporation

The marvell card is the one that give ~15 MB/s

Offline

 

#6 2008-02-22 10:42:56

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Low perfomance Ubuntu to dns-323

Did you try a this?

netstat -i

It tells you if you have any hw related issues.

There are some gigabit NICs with issues in linux.

I had issues with my Marvell Yukon 2 card...

Offline

 

#7 2008-02-24 18:50:28

ispshadow
New member
Registered: 2008-02-24
Posts: 1

Re: Low perfomance Ubuntu to dns-323

Set your troublesome NIC to 100MB/s with Full duplex and try again. It's possible your switch or router isn't handling the Auto negotiation properly with that particular NIC or driver. I've seen it a million times with a Micron chipset on the NIC with switches that use Autosense. It can be a VERY obscure problem sometimes. It's also possible you're getting a lot of crosstalk on the cable and should try swapping it out with a known good one.

Last edited by ispshadow (2008-02-24 23:35:05)

Offline

 

#8 2008-02-25 12:37:33

Randulf
Member
Registered: 2007-09-12
Posts: 9

Re: Low perfomance Ubuntu to dns-323

frodo wrote:

Did you try a this?

netstat -i

It tells you if you have any hw related issues.

There are some gigabit NICs with issues in linux.

I had issues with my Marvell Yukon 2 card...

I did a printout yesterday but since I'm quite new to linux it really didn't help much. Im at work right now so I can't paste in the code but I'll do it when i get home.

ispshadow wrote:

Set your troublesome NIC to 100MB/s with Full duplex and try again. It's possible your switch or router isn't handling the Auto negotiation properly with that particular NIC or driver. I've seen it a million times with a Micron chipset on the NIC with switches that use Autosense. It can be a VERY obscure problem sometimes. It's also possible you're getting a lot of crosstalk on the cable and should try swapping it out with a known good one.

Ok, I have to try that, but it seems that it works ok if I mount it with cifs instead, read/write is about 15 MB/s.
Problem with this is that when I shut down the computer and the disks have spun down I get an error message in Ubuntu saying something abut "can't unmount"

I also have a realtek pcie card that I'm going to try and see if there is any difference.

Offline

 

#9 2008-02-26 00:28:06

Randulf
Member
Registered: 2007-09-12
Posts: 9

Re: Low perfomance Ubuntu to dns-323

Ok, it does not seem like there is something with hw.
netstat -i gives:

  wrote:

Iface   MTU Met   RX-OK    RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0   1500 0      175326      0         0          0         143446      0       0         0       BMU
eth1   1500 0      109969      0         0          0           85534      0       0        0       BMRU

ifconfig:

  wrote:

eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX 
          inet addr:192.168.X.XXX  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::XX:XX:XX:XXXX/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9390074 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5509536 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13394597608 (12.4 GiB)  TX bytes:541480863 (516.3 MiB)
          Interrupt:17

Tried to set the nic manually to 1 Gb/s and full duplex but no luck. But I don't think there is anything wrong with hardware or drivers since I have quite good speeds with ftp.
I can't remember I had such low speeds using the 1.03 firmware.
Think I'll have a try downgrading to 1.03 tomorrow since my printer doesen't seem to work with 1.04 either.

Last edited by Randulf (2008-02-26 00:29:22)

Offline

 

#10 2008-02-26 16:30:38

lanemeyer67ss
Member
Registered: 2008-02-26
Posts: 5

Re: Low perfomance Ubuntu to dns-323

i'm also on Ubuntu and having very slow speeds:

http://dns323.kood.org/forum/t1744-hour … al%3F.html

i'd love to know if i'm doing something wrong.  is there a better way to connect to this i.e. virtualbox, vmware?

Offline

 

#11 2008-02-26 16:43:56

Randulf
Member
Registered: 2007-09-12
Posts: 9

Re: Low perfomance Ubuntu to dns-323

lanemeyer67ss wrote:

i'm also on Ubuntu and having very slow speeds:

http://dns323.kood.org/forum/t1744-hour … al%3F.html

i'd love to know if i'm doing something wrong.  is there a better way to connect to this i.e. virtualbox, vmware?

Do you have slow speed with FTP as well?
Have you tried mounting it with cifs?

Offline

 

#12 2008-02-26 17:13:10

lanemeyer67ss
Member
Registered: 2008-02-26
Posts: 5

Re: Low perfomance Ubuntu to dns-323

i have connected to it via FTP from my office (the NAS is at home), but havent tested the speeds.  i'll try that when i get home, but i'd really prefer to just drag and drop files like a normal network drive.

do you have instructions on mounting with cifs?  i haven't tried that yet.

edit:  found this in another thread.

sudo mount -t cifs //192.168.0.17/Volume_1 /media/Volume_1 -o username=lanemeyer67ss,password=password

i'll try this when i get home and see what i can find.

Last edited by lanemeyer67ss (2008-02-26 17:26:48)

Offline

 

#13 2008-02-27 07:42:25

lanemeyer67ss
Member
Registered: 2008-02-26
Posts: 5

Re: Low perfomance Ubuntu to dns-323

just wanted to post that im able to mount my DNS323 using:

# sudo mkdir /media/Volume_1
# sudo mount -t cifs //192.168.0.17/Volume_1 /media/Volume_1 -o username=lanemeyer67ss,password=password

im still getting 1.4MBps write speeds using FTP.  will play around some more.

Offline

 

#14 2008-03-29 18:49:20

5h4rk
Member
Registered: 2008-01-26
Posts: 27

Re: Low perfomance Ubuntu to dns-323

How can I test the speed?

A quick question, I have this line in my fstab:

//192.168.1.2/Volume_1  /home/5h4rk/NAS  cifs  guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0

I can access as a guess even tho I have set an user and password from the NAS, how is this happening?

Thanks.


FFP 0.5 | FW 1.0.5

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB