News for hackers. Stuff that matters.
Re:RAM Is the New Disk by arielweisberg on Sunday July 30, 2017 @07:50PM (#14888548)
...

I was the third engineer at VoltDB and spent six years making that bet. It's not a good bet.

Maybe there are other factors, but if VoltDB could page out cold data to disk I think it would be at least 2x if not more successful. No one agreed with me so it never happened.

I saw so many use cases go out the door because hey you know what? RAM is expensive and it's cheaper to page out cold data. The scale where that cost starts to matter is not that big.

Re:RAM Is the New Disk by AndyNemmity on Monday July 31, 2017 @12:45AM (#14889520)
Have spent 6 years I think working on SAP HANA. The one feature I've always asked for is seamless paging of even warmish data to disk.

In memory is fast and awesome, but it doesn't have to be as mind boggling expensive as it is. Why are we all making the same mistakes?

Re:RAM Is the New Disk by Pamar on Monday July 31, 2017 @04:32AM (#14890338)
I would really like to hear something about your experience with SAP HANA. Do you have a blog or anything you could share?
Re:RAM Is the New Disk by ericfrenkiel on Monday July 31, 2017 @01:47AM (#14889734)
Yes, it's why we at MemSQL added a column store on disk in 2014. Memory-only is too limiting and has evolved to a notion of "memory-first."
Re:RAM Is the New Disk by AndyNemmity on Monday July 31, 2017 @03:03AM (#14890018)
Really a sort of odd choice though. I'd have gone the other way around with column store in memory, and row store on disk.

Not that I think that's ideal either though, having both in memory for hot used data, and the rest on disk is ideal. With an extremely easy to use setup that makes it essentially automatic, but with rules engines for finer grained tuning.

Re:RAM Is the New Disk by manigandham on Monday July 31, 2017 @03:09AM (#14890040)
MemSQL actually adds an in-memory rowstore to each columnstore for rapid ingest of new rows until they get compacted into a new segment. Columnstore data is pretty fast so it works well off disk compared to row stores which aren't as efficient.

SQL Server similarly has the hekaton in-memory tables + columnstore indexes and the latest version allows combining both for in-memory columnstores.

Re:RAM Is the New Disk by AndyNemmity on Monday July 31, 2017 @03:13AM (#14890059)
I've used MemSQL, and it's rapid ingest by the default isn't ACID compliant, so it sort of depends on how you compare it.

The results of the columnstore data was pretty fast, and it's even faster in memory. Depends on what you're doing, and what the requirements are.

Was really impressed by MemSQL, and loved the wire compatibility with mysql, so don't take this as just a knock on MemSQL in anyway.

Re:RAM Is the New Disk by manigandham on Monday July 31, 2017 @10:55AM (#14892549)
> by the default isn't ACID compliant

What do you mean?

Re:RAM Is the New Disk by AndyNemmity on Monday July 31, 2017 @05:15PM (#14895957)
I'm surprised you wouldn't understand this as it's an absolutely requirement given you are a user of MemSQL.

But then I went to their docs to link you to the details, and it feels like they intentionally avoid stating clearly the problem.

Essentially, they allow committed transactions to hit memory and not disk. They allow you to configure it so that's not the case, but it isn't the default, and looking over the current documentation they certainly aren't clear about it like an open source project would be.

transaction-buffer needs to be set to 0 for durability, but the way the docs are explaining it is trying to confuse not being durable, as a different kind of durability.

I'm not interested in getting into a long discussion about this though, but it's difficult to explain the literal issue when they do such a marketing job of trying to hide the specifics.

Now I'm far less surprised a user wouldn't know this. Apologies for my forward initial statement.

Re:RAM Is the New Disk by manigandham on Tuesday August 01, 2017 @12:07AM (#14897812)
It's not a surprise, that's normal. Durability just means writes are safe, how it does so doesn't matter. All databases use a write-ahead log with small batch/async flushes and this is the same with MemSQL.

The enterprise edition has HA so with data on 2 nodes for safety. Otherwise you lose the whole point of in-memory performance (for writes) if you're going to write every single bit to disk immediately.

They explain it clearly on the durability page: http://docs.memsql.com/docs/using-durability-and-recovery

Re:RAM Is the New Disk by nikhilgarg28 on Sunday July 30, 2017 @08:45PM (#14888766)
Curious - why did people not agree with you? Was it an ideological belief or were they betting on some assumptions that turned out to be incorrect?
Re:RAM Is the New Disk by arielweisberg on Monday July 31, 2017 @12:33AM (#14889475)
Do I really know? I'm not sure. I have opinions, but for the most part I was kept in the dark. There was a roadmap handed to me and what was on it was already decided.

We did work on equally important things also, but we also split focus with IMO unimportant things.

A combination of me not having a seat at the table (literally was told this after a year or so) and IMO non-technical leadership driving focus by chasing what they thought were the important factors.

The company survives and does OK though.

Re:RAM Is the New Disk by FractalNerve on Monday July 31, 2017 @06:29AM (#14890761)
Given a time-series history of DRAM/SSD prices, by "what value" do you need to be able to buy 1TB RAM (or anything approaching RAM speeds) in order to make VoltDB and in-Memory Databases competitively advantageous?

So, given this insider knowledge of yours, can we make a prediction by what date predicively DRAM/SSD-NVMe prices may make in-Memory Database Startups lucrative again?

--

Offtopic:

I feel empathy for you, being overrun in decisions as an engineer in a field you're the expert in market and technology by decision makers can be heart-breaking.

EDIT:

removed irrelevant personal experience

Re:RAM Is the New Disk by arielweisberg on Monday July 31, 2017 @11:07AM (#14892666)
So what happened that isn't shown in most analysis of RAM costs is that RAM didn't go down in cost that much for many people. For instance RAM in the cloud is still very expensive.

What is also not shown is that cold data is everywhere. You need to have it, but paying to put it in RAM generates zero value for a profit seeking business. So if you don't page out cold data you effectively throw yourself out of the running for a huge swath of use cases.

For a small deployment sure it's dwarfed by engineering costs. But infrastructure per engineering head count is trending towards more infrastructure per head and infrastructure cost matters to more businesses.

The other thing is that data volumes are also increasing at a rate competitive with RAM is decreasing in price. This is because there are new opportunities to make money using more data and this is a trend you can't really beat. The more data you can have the more use cases and lines of business get invented.

This is not a scientific analysis it's just conjecture based on anecdata from my time in the industry.

Re:RAM Is the New Disk by manigandham on Sunday July 30, 2017 @10:13PM (#14889056)
+1, this ended up being a major con when we did our comparison considering how much data we needed available and the cost overhead.
Re:RAM Is the New Disk by lathiat on Sunday July 30, 2017 @10:40PM (#14889134)
this is a feature that MySQL Cluster had to add over time, and then it had limitations that were slowly lifted.