Re: ciss(4): speed degradation for Compaq Smart Array
From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 03/30/05
- Previous message: Peter Jeremy: "Re: strcspn(3) complexity improvement"
- In reply to: Andrey Koklin: "ciss(4): speed degradation for Compaq Smart Array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Andrey Koklin <aka@veco.ru> Date: Wed, 30 Mar 2005 13:13:35 +0200
In message <20050330133031.56c27ce3.aka@veco.ru>, Andrey Koklin writes:
>I've noticed there is drastic difference in speed for the systems.
>While I have linear transfer 45-50 Mb/s (write) and 100 Mb/s (read)
>for FreeBSD 4.11, there is near two times degradation in speed
>with 5.4 and 6.0.
First, you chosen benchmark doesn't measure speed, it measures
latency. If you don't know the difference, you have no business
running benchmarks. (If you wanted to measure speed you should use
a large block size to minimize the per transaction overhead.)
>FreeBSD 4.11:
>ciss.c,v 1.2.2.21 2005/01/21
>
># dd if=/dev/zero of=/var/tmp/4G bs=1024 count=$[4*1024*1024]
>
>4294967296 bytes transferred in 107.075789 secs (40111470 bytes/sec)
107.075789/(4*1024*1024) = .000025528
What you measure here is that it takes 25.528 microseconds per
1K write.
Sequential 1K writes is an incredible useless thing to measure
performance off on a RAID-5 volume.
># dd if=/var/tmp/4G of=/dev/zero
>
>4294967296 bytes transferred in 42.394322 secs (101309966 bytes/sec)
42.394322/(4294967296/512) = .000000119
And 119 nanoseconds per 512 byte read.
>FreeBSD 5.4-pre:
>ciss.c,v 1.56.2.1 2005/01/20
>
># dd if=/dev/zero of=/var/tmp/4G bs=1024 count=$[4*1024*1024]
>
>4294967296 bytes transferred in 163.088095 secs (26335259 bytes/sec)
163.088095/(4*1024*1024) = .000038883
Now it takes 38.883 microseconds per write.
># dd if=/var/tmp/4G of=/dev/zero
>
>4294967296 bytes transferred in 79.773797 secs (53839324 bytes/sec)
79.773797/(4294967296/512) = .000009509
And 9.509 microseconds per read.
It is not that these numbers are not interesting, but you have
to see them in context: A typical high end disk drive has a
4-5 millisecond access time which means that the degradation
is on the order of 0.2%
I ignored your 6-current numbers because you gave no indication
that if you had actually read lines 11 to 22 of src/UPDATING.
You don't state if you are running SMP or UP or if you have indeed
built kernels to match the configuration. That makes your numbers
a bit on the suspect side.
Finally, learn about standard deviations, and don't post benchmarks
without providing them in the future.
-- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Peter Jeremy: "Re: strcspn(3) complexity improvement"
- In reply to: Andrey Koklin: "ciss(4): speed degradation for Compaq Smart Array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: What version of FBSD does Yahoo run?
... I will repeat what I have said before - FreeBSD for my stands for a strict ...
weren't you demanding an email ago that I produce benchmarks ... So I guess you recommend
that anyone running a network ... Are the gains in mySQL greater that the 40% ...
(freebsd-questions) - Re: FreeBSD 5.3 MySQL Performance
... benchmarks "look" fast but are completely unsafe. ... > he won't be a pioneer
in using large MySQL databases on FreeBSD. ... drives are more expensive
than those wimpy ATA drives. ... (freebsd-questions) - Re: Linus Torvalds on FreeBSDs Use of Copy-on-write
... benchmarks, it actually introduces extra overhead, "the thing is, ...
I know that freeBSD developers have over the last few years also ... relative cost
of memory-to-memory copies vs. TLB shootdowns and possible ... (freebsd-arch) - Re: Linux users seeks some freeBSD pointers
... > a FreeBSD user ... ... Another thing was was suspicious is that the author
of the benchmarks ... benchmarks of FreeBSD executing a configure script faster
than Linux, ... to SlashDot? ... (comp.unix.bsd.freebsd.misc) - Re: The case for FreeBSD
... I'm aware that FreeBSD has access ... missed as well as general feedback
from the user base is lacking for your current needs. ... not only patch testing and timely feedback,
but also regularly published benchmarks, ... articles focusing on systems engineering
with FreeBSD, ... (freebsd-current)