amilo-forum.com

Everything you need to know about Amilo and Lifebook laptops by Fujitsu

L1310G: wich disk controller module in the kernel?

Everything around Linux and Unix-like operating systems.

L1310G: wich disk controller module in the kernel?

Postby taffi » Wed Jan 24, 2007 11:26 am

Hi, I am trying to enable DMA on my disk on a L1310G using debian...

# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted


The problem is to choose the right driver for the controller in the kernel.
so let's see...

# lspci | grep IDE

00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE Controller ATI


But I did not find nothing like that in my kernel configuration.
Any suggestion?

Thank you very much!

Marco Taffi
Last edited by aspettl on Wed Jan 24, 2007 11:26 am, edited 1 time in total.
Reason: aspettl (Sat Jan 27, 2007 10:25 am): Moved.
taffi
 
Posts: 5
Joined: Wed Jan 24, 2007 10:49 am
Location: Italy

Postby aspettl » Wed Jan 24, 2007 2:41 pm

With a 2.6 series kernel (default Debian settings) DMA should work. Or do you use a self-compiled kernel?
I think "ATI IXP chipset IDE support (BLK_DEV_ATIIXP)" is the right option for your IDE controller.

Try lsmod to see the currently loaded modules.

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Postby taffi » Wed Jan 24, 2007 4:21 pm

I am using the 2.6.19 kernel, yes, self compiled.
Ok, let's try that option...


I'll let you know!
Thanks!
Marco
taffi
 
Posts: 5
Joined: Wed Jan 24, 2007 10:49 am
Location: Italy

bechmark

Postby taffi » Fri Jan 26, 2007 3:54 pm

Hi, ok, it works!
That's my benchmark table of the disk:
(I'll use the last one; do you think is dangerous?)
bye all,
Marco


-----8<-----


hdparm -m0 -W0 -c0 -d0 -u0 -X0 /dev/hda
/dev/hda:
Timing cached reads: 532 MB in 2.00 seconds = 265.91 MB/sec
Timing buffered disk reads: 4 MB in 4.20 seconds = 974.18 kB/sec

/sbin/hdparm -m16 -W0 -c3 -d1 -u1 -X34 /dev/hda
/dev/hda:
Timing cached reads: 512 MB in 2.00 seconds = 255.77 MB/sec
Timing buffered disk reads: 48 MB in 3.04 seconds = 15.80 MB/sec

/sbin/hdparm -m16 -W0 -c3 -d1 -u1 -X66 /dev/hda
Timing cached reads: 510 MB in 2.01 seconds = 254.24 MB/sec
Timing buffered disk reads: 60 MB in 3.08 seconds = 19.50 MB/sec

hdparm -m16 -W1 -c3 -d1 -u1 -X66 /dev/hda
Timing cached reads: 510 MB in 2.00 seconds = 255.20 MB/sec
Timing buffered disk reads: 60 MB in 3.04 seconds = 19.73 MB/sec

hdparm -m16 -W0 -c3 -d1 -u1 -X12 /dev/hda
Timing cached reads: 528 MB in 2.00 seconds = 263.89 MB/sec
Timing buffered disk reads: 102 MB in 3.05 seconds = 33.43 MB/sec

hdparm -m16 -W1 -c3 -d1 -u1 -X12 /dev/hda
Timing cached reads: 530 MB in 2.00 seconds = 264.68 MB/sec
Timing buffered disk reads: 102 MB in 3.03 seconds = 33.61 MB/sec
taffi
 
Posts: 5
Joined: Wed Jan 24, 2007 10:49 am
Location: Italy

Re: bechmark

Postby aspettl » Sat Jan 27, 2007 9:32 am

taffi wrote:hdparm -m16 -W1 -c3 -d1 -u1 -X12 /dev/hda

Why the -X parameter (PIO mode 4 according to manpage)?

Regards
Aaron

Edit:
My MHT2080BH (SATA):
Code: Select all
# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   3252 MB in  2.00 seconds = 1625.93 MB/sec
 Timing buffered disk reads:   96 MB in  3.02 seconds =  31.82 MB/sec
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Postby taffi » Sun Jan 28, 2007 9:29 pm

Because of the tests...

it seems to be faster with -X12 than others.

What do you mean?

tnx!
Marco
taffi
 
Posts: 5
Joined: Wed Jan 24, 2007 10:49 am
Location: Italy

Postby aspettl » Sun Jan 28, 2007 11:04 pm

I'd try to not use the -X parameter, is it slower then?

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

-X12

Postby taffi » Mon Jan 29, 2007 8:28 am

without -X12:
[code]
/dev/hda:
Timing cached reads: 442 MB in 2.01 seconds = 220.32 MB/sec
Timing buffered disk reads: 78 MB in 3.00 seconds = 25.99 MB/sec
[/code]
with -X12:
[code]
# hdparm -X12 /dev/hda

/dev/hda:
setting xfermode to 12 (PIO flow control mode4)
# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 454 MB in 2.01 seconds = 225.46 MB/sec
Timing buffered disk reads: 96 MB in 3.01 seconds = 31.92 MB/sec

[/code]
do you agree with me?
ciao
Marco
taffi
 
Posts: 5
Joined: Wed Jan 24, 2007 10:49 am
Location: Italy

Postby aspettl » Wed Jan 31, 2007 9:04 am

If it works better (also in the applications), then it should be ok.

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D


Return to Linux / Unix / BSD

Who is online

Users browsing this forum: No registered users and 0 guests

cron