The problem with the swap approach is that you turn it into a
random-access business when you write. At least that's what the
authors of the project wrote. In theory however most SSD disks will
internally use a log structured format anyway so this may also work,
it is not clear from my point of view.
About Redis, I did a number of tests like this, the point here is that
from plain strings GET/SET/DEL operations to Redis, there is a huge
difference in between. I bet that already the SSD thing can't reach
the 1million ops/sec you get with Redis using pipelining.
But even if you could, it's GET/SET.
Redis uses memory in order to have a lot more freedom in the way it
can operate with data, so we have complex data structures and can do a
lot of indexing almost for free, like Redis Cluster ability to return
keys in a given hash slot, or random sampling to expire stuff, or
complex data structures like sorted sets that still are from the user
point of view almost as fast as GET/SET.
It is surely possible to imagine a Redis-on-SSD reimplementation, and
this may make sense, but not with the current performance levels, and
not with constant-time writes. Now if we ask ourselves how people are
using Redis right now, that is, to save their asses when on-disk DBs
are too slow, what I see is this.
1) That it's a good idea for Redis to focus on memory for the near
future at least.
2) That if SSD disks will turn into this almost-memory device,
operating systems will soon be able to abstract it for us, with some
kind of advanced SSD-obvious swap file.
3) That Redis on disk is still an interesting project that somebody
should try to do because in Redis the value IMHO is not just on the
speed, but in the data model offered that makes it simpler to address
certain type of problems.
Cheers,
Salvatore
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
redis-db+u...@googlegroups.com.
> To post to this group, send email to
redi...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/redis-db?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org
Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
— David Gelernter