This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Transfer mode not working?

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Transfer mode not working?

Post by alexey123 »

I use CF card connected to IDE slot as system disk for working NAS4Free server.
# dmesg | grep ada0
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <SILICON POWER 20110927> ATA-7 device
ada0: 100.000MB/s transfers (UDMA5, PIO 512bytes)
ada0: 3831MB (7847280 512 byte sectors: 16H 63S/T 7785C)
My system
NAS4Free 9.1.0.1 (revision 804) x86-embedded
KM400 AWRDACPI AMD Sempron(tm) 2200+ 992MiB RAM

bus=1 hubaddr=1 port=0 devaddr=2 interface=0 bus=1 hubaddr=1 port=0 devaddr=2 interface=1 Generic IEEE 802.3u media interface VIA VT6202 USB 2.0 controller VIA 83C572 USB controller PLIP network interface VIA 8235 UDMA133 controller RTL8169S/8110S/8211 1000BASE-T media interface

But, transfer speed on tab Disks|Management|Disk|Edit not limit transfer speed.
<disk>
<uuid>866c201e-2697-4ba9-8c3e-01194fdfcc6e</uuid>
<name>ada0</name>
<devicespecialfile>/dev/ada0</devicespecialfile>
<harddiskstandby>0</harddiskstandby>
<acoustic>0</acoustic>
<fstype>ufs</fstype>
<apm>0</apm>
<transfermode>PIO1</transfermode>
<type>IDE</type>
<desc>SILICON POWER 20110927</desc>
<size>3832MB</size>
<serial>20090410</serial>
<smart>
<extraoptions/>
</smart>
</disk>
I need limit my transfer speed, because this is compact flash
Write test
# dd if=/dev/zero of=/mnt/flash/test.bin bs=512 count=10000
10000+0 records in
10000+0 records out
5120000 bytes transferred in 1.114443 secs (4594223 bytes/sec)
Read test
# dd of=/dev/zero if=/mnt/flash/test.bin
10000+0 records in
10000+0 records out
5120000 bytes transferred in 0.036192 secs (141467029 bytes/sec)
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

RedAntz
experienced User
experienced User
Posts: 125
Joined: 11 Jul 2012 07:46
Location: Sydney, Australia
Status: Offline

Re: Transfer mode not working?

Post by RedAntz »

alexey123 wrote: I need limit my transfer speed, because this is compact flash
If I read this correctly, I do not know how to limit your CF card transfer speed.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Transfer mode not working?

Post by raulfg3 »

Use a 40 pin old flat IDE cable to limit transfer speed.
Use short cable that You have.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Transfer mode not working?

Post by alexey123 »

raulfg3 wrote:Use a 40 pin old flat IDE cable to limit transfer speed.
Use short cable that You have.
I not use cable, I use direct connected adapter such as
Image

Power supply repaired by July, motherboard capasitors replaced by March.. I replace full version to embedded, because full version was freeze.
Currently: sometimes I have message such in this post, from new CF card.
Sometimes = one week without messages, yesterday I receive more then 100 times, today without mesages

Code: Select all

(ada0:ata0:0:0:0): READ_DMA. ACB: c8 00 5f ba 01 40 00 00 00 00 20 00
(ada0:ata0:0:0:0): CAM status: Command timeout
(ada0:ata0:0:0:0): Retrying command
Such messages I received from old 2.5 inch disks.
-------------------------------
Camcontrol for CF

Code: Select all

# camcontrol identify ada0
pass0: <SILICON POWER 20110927> ATA-7 device
pass0: 100.000MB/s transfers (UDMA5, PIO 512bytes)

protocol              ATA/ATAPI-7
device model          SILICON POWER
firmware revision     20110927
serial number         20090410
cylinders             7785
heads                 16
sectors/track         63
sector size           logical 512, physical 512, offset 0
CFA supported
LBA supported         7847280 sectors
LBA48 not supported
PIO supported         PIO4
DMA supported         WDMA2 UDMA5

Feature                      Support  Enabled   Value           Vendor
read ahead                     no       no
write cache                    yes      yes
flush cache                    yes      no
overlap                        no
Tagged Command Queuing (TCQ)   no       no
Native Command Queuing (NCQ)   no
SMART                          no       no
microcode download             no       no
security                       no       no
power management               yes      no
advanced power management      yes      no      0/0x00
automatic acoustic management  no       no
media status notification      no       no
power-up in Standby            no       no
write-read-verify              no       no
unload                         no       no
free-fall                      no       no
data set management (TRIM)     no
I think such behavior because CF card not have ram buffer, as hard disk, it need reduce speed.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Transfer mode not working?

Post by alexey123 »

I find solution. If I add to loader.conf (loader.conf.local) :D string

Code: Select all

hw.ata.ata_dma=0
I swich CF to PIO4 mode.
If I define

Code: Select all

hw.ata.ata_dma=1
swich it to UDMA 5 mode
Result
$ dmesg | grep ada0
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <SILICON POWER 20110927> ATA-7 device
ada0: 16.700MB/s transfers (PIO4, PIO 512bytes)
ada0: 3831MB (7847280 512 byte sectors: 16H 63S/T 7785C)
ada0: Previously was known as ad0
GEOM: ada0s1: media size does not match label.
Hmmm, transfer mode over webgui realy not work :!:
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Transfer mode not working?

Post by alexey123 »

:cry: :evil:
FreeBSD 9.2 - removed last chance reduce IDE Speed!
hw.ata.ata_dma - not working
:evil:
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
apollo567
Site Admin
Site Admin
Posts: 675
Joined: 23 Jun 2012 06:37
Location: Ludwigshafen, Germany
Status: Offline

Re: Transfer mode not working?

Post by apollo567 »

How about moving to a spare usb stick (of course this is not internal then) ?
my NAS and its development until today: viewtopic.php?f=63&t=39&sid=039fed830cf ... 4d0abe4a04

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Transfer mode not working?

Post by alexey123 »

apollo567 wrote:How about moving to a spare usb stick (of course this is not internal then) ?
Not good idea for my HP D530. It have usb1 during boot stage, ~15 minutes for boot.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
lux
Advanced User
Advanced User
Posts: 193
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Contact:
Status: Offline

Re: Transfer mode not working?

Post by lux »

@ alexey123

try 40pin IDE Flash Module --> http://uk.transcend-info.com/industry/p ... &Func1No=1

few Years ago i used CF to IDE Adapter, too & ran into some problems from time to time :evil:

no more problems after switching to IDE 40pin Flash Module ;)
Home:11.3.x.7538/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole, Jellyfin & zigbee2mqtt @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|8xHDD+3xSSD[different Size&Brand]RaidZ1+2|for TESTing only

User avatar
apollo567
Site Admin
Site Admin
Posts: 675
Joined: 23 Jun 2012 06:37
Location: Ludwigshafen, Germany
Status: Offline

Re: Transfer mode not working?

Post by apollo567 »

lux wrote:
try 40pin IDE Flash Module --> http://uk.transcend-info.com/industry/p ... &Func1No=1
Thought about this one also, but decided then for a Pico-USB stick. Might be an good idea.
How about a USB 2.0 extention card (check Hardware compatibility of the chipset!) ?

Regards
apollo
my NAS and its development until today: viewtopic.php?f=63&t=39&sid=039fed830cf ... 4d0abe4a04

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Transfer mode not working?

Post by alexey123 »

I wan't pay any cent!!!
I add to /cf/boot/device.hints value (for my config) :

Code: Select all

hint.ata.1.dev0.mode="PIO4"
And have result ( on FreeBSD )
ada0 at ata1 bus 0 scbus1 target 0 lun 0
ada0: <Hitachi HDS721680PLAT80 P21OA85A> ATA-7 device
ada0: 16.700MB/s transfers (PIO4, PIO 8192bytes)
I go to check NAS4Free - It work
Before
$ dmesg | grep ada0
ada0 at ata1 bus 0 scbus1 target 0 lun 0
ada0: <Hitachi HDS721680PLAT80 P21OA85A> ATA-7 device
ada0: 133.000MB/s transfers (UDMA6, PIO 8192bytes)
ada0: 78533MB (160836480 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad2
After
$ dmesg | grep ada0
ada0 at ata1 bus 0 scbus1 target 0 lun 0
ada0: <Hitachi HDS721680PLAT80 P21OA85A> ATA-7 device
ada0: 16.700MB/s transfers (PIO4, PIO 8192bytes)
ada0: 78533MB (160836480 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad2
How to check CF ( or old 2.5 inch disk) , connected to IDE:

Code: Select all

camcontrol identify adaN
Check supported modes, for my tested disk :
PIO supported PIO4
DMA supported WDMA2 UDMA6
And find adress for ata device

Code: Select all

dmesg | grep adaN
Look result
adaN at ataX bus 0 scbus1 target Y lun 0
And compose device hint
hint.ata.X.devY.mode="<supported mode>"
Supported mode is mode, when CF or ide disk not make faults
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Post Reply

Return to “Hard disk & controller”