Re: tools support for non-512 byte sector sizes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matt Domsch <Matt_Domsch@...>
Cc: Martin K. Petersen <martin.petersen@...>, James Bottomley <James.Bottomley@...>, Ric Wheeler <rwheeler@...>, <linux-scsi@...>, <linux-ide@...>, Jim Meyering <jim@...>, <linux-kernel@...>, Jeff Garzik <jeff@...>
Date: Tuesday, August 5, 2008 - 12:54 pm

On Fri, Aug 01, 2008 at 10:11:49AM -0600, Matthew Wilcox wrote:

OK, I have patches.  I'll send them to linux-ide.  If anyone wants to
try them, I pushed out two trees; one for libata:

http://git.kernel.org/?p=linux/kernel/git/willy/misc.git;a=shortlog;h=ata-large-sector...

and one for ata_ram supporting:
 - large sectors
 - file backing
http://git.kernel.org/?p=linux/kernel/git/willy/misc.git;a=shortlog;h=ata-ram

I hope that will help some more people do testing.

Here's the dmesg from running:

$ sudo modprobe ata_ram sector_size=4096 capacity=262144 nr_ports=2

(note that you'll need at least 2.5GB of ram in your machine to try this,
or Linux gets really unhappy.  You can, of course, reduce the capacity.
Would there be interest in a lazily allocated option for ata_ram?)

[ 1134.017240] scsi7 : ata_ram
[ 1134.017420] scsi8 : ata_ram
[ 1134.017489] ata8: SATA max UDMA/133 ata_ram_0
[ 1134.017495] ata9: SATA max UDMA/133 ata_ram_1
[ 1134.017557] ata8.00: ATA-8: Linux RAM Drive, 0.01, max UDMA7
[ 1134.017563] ata8.00: 262144 sectors, multi 0: LBA 
[ 1134.017602] ata8.00: configured for UDMA/133
[ 1134.017631] ata9.00: ATA-8: Linux RAM Drive, 0.01, max UDMA7
[ 1134.017636] ata9.00: 262144 sectors, multi 0: LBA 
[ 1134.017668] ata9.00: configured for UDMA/133
[ 1134.035741] scsi 7:0:0:0: Direct-Access     ATA      Linux RAM Drive  0.01 PQ: 0 ANSI: 5
[ 1134.035904] sd 7:0:0:0: [sdb] 262144 4096-byte hardware sectors (1074 MB)
[ 1134.035926] sd 7:0:0:0: [sdb] Write Protect is off
[ 1134.035932] sd 7:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1134.035961] sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1134.036039] sd 7:0:0:0: [sdb] 262144 4096-byte hardware sectors (1074 MB)
[ 1134.036061] sd 7:0:0:0: [sdb] Write Protect is off
[ 1134.036066] sd 7:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1134.036095] sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1134.036119]  sdb: unknown partition table
[ 1134.036276] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 1134.036463] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 1134.036607] scsi 8:0:0:0: Direct-Access     ATA      Linux RAM Drive  0.01 PQ: 0 ANSI: 5
[ 1134.036749] sd 8:0:0:0: [sdc] 262144 4096-byte hardware sectors (1074 MB)
[ 1134.036768] sd 8:0:0:0: [sdc] Write Protect is off
[ 1134.036774] sd 8:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 1134.036803] sd 8:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1134.036869] sd 8:0:0:0: [sdc] 262144 4096-byte hardware sectors (1074 MB)
[ 1134.036888] sd 8:0:0:0: [sdc] Write Protect is off
[ 1134.036895] sd 8:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 1134.036924] sd 8:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1134.036944]  sdc: unknown partition table
[ 1134.037082] sd 8:0:0:0: [sdc] Attached SCSI disk
[ 1134.037182] sd 8:0:0:0: Attached scsi generic sg3 type 0

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Jul 29, 2:26 pm)
Re: tools support for non-512 byte sector sizes, Jeff Garzik, (Tue Jul 29, 5:54 pm)
Re: tools support for non-512 byte sector sizes, Martin K. Petersen, (Tue Jul 29, 2:41 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 2:37 pm)
Re: tools support for non-512 byte sector sizes, Vladislav Bolkhovitin, (Wed Jul 30, 1:51 am)
Re: tools support for non-512 byte sector sizes, Martin K. Petersen, (Tue Jul 29, 2:48 pm)
Re: tools support for non-512 byte sector sizes, Matt Domsch, (Wed Jul 30, 9:51 am)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Fri Aug 1, 12:11 pm)
Re: tools support for non-512 byte sector sizes, Matt Domsch, (Tue Aug 5, 12:57 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Aug 5, 12:54 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Aug 5, 12:57 pm)
Re: tools support for non-512 byte sector sizes, Jim Meyering, (Wed Jul 30, 1:16 pm)
Re: tools support for non-512 byte sector sizes, Matt Domsch, (Wed Jul 30, 1:29 pm)
Re: tools support for non-512 byte sector sizes, Pavel Machek, (Sat Aug 9, 9:21 am)
Re: tools support for non-512 byte sector sizes, Theodore Tso, (Wed Jul 30, 2:13 pm)
Re: tools support for non-512 byte sector sizes, Ric Wheeler, (Wed Jul 30, 2:28 pm)
Re: tools support for non-512 byte sector sizes, Theodore Tso, (Wed Jul 30, 2:45 pm)
Re: tools support for non-512 byte sector sizes, Alan Cox, (Wed Jul 30, 1:24 pm)
Re: tools support for non-512 byte sector sizes, Ric Wheeler, (Tue Jul 29, 2:54 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 2:56 pm)
Re: tools support for non-512 byte sector sizes, FUJITA Tomonori, (Tue Jul 29, 7:41 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Jul 29, 2:42 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 2:44 pm)
Re: tools support for non-512 byte sector sizes, Matthew Wilcox, (Tue Jul 29, 2:50 pm)
Re: tools support for non-512 byte sector sizes, James Bottomley, (Tue Jul 29, 3:00 pm)