Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread jason henson
Amandeep wrote:
Hi all,
I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the transfer 
rate is very low. FreeBSD 5.3-Release.
Any ideas what is going on here.

The transfer rate is about 15MB/s
when I run
#dd if=/dev/zero of=/usr/junk bs=8192
then do
#iostat 1
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

Check the performance archive for a long thread on disk tweaking.  
sysctl vfs.read_max=32 should give you a good boost, but read that 
thread being attempting this.  There was another tweak in there I found 
interesting, but can be dangerous.  I'll let you look that one up.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread WMC
At 03:50 PM 5/9/2005, you wrote:
> So how does the block size makes the difference?? What is the 
true  transfer rate.?
FWIW, there's a nice little disk IO benchmark "Bonnie" available in the 
ports & packages.  Tests several variations of sequential and random IO.  I 
don't know how accurate its numbers in absolute terms, but it's at least 
good for relative comparisons of devices on similar systems.  Be sure to 
use the -s option to increase the test file size to something larger than 
your ram.

Sample Output:
/datatel > bonnie -s 1000
File './Bonnie.709', size: 1048576000
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 1...Seeker 3...Seeker 2...start 'em...done...done...done...
  ---Sequential Output ---Sequential Input-- 
--Random--
  -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- 
--Seeks---
MachineMB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
 1000 10835 98.5 26996 18.1 19876 15.2  8925 83.6 62490 23.0 
325.9  3.3


 -Wayne
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Dan Nelson
In the last episode (May 09), Amandeep said:
> Amandeep wrote:
> >>The transfer rate is about 15MB/s
> >>
> >>when I run
> >>#dd if=/dev/zero of=/usr/junk bs=8192
> >
> >OK with the above dd
> >
> >dd if=/dev/ad0 of=/dev/null bs=64k
> >
> >it gives me 56MB/s. from the start.
> 
> So how does the block size makes the difference?? What is the true 
> transfer rate.?

At the moment, 56MB/sec :)

Those two speeds aren't directly comparable, since your first was
testing writes through the filesystem with a small blocksize, and the
second was testing reads to the raw device with a large blocksize. 
Usually reading, using raw devices, and using large blocksizes are
faster then writing, using a filesystem, and using small blocksizes, so
all three changes probably contributed a little to the speed
difference.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Amandeep
Amandeep wrote:
Dan Nelson wrote:
In the last episode (May 09), Eric Anderson said:
 

Eric Anderson wrote:


Amandeep wrote:
  

I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the
transfer rate is very low. FreeBSD 5.3-Release.
Any ideas what is going on here.
The transfer rate is about 15MB/s
when I run
#dd if=/dev/zero of=/usr/junk bs=8192


Shouldnt it be around 54MB/s for a regular IDE drive.

What about other block sizes?  Also - you should paste your actual dd
output here too.
What's the model number of that drive?  Maxtor claims (on one of
their 160G drives) 17.8MB/s from inner diameter disk and 35.6MB/s for
outer diameter for the 5400rpm drives.
  

Yes, try 64k instead of 8k, and also compare read speeds.  If you have
the time (could take an hour or so), try "dd if=/dev/ad0 of=/dev/null
bs=64k", run an "iostat 60" in another window, let the dd run through
the entire disk, and compare the relative speeds from start to finish.
For the DiamondMax 160, the sustained throughput should be 26MB -> 50MB
as you go from inner to outer tracks.
 

OK with the above dd
dd if=/dev/ad0 of=/dev/null bs=64k
it gives me 56MB/s. from the start.
Aman
So how does the block size makes the difference?? What is the true 
transfer rate.?

Aman

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Amandeep
Dan Nelson wrote:
In the last episode (May 09), Eric Anderson said:
 

Eric Anderson wrote:
 

Amandeep wrote:
   

I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the
transfer rate is very low. FreeBSD 5.3-Release.
Any ideas what is going on here.
The transfer rate is about 15MB/s
when I run
#dd if=/dev/zero of=/usr/junk bs=8192
 

Shouldnt it be around 54MB/s for a regular IDE drive.
 

What about other block sizes?  Also - you should paste your actual dd
output here too.
What's the model number of that drive?  Maxtor claims (on one of
their 160G drives) 17.8MB/s from inner diameter disk and 35.6MB/s for
outer diameter for the 5400rpm drives.
   

Yes, try 64k instead of 8k, and also compare read speeds.  If you have
the time (could take an hour or so), try "dd if=/dev/ad0 of=/dev/null
bs=64k", run an "iostat 60" in another window, let the dd run through
the entire disk, and compare the relative speeds from start to finish.
For the DiamondMax 160, the sustained throughput should be 26MB -> 50MB
as you go from inner to outer tracks.
 

OK with the above dd
dd if=/dev/ad0 of=/dev/null bs=64k
it gives me 56MB/s. from the start.
Aman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Dan Nelson
In the last episode (May 09), Eric Anderson said:
> > Eric Anderson wrote:
> >> Amandeep wrote:
> >>> I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the
> >>> transfer rate is very low. FreeBSD 5.3-Release.
> >>> Any ideas what is going on here.
> >>>
> >>> The transfer rate is about 15MB/s
> >>>
> >>> when I run
> >>> #dd if=/dev/zero of=/usr/junk bs=8192
> >
> >Shouldnt it be around 54MB/s for a regular IDE drive.
> 
> What about other block sizes?  Also - you should paste your actual dd
> output here too.
> 
> What's the model number of that drive?  Maxtor claims (on one of
> their 160G drives) 17.8MB/s from inner diameter disk and 35.6MB/s for
> outer diameter for the 5400rpm drives.

Yes, try 64k instead of 8k, and also compare read speeds.  If you have
the time (could take an hour or so), try "dd if=/dev/ad0 of=/dev/null
bs=64k", run an "iostat 60" in another window, let the dd run through
the entire disk, and compare the relative speeds from start to finish.

For the DiamondMax 160, the sustained throughput should be 26MB -> 50MB
as you go from inner to outer tracks.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Eric Anderson
> Eric Anderson wrote:
>
>> Amandeep wrote:
>>
>>> Hi all,
>>>
>>> I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the
>>> transfer rate is very low. FreeBSD 5.3-Release.
>>> Any ideas what is going on here.
>>>
>>> The transfer rate is about 15MB/s
>>>
>>> when I run
>>> #dd if=/dev/zero of=/usr/junk bs=8192
>>>
>>> then do
>>> #iostat 1
>>
>>
>>
>> You should probably provide the appropriate information from dmesg
>> output, along with what you expect it to be, and the outputs of the dd
>> command.
>>
>> Eric
>>
Amandeep wrote:
Hi Eric,
Shouldnt it be around 54MB/s for a regular  IDE drive.
Here is the output of dmesg  and iostat
[..snip dmesg blob..]
IOSTAT
  tty ad0 cpu
tin tout  KB/t tps  MB/s  us ni sy in id
  0   20 114.15  10  1.09   0  0  1  0 98
  00  0.00   0  0.00   0  0  0  0 100
  00  0.00   0  0.00   0  0  0  0 100
  13 128.00  21  2.60   0  0  3  0 97
  00 128.00 124 15.47   0  0  6  2 91
[..snip iostat blob..]
(please try to avoid top-posting, it's hard to follow)
What about other block sizes?  Also - you should paste your actual dd 
output here too.

What's the model number of that drive?  Maxtor claims (on one of their 
160G drives) 17.8MB/s from inner diameter disk and 35.6MB/s for outer 
diameter for the 5400rpm drives.

Eric

--

Eric AndersonSr. Systems AdministratorCentaur Technology
A lost ounce of gold may be found, a lost moment of time never.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Amandeep
Hi Eric,
Shouldnt it be around 54MB/s for a regular  IDE drive.
Here is the output of dmesg  and iostat
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2391.14-MHz 686-class CPU)
 Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
 
Features=0xbfebfbff
real memory  = 1064173568 (1014 MB)
avail memory = 1031811072 (984 MB)
ACPI APIC Table: 
ioapic0  irqs 0-23 on motherboard
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0:  on acpi0
acpi_tz0:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
agp0:  mem 
0xe810-0xe817,0xe000-0xe7ff irq 16 at device 2.0 on pci0
agp0: detected 8060k stolen memory
agp0: aperture size is 128M
uhci0:  port 0xe200-0xe21f 
irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0xe000-0xe01f 
irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2:  port 0xe100-0xe11f 
irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2:  on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0:  at device 29.7 (no driver attached)
pcib1:  at device 30.0 on pci0
pci1:  on pcib1
em0:  port 
0xd000-0xd03f mem 0xe802-0xe803,0xe800-0xe801 irq 21 at 
device 3.0 on pci1
em0: Ethernet address: 00:e0:81:56:1e:64
em0:  Speed:N/A  Duplex:N/A
em1:  port 
0xd100-0xd13f mem 0xe806-0xe807,0xe804-0xe805 irq 20 at 
device 4.0 on pci1
em1: Ethernet address: 00:e0:81:56:1e:65
em1:  Speed:N/A  Duplex:N/A
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 
0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0:  at device 31.3 (no driver attached)
fdc0:  port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0:  port 0x64,0x60 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
orm0:  at iomem 0xcc000-0xccfff on isa0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounter "TSC" frequency 2391144260 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 156334MB  [317632/16/63] at ata0-master 
UDMA100
acd0: DVDROM  at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s1a
em0: Link is up 100 Mbps Full Duplex
em0: Link is up 100 Mbps Full Duplex
em0: Link is up 100 Mbps Full Duplex

IOSTAT
  tty ad0 cpu
tin tout  KB/t tps  MB/s  us ni sy in id
  0   20 114.15  10  1.09   0  0  1  0 98
  00  0.00   0  0.00   0  0  0  0 100
  00  0.00   0  0.00   0  0  0  0 100
  13 128.00  21  2.60   0  0  3  0 97
  00 128.00 124 15.47   0  0  6  2 91
  00 117.49 133 15.22   0  0  6  0 94
  00 128.00 124 15.47   0  0  8  0 92
  00 126.11 125 15.36   0  0 10  2 88
  00 128.00 124 15.47   0  0  8  0 92
  00 128.00 124 15.47   0  0  6  0 94
  00 127.10 123 15.24   0  0  6  0 94
  00 128.00 124 15.47   2  0  8  1 90
  00 127.10 124 15.36   0  0 10  0 90
  00 128.00 124 15.47   0  0  6  0 94
  00 127.10 123 15.24   0  0  7  1 92
  00 128.00 124 15.47   0  0  7  1 92
  00 121.77 128 15.19   0  0  9  1 90
  00 128.00 124 15.47   0  0  8  0 92
  00 127.10 123 15.24   0  0  7  1 92
  12 128.00 124 15.47   0  0  6  0 94
Thanks for your help and replies.
A
Eric Anderson wrote:
Amandeep wrote:
Hi all,
I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the 
transfer rate is very low. FreeBSD 5.3-Release.
Any ideas what is going on here.

The transfer rate is about 15MB/s
when I run
#dd if=/dev/zero of=/usr/junk bs=8192
then do
#iostat 1

You should probably provide the appropriate information from dmesg 
output, along with what you expect it to be, and the outputs of the dd 
command.

Eric

___
fr

Re: Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Eric Anderson
Amandeep wrote:
Hi all,
I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the transfer 
rate is very low. FreeBSD 5.3-Release.
Any ideas what is going on here.

The transfer rate is about 15MB/s
when I run
#dd if=/dev/zero of=/usr/junk bs=8192
then do
#iostat 1
You should probably provide the appropriate information from dmesg 
output, along with what you expect it to be, and the outputs of the dd 
command.

Eric

--

Eric AndersonSr. Systems AdministratorCentaur Technology
A lost ounce of gold may be found, a lost moment of time never.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Low HDD tranfer rate with FreeBSD 5.3-Release

2005-05-09 Thread Amandeep
Hi all,
I am using Tyan S2098 MB with 160GB Maxtor ATA  Drive and the transfer 
rate is very low. FreeBSD 5.3-Release.
Any ideas what is going on here.

The transfer rate is about 15MB/s
when I run 

#dd if=/dev/zero of=/usr/junk bs=8192
then do
#iostat 1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"