Gentoo Archives: gentoo-amd64

From: "P.V.Anthony" <pvantony@×××××××××××.sg>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] NFS on freebsd
Date: Sun, 08 Jan 2006 16:49:34
Message-Id: 43C1423A.30300@singnet.com.sg
In Reply to: Re: [gentoo-amd64] NFS on freebsd by Steve Herber
1 Steve Herber wrote:
2 > Could you document you setup and test procedure?
3 > I use NFS for most disk storage but have never tried to tune it much.
4 > Any performance suggestions are welcome.
5 >
6 > Thanks,
7 >
8 > Steve Herber herber@×××××.com work: 206-221-7262
9 > Security Engineer, UW Medicine, IT Services home: 425-454-2399
10
11 Hi,
12
13 Let me say a big sorry for this late reply. Sorry.
14
15 Now for the details about the setup. The links for the optimizations that I got
16 from the net is at the bottom.
17
18 Hardware.
19
20 Motherboard: MSI Neo4 Platinum
21
22 Ram: 2GB
23
24 CPU: AMD 64 +3000
25 processor : 0
26 vendor_id : AuthenticAMD
27 cpu family : 15
28 model : 47
29 model name : AMD Athlon(tm) 64 Processor 3000+
30 stepping : 0
31 cpu MHz : 1809.307
32 cache size : 512 KB
33 fpu : yes
34 fpu_exception : yes
35 cpuid level : 1
36 wp : yes
37 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
38 pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow
39 pni lahf_lm
40 bogomips : 3622.42
41 TLB size : 1024 4K pages
42 clflush size : 64
43 cache_alignment : 64
44 address sizes : 40 bits physical, 48 bits virtual
45 power management: ts fid vid ttp tm stc
46
47
48 IDE drives: 80GD x 2 Raid 1 using Software Raid for the os.
49
50 Data Drives: 8 x 300GB Maxtor Sata drives on Promise EX8350 raid card set to
51 Raid 5 with stripe size set to 64k. The drives are split in 2 groups of 4 so
52 each group is a logical drive. The Promise raid card is on a pci-express slot.
53
54 Ethernet: Two on board gigabit ethernet. One Marvell and the other is Nvidea.
55 One more Intel gigabit ethernet on pci slot.
56
57 Here is the output from "lspci" command.
58 0000:00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
59 0000:00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
60 0000:00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
61 0000:00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
62 0000:00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
63 0000:00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
64 0000:00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
65 0000:00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
66 0000:00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
67 0000:00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
68 0000:00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
69 0000:00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
70 0000:01:06.0 VGA compatible controller: S3 Inc. 86c325 [ViRGE] (rev 06)
71 0000:01:08.0 Ethernet controller: Intel Corporation 82544GC Gigabit Ethernet
72 Controller (Copper) (rev 02)
73 0000:02:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCI Express-to-PCI
74 Express Bridge
75 0000:02:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCI Express-to-PCI
76 Express Bridge
77 0000:03:0e.0 RAID bus controller: Promise Technology, Inc.: Unknown device 8350
78 0000:05:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 Gigabit
79 Ethernet Controller (rev 15)
80
81
82
83 Software.
84
85 OS: Gentoo for 64bit
86 Linux version 2.6.14-gentoo (root@videoserver) (gcc version 3.4.4 (Gentoo
87 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #1 Tue Nov 1 19:01:57 SGT 2005
88
89 Filesystem: ext3 for OS and ext3 for data drives. Tried XFS but there was some
90 problems with the earlier kernel so I went with ext3. Some test with kernel
91 2.6.14 with XFS was good. I will go into it when I can get the better speed with
92 NFS.
93
94 This is what I have set on /etc/exports
95 /VideoDisk01 *(async,insecure,no_root_squash,rw,nohide)
96 /VideoDisk02 *(async,insecure,no_root_squash,rw,nohide)
97
98 Here are some test I did on the drives on the Promise Raid Card.
99 # time dd if=/dev/zero of=/VideoDisk02/test/lala bs=8192k count=512
100 512+0 records in
101 512+0 records out
102
103 real 0m46.754s
104 user 0m0.008s
105 sys 0m16.321s
106
107 That is 4G in 47 seconds. So that is 85MB per second.
108
109 More test the raid drives.
110 # hdparm -Tt /dev/sda
111
112 /dev/sda:
113 Timing cached reads: 3004 MB in 2.00 seconds = 1501.91 MB/sec
114 Timing buffered disk reads: 336 MB in 3.01 seconds = 111.70 MB/sec
115
116 # hdparm -Tt /dev/sdb
117
118 /dev/sdb:
119 Timing cached reads: 3032 MB in 2.00 seconds = 1515.91 MB/sec
120 Timing buffered disk reads: 356 MB in 3.00 seconds = 118.66 MB/sec
121
122 Test on the ethernet connection.
123 # nttcp -T 10.0.0.100
124 Bytes Real s CPU s Real-MBit/s CPU-MBit/s Calls Real-C/s CPU-C/s
125 l 8388608 0.09 0.02 788.3382 2918.2842 2048 24058.17 89059.0
126 1 8388608 0.09 0.08 776.0673 838.8084 2195 25383.65 27435.8
127
128 another test done a second later.
129 # nttcp -T 10.0.0.100
130 Bytes Real s CPU s Real-MBit/s CPU-MBit/s Calls Real-C/s CPU-C/s
131 l 8388608 0.50 0.05 134.7476 1369.7643 2048 4112.17 41801.9
132 1 8388608 0.52 0.07 129.5928 986.8370 3355 6478.79 49335.3
133
134 It looks like my network speed is like a bell curve. Going up steady to about
135 700MBit then slowing coming down to 129MBit. Then it starts to go up then down
136 again.
137
138 Could be my network. Need to do more checking.
139
140 Please do comment or make some suggestions
141
142 Yes one more thing is that kernel 2.6.15 is out and I was looking at the change
143 log and there seems to be many changes with regards to nfs. Maybe 2.6.15 is
144 better. I will do more test.
145
146 Here are all the links that I got for the optimizations.
147
148 http://www.enterpriseitplanet.com/networking/features/article.php/3497796
149 http://www-didc.lbl.gov/TCP-tuning/linux.html
150 http://libarynth.f0.am/cgi-bin/twiki/view/Libarynth/NFSonOsX
151 http://www.metaconsultancy.com/whitepapers/nfs.htm
152 http://naeblis.cx/rtomayko/2004/08/09/NFSAutomountOSX
153 http://astcomm.net/tech/nfs_howto/client/
154 http://dawuss.student.utwente.nl/blog/entry/38
155 http://lists.freebsd.org/pipermail/freebsd-net/2004-December/005997.html
156 http://sial.org/howto/osx/automount/
157 http://datatag.web.cern.ch/datatag/howto/tcp.html
158 http://bio3d.colorado.edu/tor/sadocs/filesys/nfs.html
159 http://www.psc.edu/networking/projects/tcptune/
160 http://people.redhat.com/alikins/system_tuning.html#tcp
161
162
163
164
165
166
167
168 --
169 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] NFS on freebsd "P.V.Anthony" <pvantony@×××××××××××.sg>
Re: [gentoo-amd64] NFS on freebsd Patrick McLean <chutzpah@××××××××××.ca>