View previous topic :: View next topic |
Author |
Message |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Sun Jul 06, 2008 9:27 am Post subject: network write performance to server is slow |
|
|
hi all!
i have a big write performance problem when trying to write some files over a 100 mbit connection to server.
here's my hardware config:
board: asus m2nsli deluxe using onboard lan (using forcedeth kernel module)
cpu: amd x2 3800+ ee
ram: 2gb ddr800 dual channel
harddisc: 3ware 9650se hw-raid controller with 4 wd 3200ys raid edition in raid 5 config
lan connection: server - gigabit 3com switch (gbit lan cable) - xin xp client (100mbit lan cable)
no matter what 'method' i try, i cannot write to server with more than 2mb/s. reading from server to client (win xp sp2) gives me ~ 9-10 mb/s. i've tried ftp and samba.
copying form my client to another client over tha same network gets me 9-10mb write speed so i think it might be a server issue.
Quote: |
area52 ~ # ethtool eth1
Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
|
i can see no errors in transmitting data so for me the hardware seems to be ok. is there anything i can do in forcedeth config to improve the write performance?
also the write performance of the 3ware controller can also not be the problem:
Quote: |
area52 opt # iozone -s 5120m -r 64 -i 0 -i 1 -t 1 -b raid0_xfs_tuned.xls
Iozone: Performance Test of File I/O
Version $Revision: 3.242 $
Compiled for 64 bit mode.
Build: linux-AMD64
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million,
Jean-Marc Zucconi, Jeff Blomberg,
Erik Habbinga, Kris Strecker, Walter Wong.
Run began: Sun Aug 19 14:30:39 2007
File size set to 5242880 KB
Record Size 64 KB
Command line used: iozone -s 5120m -r 64 -i 0 -i 1 -t 1 -b raid0_xfs_tuned.xls
Output is in Kbytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
Throughput test with 1 process
Each process writes a 5242880 Kbyte file in 64 Kbyte records
Children see throughput for 1 initial writers = 150777.25 KB/sec
Parent sees throughput for 1 initial writers = 125126.46 KB/sec
Min throughput per process = 150777.25 KB/sec
Max throughput per process = 150777.25 KB/sec
Avg throughput per process = 150777.25 KB/sec
Min xfer = 5242880.00 KB
Children see throughput for 1 rewriters = 122249.62 KB/sec
Parent sees throughput for 1 rewriters = 120502.20 KB/sec
Min throughput per process = 122249.62 KB/sec
Max throughput per process = 122249.62 KB/sec
Avg throughput per process = 122249.62 KB/sec
Min xfer = 5242880.00 KB
Children see throughput for 1 readers = 188414.77 KB/sec
Parent sees throughput for 1 readers = 188385.18 KB/sec
Min throughput per process = 188414.77 KB/sec
Max throughput per process = 188414.77 KB/sec
Avg throughput per process = 188414.77 KB/sec
Min xfer = 5242880.00 KB
Children see throughput for 1 re-readers = 187022.05 KB/sec
Parent sees throughput for 1 re-readers = 186997.38 KB/sec
Min throughput per process = 187022.05 KB/sec
Max throughput per process = 187022.05 KB/sec
Avg throughput per process = 187022.05 KB/sec
Min xfer = 5242880.00 KB
"Throughput report Y-axis is type of test X-axis is number of processes"
"Record size = 64 Kbytes "
"Output is in Kbytes/sec"
" Initial write " 150777.25
" Rewrite " 122249.62
" Read " 188414.77
" Re-read " 187022.05
iozone test complete.
|
any help or advise would be greatly appreciated!
thx & greets
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
coolsnowmen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/2048126856430177a506846.gif)
Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Tue Jul 08, 2008 9:31 pm Post subject: |
|
|
what is the max write performance locally (on the server)? as in, perhaps you could be using better filesystem flags or a different fs all together. _________________ emerge: there are no ebuilds to satisfy "moo" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cyker Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Tue Jul 08, 2008 10:14 pm Post subject: |
|
|
If you can, try testing with different protocols, e.g. FTP, SSH, HTTP etc. as it may be an SMB/CIFS bug.
Also, you say it's slow when you are writing to Windows; What about reading from?
Is it also slow when WinXP reads from you? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
HeissFuss Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Jan 2005 Posts: 414
|
Posted: Wed Jul 09, 2008 4:02 am Post subject: |
|
|
The poster specified that both FTP and SMB have the same issue uploading to the server, and the server has no problem downloading off the same host.
Can you check your MTU setting on the Linux host? Have you tried forcing a 100Mbit connection instead of gigabit? Your switch may be trying to "optimize" for gigabit on one end. Also, do you have any issues writing from the linux host to the winxp one?
If you have a laptop running linux which has a 100Mbit connection, see if it has similar issues. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Wed Jul 09, 2008 4:58 am Post subject: |
|
|
coolsnowmen wrote: | what is the max write performance locally (on the server)? as in, perhaps you could be using better filesystem flags or a different fs all together. |
hi!
i am using xfs and i get these speeds while read/write:
Code: |
Initial write " 150777.25
" Rewrite " 122249.62
" Read " 188414.77
" Re-read " 187022.05 |
so i think its no filesystem problem at all... _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Wed Jul 09, 2008 5:04 am Post subject: |
|
|
HeissFuss wrote: | The poster specified that both FTP and SMB have the same issue uploading to the server, and the server has no problem downloading off the same host.
Can you check your MTU setting on the Linux host? Have you tried forcing a 100Mbit connection instead of gigabit? Your switch may be trying to "optimize" for gigabit on one end. Also, do you have any issues writing from the linux host to the winxp one?
If you have a laptop running linux which has a 100Mbit connection, see if it has similar issues. |
hi!
mtu is set to 1500. i havent tried forcing 100mbit yet. but i think i will try a 100mbit direct connection server - winxp client and verify the speed... i have a backup server with gentoo linux on it (what else ) and i backup my data via nfs. here will also try to get some transmition speed infos...
hmmm.... writing form the linux server to the xp client gives me about 9,5mb/s or what 'linux host' do you mean?
thx
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Jul 10, 2008 6:46 am Post subject: |
|
|
hi all!
backing up via nfs gives me ~5mb/s. so this is another argument for me to think that its a server issue...
greets
snIP3r
EDIT: i definetly think its a server issue. copying some data from one xp client to another brings me ~9mb/s. but no matter which client i use to copy from (6mb/s) or to (2mb/s) server. i tried win xp client and another gentoo installation with smbclient. can someone perhaps confirm that its forcedeth driver related? _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|