![]() |
Unslung.SolvePerformanceProblems HistoryHide minor edits - Show changes to markup June 12, 2011, at 06:34 PM
by -- 2 connectors
Changed lines 75-76 from:
to:
August 10, 2008, at 08:19 AM
by -- Corrected a url
Changed lines 12-13 from:
possible to measure the network performance with . to:
possible to measure the network performance with Netio. August 10, 2008, at 08:18 AM
by -- Corrected a url
Changed lines 12-13 from:
possible to measure the network performance with . to:
possible to measure the network performance with . August 10, 2008, at 08:13 AM
by -- Corrected url
Changed lines 12-13 from:
possible to measure the network performance with . to:
possible to measure the network performance with . March 27, 2008, at 03:18 PM
by -- Corrected dd results, and added tip to use a powered hub
Changed line 59 from:
The slug is able to read 8 MB/s from disk and flash devices over the usb bus. to:
The slug is able to read 12 MB/s from disk and flash devices over the usb bus. Changed line 61 from:
This to:
This Changed lines 65-71 from:
The results i have are: # dd if=/dev/sda1 of=/dev/zero bs=4k count=10240 10240+0 records in 10240+0 records out 41943040 bytes (42 MB) copied, 4.13668 s, 10.1 MB/s to:
The results I have are: # dd if=/dev/sda of=/dev/null bs=4k conv=sync count=100000 100000+0 records in 100000+0 records out 409600000 bytes (410 MB) copied, 32.5186 seconds, 12.6 MB/s Changed lines 74-75 from:
to:
October 17, 2007, at 08:58 PM
by -- Added extra How to solve
Added lines 72-74:
How to solve problems:
Added lines 116-119:
How to solve problems:
Added lines 155-157:
How to solve problems:
Changed lines 185-188 from:
how to do comparable tests under windows as well. to:
how to do comparable tests under windows as well. How to solve problems:
October 08, 2007, at 09:20 AM
by -- Added chapter over samba
Changed lines 146-147 from:
Every time it takes about 2 seconds more to create 1000 files! to:
Every time it takes about 2 seconds more to create extra 1000 files! Changed lines 150-151 from:
to:
We can run comparable test over samba to measure the performance over the network share. But this will only work from a unix like system with software installed to run this tests. The results from this are: # dd if=/dev/zero of=big1 bs=4k count=4096 4096+0 records in 4096+0 records out 16777216 bytes (17 MB) copied, 4.25143 s, 3.9 MB/s The result of the script after creating 2000 files: real 1m3.582s user 0m0.008s sys 0m0.004s real 2m46.872s user 0m0.004s sys 0m0.020s We see that creating a large number of files in one directory over samba realy takes a lot time! The same issues are with listings of files in directories with a large number of files. It's a good advice to keep the number of files in a certain directory below a 1000. Probably there are ways to do these test under windows as well. I hope somebody will write down how to do comparable tests under windows as well. October 08, 2007, at 09:06 AM
by -- Added notes about filesystem performance
Changed lines 74-77 from:
to:
The speed of the filesystem depends on a lot more factors.
Type of the filesystemUnslung linux supports the following filesystems
Creating a large fileWith the The results i have on the native data disk: # dd if=/dev/zero of=big1 bs=4k count=10240 10240+0 records in 10240+0 records out 41943040 bytes (42 MB) copied, 5.45654 s, 7.7 MB/s The results on the conf disk: # dd if=/dev/zero of=big1 bs=4k count=1024 1024+0 records in 1024+0 records out 4194304 bytes (4.2 MB) copied, 22.0186 s, 190 kB/s The differences in the results are caused by the "sync" mount option on the "conf" filesystem. This option tells the kernel to write everything direct to disk without any delayed writes. Creating a large number of filesWith a small shell script we are able to create a large number of files. This will take some time because there is a lot metadata involved which has to be written to the disk. An other problem is that it takes longer to process the information in a directory with many files. So creating a extra file will take longer in a full directory. I will create 4000 files in one directory with the following script: #!/opt/bin/bash
mkdir cftest
cd cftest
for i in 0 1 2 3
do
time (touch t${i}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9};sync)
done
The result from this script is: real 0m3.516s user 0m0.210s sys 0m3.270s real 0m5.505s user 0m0.220s sys 0m5.270s real 0m7.708s user 0m0.240s sys 0m7.470s real 0m9.546s user 0m0.250s sys 0m9.280s Every time it takes about 2 seconds more to create 1000 files! October 08, 2007, at 08:34 AM
by --
Added line 20:
October 08, 2007, at 08:33 AM
by -- Added disk performance chapter
Changed lines 9-10 from:
Expected network performanceto:
Raw network performanceChanged lines 12-13 from:
possible to measure the network performance with . to:
possible to measure the network performance with . Changed lines 58-59 from:
to:
The slug is able to read 8 MB/s from disk and flash devices over the usb bus.
It is possible to measure this with the " The results i have are: # dd if=/dev/sda1 of=/dev/zero bs=4k count=10240 10240+0 records in 10240+0 records out 41943040 bytes (42 MB) copied, 4.13668 s, 10.1 MB/s October 08, 2007, at 08:18 AM
by --
Changed lines 40-45 from:
Packet size 1k bytes: 11438 KByte?/s (0%) Tx, 11458 KByte?/s (0%) Rx. Packet size 2k bytes: 11482 KByte?/s (0%) Tx, 11498 KByte?/s (0%) Rx. Packet size 4k bytes: 11669 KByte?/s (0%) Tx, 11650 KByte?/s (0%) Rx. Packet size 8k bytes: 11684 KByte?/s (0%) Tx, 11609 KByte?/s (0%) Rx. Packet size 16k bytes: 11687 KByte?/s (0%) Tx, 11509 KByte?/s (1%) Rx. Packet size 32k bytes: 11715 KByte?/s (0%) Tx, 11309 KByte?/s (3%) Rx. to:
Packet size 1k bytes: 11438 KByte/s (0%) Tx, 11458 KByte/s (0%) Rx. Packet size 2k bytes: 11482 KByte/s (0%) Tx, 11498 KByte/s (0%) Rx. Packet size 4k bytes: 11669 KByte/s (0%) Tx, 11650 KByte/s (0%) Rx. Packet size 8k bytes: 11684 KByte/s (0%) Tx, 11609 KByte/s (0%) Rx. Packet size 16k bytes: 11687 KByte/s (0%) Tx, 11509 KByte/s (1%) Rx. Packet size 32k bytes: 11715 KByte/s (0%) Tx, 11309 KByte/s (3%) Rx. October 08, 2007, at 08:18 AM
by --
Changed lines 16-18 from:
as well and run it with " to:
as well and run it with " Changed lines 26-31 from:
Packet size 1k bytes: 11441 KByte?/s Tx, 11411 KByte?/s Rx. Packet size 2k bytes: 11464 KByte?/s Tx, 11389 KByte?/s Rx. Packet size 4k bytes: 11465 KByte?/s Tx, 11410 KByte?/s Rx. Packet size 8k bytes: 11474 KByte?/s Tx, 11405 KByte?/s Rx. Packet size 16k bytes: 11475 KByte?/s Tx, 11433 KByte?/s Rx. Packet size 32k bytes: 11464 KByte?/s Tx, 11423 KByte?/s Rx. to:
Packet size 1k bytes: 11441 KByte/s Tx, 11411 KByte/s Rx. Packet size 2k bytes: 11464 KByte/s Tx, 11389 KByte/s Rx. Packet size 4k bytes: 11465 KByte/s Tx, 11410 KByte/s Rx. Packet size 8k bytes: 11474 KByte/s Tx, 11405 KByte/s Rx. Packet size 16k bytes: 11475 KByte/s Tx, 11433 KByte/s Rx. Packet size 32k bytes: 11464 KByte/s Tx, 11423 KByte/s Rx. October 08, 2007, at 08:16 AM
by -- Added network performance
Changed lines 11-12 from:
to:
The slug should be able to handle 100 Mbit of traffic. It is possible to measure the network performance with . Install netio on the slug with " The results i have: $ netio -t slug NETIO - Network Throughput Benchmark, Version 1.23 (C) 1997-2003 Kai Uwe Rommel TCP connection established. Packet size 1k bytes: 11441 KByte?/s Tx, 11411 KByte?/s Rx. Packet size 2k bytes: 11464 KByte?/s Tx, 11389 KByte?/s Rx. Packet size 4k bytes: 11465 KByte?/s Tx, 11410 KByte?/s Rx. Packet size 8k bytes: 11474 KByte?/s Tx, 11405 KByte?/s Rx. Packet size 16k bytes: 11475 KByte?/s Tx, 11433 KByte?/s Rx. Packet size 32k bytes: 11464 KByte?/s Tx, 11423 KByte?/s Rx. Done. $ netio -u slug NETIO - Network Throughput Benchmark, Version 1.23 (C) 1997-2003 Kai Uwe Rommel UDP connection established. Packet size 1k bytes: 11438 KByte?/s (0%) Tx, 11458 KByte?/s (0%) Rx. Packet size 2k bytes: 11482 KByte?/s (0%) Tx, 11498 KByte?/s (0%) Rx. Packet size 4k bytes: 11669 KByte?/s (0%) Tx, 11650 KByte?/s (0%) Rx. Packet size 8k bytes: 11684 KByte?/s (0%) Tx, 11609 KByte?/s (0%) Rx. Packet size 16k bytes: 11687 KByte?/s (0%) Tx, 11509 KByte?/s (1%) Rx. Packet size 32k bytes: 11715 KByte?/s (0%) Tx, 11309 KByte?/s (3%) Rx. Done. I have 100 Mbit performance for tcp and udp in both directions! How to solve problems:
October 07, 2007, at 09:19 PM
by -- Added a chapter listing for this howto.
Added lines 1-26:
Howto solve performance problemsThis howto tries to give answers on the expected performance of a slug and how to solve problems if the performance is less. But we will start with measuring the important performance counters so that we are able to detect what is slow compared to the hardware and what appears to be slow. Expected network performance
Raw disk performance
Filesystem performance
Samba performance
|