A step backward

Story: OCZ unveils 'first' 2.5-inch SSD with 1TB, plus PCI Express-based hybridTotal Replies: 7
Author Content
BFM

Oct 25, 2011
5:31 PM EDT
The big SATA interface SSD drives are interesting for folks with high performance needs and fat wallets. However the PCIE hybrid is a step backward. It apparently requires a Windows only driver. That is not any help for most of us on this site and I hope it is not a sign of things to come. Needless to say it is not something I will even consider.
BernardSwiss

Oct 25, 2011
7:23 PM EDT
I'm trying to think of a rational reason that a PCIE device or harddrive wouldn't be OS independent.
mbaehrlxer

Oct 25, 2011
10:36 PM EDT
it's probably because their solution is simply a hack.

the drive has to be used as the primary disk, otherwise the driver will cache the access from your real primary disk and not from the hybrids own disk.

this means that the card simply presents two drives to the OS and the driver is used to intercept access to the primary disk and cache it on the SSD. so the driver doesn't even depend on the disk being stuck to the card. it is not a hardware interface, but a software one.

presumably the same could be done in a linux driver, completely independent of the hardware. the driver could present a partition that is set up from two physical partitions: a large data partition on a slow disk and a fast cache partition on a fast disk. of course such a linux partition would let me chose which disks to use. to configure the partition the already existing raid api could be used.

greetings, eMBee.
Grishnakh

Oct 25, 2011
11:09 PM EDT
Yep, their solution is certainly a hack if it needs a special driver. To be OS-independent, it'd need an onboard CPU (like a small ARM CPU) to do the work this windows driver is doing, and present the whole unit to the computer as a SATA or SAS drive. Basically, they're saving money on the ARM CPU by having the host CPU do all the work. It's similar to software RAID boards ("fakeraid"), which do the RAID processing on the host CPU instead of offloading it to a secondary CPU, but then require a special driver. Like those, Linux could implement this stuff in a special driver, but they just haven't done so yet. With the fakeraid adapters, they did because there were so many of them, they were popular, and architecturally they were all pretty much the same so you didn't need a special driver for each different board.
mbaehrlxer

Oct 25, 2011
11:36 PM EDT
though i am not suggesting to write a driver for this device like drivers for raid devices, but rather something like the generic raid support that is not written for raid devices but works on any disk.

similar to
Quoting:mkraid /dev/md0; mdadm --create --verbose /dev/md0 --level=linear --raid-devices=2 /dev/sdb6 /dev/sdc5


i'd like to do:
Quoting:make-cache-partition /dev/cp0 --cache-device /dev/ssda1 --data-device /dev/sda5


this would create a new partiton /dev/cp0 which uses /dev/sda5 as its data partition and /dev/ssda1 as its cache.

greetings, eMBee.
Grishnakh

Oct 25, 2011
11:43 PM EDT
Since SSD drives are getting popular and ubiquitous these days, and this isn't the first instance of using flash drives for caching, I'm surprised someone hasn't already made a Linux kernel driver to do just this.
gus3

Oct 26, 2011
8:37 AM EDT
Take a look in the kernel source, at Documentation/filesystems/caching/fscache.txt. It might be close to what you're talking about.

(And I might be out in left field....)
mbaehrlxer

Oct 26, 2011
10:00 AM EDT
no, i think you are in the right field, this looks really like something that could be what we are looking for here. at the worst it is hardcoded to assume that the original filesystem is really a network filesystem, then it would take a bit of hacking to make it accept local drives, but other than that it looks like a good fit,

even the part where it says that it must be possible to operate without cache and handle files larger than the cache and it needs to be able to access parts of the file without loading the whole thing, these all seem to make this suitable for local usage. of course i am no filesystem expert, but for someone who wants to have a go at this, this driver looks like a good choice to start.

greetings, eMBee.

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!