270 points · by RachelF · 4y ago · 249 comments
The DIMMs were expensive and didn't have broad compatibility. They should have made them in a regular DDR3/4/5 format and half the cost of main memory, or 2x to 4x the density for the same price. The density roadmap had them doubling in capacity with each generation. 1TB per DIMM slot.
The Register is right in that it was the newest thing to come along in 50 years. Reliability, performance, flexibility, all could have made huge strides under PMEM/Optane architectures. Intel thought it had a golden goose (it did) and that the top profit margin enterprise workloads would flock to it.
Intel has everything it needs to succeed except for internal politics. But that is true of all large corpse these days. FPGA fabric built into the Optane DIMM would have been magic.
Multics had this concept back 60 years ago; like many useful Multics ideas (cough security) it was jettisoned in Unix. Most interestingly, Organick’s book describes a hierarchy of fast to slow, with the slowest being tape backup :-).
More recently HP’s “The Machine” was designed this way — the article touches on this but if you don’t know what they are talking about that HP paragraph looks like it was accidentally jammed in.
With the increased use of databases and key stores plus the dominance of mobile platforms, this single store model will probably be back.
Coo, thanks!
That is what I'm going for, yes. :-) Or at least, when I have the time, it is, anyway...
(If it's not obvious, I wrote the linked article.)
Iirc Intel was the biggest code contributor for 2021 to the kernel. So they already have the expertise.
Running code from Optane would likely be a mistake, though. Jumps would be very expensive due to the extra latency (unless they hit the cache). Perhaps it can work with page swaps but still.
I'd expect PCIe to contribute ~3us latency and interrupt/context-switch/kernel to contribute ~5us. You could eliminate the latter, but 3us is still kinda slow.
But the real dealbreaker was that there are also similar indirections in the other direction. It's just so very, very common in modern architectures to not permanently store data on the first drive it hits. That first level of persistence is usually just some queue log where the write takes a short breath, safe from power failure for the first time, before getting passed on to some more distributed persistence story. Optane wouldn't change this general setup at all, because those layers exist for more reasons than just the power failure scenario. Optane might change implementation details of that first layer, but it wouldn't question the layers. Because optane is only answer to power failure, not to the data center burning down.
FWIW I tried to explain why that was the important aspect of the tech in the article.
I also covered it in some depth in my most recent FOSDEM talk, which is linked in the article. As is the script if you don't have time for the video.
It wasn't mismanaged at all. Neither Intel or Micron could make it cost competitive. Optane had its shining moment when DRAM and NAND ( both are commodities like ) skyrocketed 3x the price, at one point making Samsung the most profitable company even surpassing Apple. There were roadmaps for power, reliability, performance and density improvement, literally everything except cost. Micron wasn't even the cheer leader, they were only happy to play along with Intel because Intel made the commitment to buy enough capacity for Micron to sustain the business.
And Optane could barely compete when DRAM and NAND price were at its peak, making zero profits on most of its revenue. Imagine when DRAM and NAND are back to normal.
The future of memory is either extremely low power on Mobile SoC or Ultra High Bandwidth in the server with 128 Cores. Both of these doesn't fit into Optane Roadmap.
The market is so small that despite Intel was giving away its optane product and selling it at zero margin they still couldn't fill the minimum orders commitment to Micron and had to paid its penalty.
> Neither Intel or Micron could make it cost competitive.
Cost-competitive with what?
I think there are two misconceptions here.
1. It is a kind of memory, not disk. But it is non-volatile large-scale RAM. There isn't any other terabyte-scale non-volatile memory for it to compete against. So how can it fail to compete on cost when there was nothing for it to compete with?
2. As memory it was extremely competitive with conventional volatile memory, being much larger. ITRO n times (for integer values of n whatever that value may be) more Gb/$ is being competitive, IMHO.
Against flash storage: sure, more expensive, but orders of magnitude faster and orders of magnitude more write cycles -- that is highly competitive, isn't it?
At its peak, Optane Memory had double ( or nearly triple ) the memory capacity for the same price, at practically zero profit margin. Once DRAM prices falls, this advantage is gone. Remember this was compared to ECC high capacity DRAM module, the highest margin in the whole DRAM market.
It was ( and still is ) a wonderfully technology, but Optane Memory didn't serve a large enough market where non-volatile memory had obvious advantage. As memory it offers much lower bandwidth and response time than DDR4, which means substantial amount of Server workload does not fit Optane Memory's performance characteristics.
And again neither Intel or Micron is making any profits out of it. With no clear roadmap of cost reduction. Compared to conventional DRAM with DDR5 and NAND with Z-NAND.
The common misconception is that high write cycles, random read write, non-volatile memory had its place in the market for a price. Turns out this is a classic market mis-fit.
Really, I dream of Optane as a "super-fast swap drive" that "extends" RAM (that is what some manufacturers do with NVMe this days). Then it will be ease to have notebook with 256G "RAM" with actual 16G of DRAM and 256G Optane swap. Most users will not notice any difference compared to actual 256G DRAM since Optane is fast enough to make application switch fast. At least my Google Chrome and Intellij Idea could live in peace in such setup, each eating many gigabytes "RAM" since I don't code and watch sites at the same microsecond.
These drives generally come from budget laptops where the optane is originally used as the system disk. Not a good idea anyways and computer shops usually swap them out. You pay about 28 CNY for 16 GB, which is 2x the average SSD price-per-gig.
Were the prices intentionally high or was that just because they couldn't compete with the economies of scale of DRAM manufacturers?
FGPAs or SOCs with Optane for instant on/low latency applications would've been amazing.
Looks like a company called Everspin is working on exactly that:
> "will provide FPGA system designers with extremely fast configuration, instant-on boot capability, and rapid updates of critical application parameters such as weighting tables in AI applications."
https://www.theregister.com/2022/08/02/kioxia_everspin_persi...
Also keeping RAM running all the time would eat electricity and generate heat.
But I like the general idea. It definitely would be a good option.
You can have that in Java - in any runtime environment, if your java processes keep consuming too much memory - swapping starts, on linux you will have the OOM killer, in the end the thing will reboot. Also operating systems can have bugs, hardware has bugs, nobody is perfect.
> Also keeping RAM running all the time would eat electricity and generate heat.
In a server room you wouldn't turn out the lights, ever.
This is not how this works. It doesn’t matter what language an application is written in, if a process is terminated, that frees all RAM consumed on any commonly used operating system.
There was/is CXL
Freudian slip? :)
The term for this is orthogonal persistence. Lots of people have thought about this before. In terms of Lisp OSes, Squeak (Smalltalk), and the long-dead TUNES project[1]. You don't need special memory to do this, but I imagine it could help.
There actually is a modern mainstream OS that does this already. It's called iOS. No, I'm not joking. It effectively provides the illusion of persisted state which is good enough for the user to believe it. No more saving files. Apps just do it. Automatically. Android does the same. Both also provide the illusion of always-on apps. You click a button and apps, typically, load so fast you don't notice they are loading from RAM or flash storage. It's incredibly seamless and precisely what people had in mind 20 years ago.
I was skeptical because I could never figure out how they proposed to manage code update -- if your data is always live, how do you safely modify the code?
And I still haven't seen a good answer to that! Although I haven't studied this area in a long time, so maybe it has been solved? I'd be interested to read any links people have about this.
I think of those environments like Squeak as a kind of "object soup", where everything is in one place, rather than rigidly separated into source code, compiled binary, data schema, serialised data, live server, etc. I thought back when I first heard of orthogonal persistence, and still think now, that that rigid separation of concerns is essential for maintainability. It's good to have carefully managed source control, and it's good to have a carefully managed data schema.
Have any Squeak-like environments been really successfully in large-scale systems or user-facing apps?
I'd say infrastructure as code has been a much more important innovation than orthogonal persistence; and it takes exactly the opposite approach, of explicitly serialising live stuff (your active deployment) into flat files.
Edit to add: maybe another way to put it is, the promise of orthogonal persistence is that you never need to reboot your computer. But that's a bad idea, because as we know, sometimes rebooting is (sadly) the only way to fix a problem.
Separating working memory from persistent memory has obvious benefits in terms of mental compartmentalization.
Rebooting is good because it is like a fire drill, if you don't do it regularly, the real thing will happen one day and you won't be prepared.
It is the same with backups, you want to replay them regularly.
Of course that doesn't inherently invalidate the idea, it just means it isn't as useful as was previously thought.
I'm definitely in the second group, whenever I see an app just saying "click this button to magically do the thing" I immediately worry about where the files are stored and how I'd back them up and how I could reverse the changes when (not if) something goes wrong.
See the first screenshot on this page:
It still calls files files, but a more meaningful all-ram distinction besides the simple fact everything is in battery backed ram, is that in most cases when a file is used, even for editing not just reading, it is used in-place, not copied from a storage area to a working area.
This is a 1984 device with 32k of ram and 32k of rom.
Partly this is because of the tiny amount of available ram, none to waste on copies.
Partly this is because the cpu doesn't have a relative-jump instruction, so binaries are not easily relocatable. So binaries get compiled to run at a specific static address, sometimes modified at install-time to stack up next to whatever else you already have installed, and that's just where that binary lives forever after that whether it's currently being executed or not.
So that flat model is actually driven by a couple of severe limitations.
The "files" are really only files for display in the main menu and when exporting like saving to tape or disk. While on-device, the files are really just areas of ram. They're always there at whatever address they're at, whether they're being used right now or not. For instance there are such things as BASIC programs that read data stored in comments to do things the language doesn't normally provide for, because the comments are ultimately nothing but a predictable address in memory like any other.
The original Palm Pilot wasn't all that much larger. Despite being released 12 years later, it only had 128 KB RAM and 512 KB ROM.
The PalmOS memory model was unusual. Rather than trying to explain it all here, there's a decent summary at: https://www.fuw.edu.pl/~michalj/palmos/Memory.html
And there are some rare exceptions of those apps that uploads your stuff to the cloud for security and for easy backups, such a great technology because if you ever lose your computer you can just buy another one and the 'files' will be magically there (as long as you keep paying the app subscription)! Hopefully the author also implemented the app in a way that can be used offline.
Btw you will need the newest version of the computer because your apps updated so that's also great because new features are good! Your files are basically your creation, you can't just leave them behind.
I wish that whoever leads The Pixel would adopt this memory... shit, even RaspBerry or some other "underdog" could create an Android phone that used this instead of RAM/Flash.
Excellent point, thank you. I was aware of it, but I should have used the correct term, you're right.
It used to be OS/400 on an IBM machine called AS/400. Now the machine is an "i-series", and I think emulated on a POWER machine.
Under OS/400, throughout the life of the machine, malloc will never return the same address twice. If you have an address (128 bits), you can see the last thing written there, in perpetuity. And, a program started up will run until it dies. Shut down, start up again, and the programs only notice time passed. If you get a new computer, you shut the old one down and start its image on the new hardware, and again the programs don't notice.
Amusingly, much of the OS was coded in pre-1990 C++, basically Java without the GC.
Yes, and the FOSDEM talk that the article is partly based on mentioned that. I linked it from within this article.
How do you get "basically Java without the GC" from "pre-1990 C++"?
Hey - Software engineers can imagine novel ideas. The problem is that every year, there's more code in the OS, and there's more code in web browsers, and there's more applications which depend on all that stuff. Chrome has 25 million lines. At that size, its really hard to innovate on how the browser works.
And that matters because some solutions require changing the operating environment. For example, I'd love to replace the filesystem with an append-only log, and replace files with CRDT based datasets. That would solve all sorts of problems. But doing so would require changing linux, and changing most existing software. Every year that passes, that gets harder and harder to do.
I don't know what the answer is here. Lots of people "solve this" by building further and further up the stack. Linux binaries not feature rich enough for you? We could fix them, but lets use Docker instead. Oh, you want to make a desktop app? You could use the native APIs for that; but who can be bothered learning the native UI APIs? Its much easier to write web app and ship a copy of Chrome on every platform.
We have to find a better answer than going "up the stack" every few years. But so long as people find it easier to write software than read software, its be hard to imagine the system getting simpler over time.
How would you solve the problem of, "I have a finite amount of storage and my drive is full and I need to delete something to make space for this new thing I want"?
2) the way finite storage is handled is that "deleted" content can be garbage collected, and you will then be able to loop around and write to those garbage collected areas. not fundamentally different than an SSD which many times has such a log file system at the hardware level.
So for example you can tell it to compact all the parts of the log involving that file you've deleted. Create + Delete compacts to a no-op.
Time Machine (apple's automated backup thing) does something similar, at a simpler level
The Structure of Scientific Revolutions by Thomas Kuhn is a view of what I’m talking about but in the world of academic theory instead of technology architecture.
It sounds like you're describing tree-shaking, which is already commonplace, particularly in the JS ecosystem. Or LTO dead-code elimination, in compiled languages - neither of which solve dependency hell.
The way to solve the problem of dependency hell is to version every function, and only call functions based on their versions, and ship every old version of every function. Then the application itself, or a dynamic linker, must find and execute the correct version of the function it needs to call. In this way, dependencies can change at any time, but every line of code will only ever call functions that they were originally built and tested against, because those versions are still knocking around somewhere in the dependency. You can upgrade a dependency 50 times but your application will still just keep calling the old version of the dependency's function, and so the behavior of your application remains the same while the dependency receives upgraded functions. You can upgrade any application at any time and it will just pull in the latest dependency, and continue to call the versions of that dependency that they need.
The basic concept for this already exists in glibc as you can ship version-specific functions and link/call a version-specific function. But literally no one uses it. To get widespread adoption and make the paradigm implicit/automatic, we would need to modify the programming language, the compiler, the way programs are executed, require lots more storage, probably new paradigms of caching and layering and shipping code. Package deps would become metadata in a build process, package management would become "scan all executables for dependent versions & download them all".
Nix OS is an attempt to work around all of this by pretending that the problem is just with the linker or the file tree or PATH or something. But it's simply impossible to resolve dependency hell entirely without versioned functions, due to rare but intractable intra-package dependency conflicts. And it doesn't address data model versions or network service interface version changes.
Containers are an attempt to work around all of this by literally having a different copy of the world for every containerized application. It works well enough, except again the boundary between containers is subject to application interface versions and data model versions changing. (The data model and code are basically the same thing since you need code to do anything with data) The only way to have dependency-hell-free containerized applications is if you version their interfaces/data models and have them call the correct version for other containerized apps [or network services], so again you're back to versions of functions.
If this is your vision, why would you dynamically link? If you static link your code to the library functions it calls, the runtime environment can't be changed out from under you (well --- not without a lot of work), and you'd presumably only build with the version of the library functions you like, so you'd be set there too. If you want to update a dependency, pull it in and rebuild.
I don't think this is a popular vision, because people want to believe that they can update to the latest OpenSSL and fix bugs without breaking things and sometimes, they can.
You still have a difficult problem when you share data with code you didn't fully control the linking of. If your application code needs to setup an OpenSSL socket, and then pass that socket to a service library, and the service library uses OpenSSL A.B.C-k and you use A.B.C-l, maybe that works, maybe it doesn't; if it doesn't, that's a heck of a problem to debug. Of course, it's even worse if you're not on the same minor version or across major versions.
While I'm picking on OpenSSL, because it's caused me (and others) a lot of grief, this kind of thing comes up with lots of libraries.
This seems like hell to maintain and transitively speaking, a mountain of code. For this much work, I'd prefer to invest in obscenely detailed unittests that allow the team to retire old function-versions and everybody stay on HEAD.
That said, I can imagine cases where old-versions might be helpful for some period of time, and you could call them via their function name and commit hash... then a dependency detector only keeps old versions as needed, a warning tool detects ancient versions to consider retiring, etc. You'd need editor/debugger support so developers can see and interact with old versions, and I'm not sure how this works with raw text editors - perhaps the dependency detector copies the (transitive) code into a new subdirectory?
Say, you have a certain access sequence for locks that has to be obeyed by all functions in this library. Suddenly in some version, you want to add another lock or expose some API that does things with finer granularity. Suddenly the precondition for older code breaks, so there is no guarantee that users can sometimes call the old version of the API and sometimes call a newer version of the API.
I am not saying that the weird example I mentioned is a good way of programming, I just don't think that function versioning is the magic bullet to solving dependency hell. Intra-package dependency conflict is a difficult problem, neither the NixOS approach nor your approach can magically fix that.
This isn't a server, it's something that people install on their machines and are free to upgrade in whole, or in parts (upgrade just a single dynamic library to fix a bug), or not at all.
My solution was to use a "COM-inspired" versioning. I defined an interface-based ABI. Not a function-level versioning as suggested here, it's more coarse than that, but it was enough. See my comment here [0].
More specifically, it seems like you're solving a subset of dependency issues (mainly version conflicts), while making the other issues worse (e.g. keeping sub-dependencies up-to-date, ballooning disk space usage, less easily cachable requests to package repos).
That breaks as soon as you have a diamond situation. A depends on B and C, which each depend on D. Often you need that to be the same version of D. If B and C are allowed to depend on different versions of D, you get worse problems. There are languages that have tried this model and it has its advantages, but IME the cure is worse than the disease.
> The basic concept for this already exists in glibc as you can ship version-specific functions and link/call a version-specific function. But literally no one uses it.
It doesn't actually work properly, mainly because linux package management sucks. No-one cares about backwards compatibility on linux because you're either using a rolling release distro or you're using a traditional distro that will do all your compatibility checking and versioning for you and upgrade the global version of everything when they're good and ready. Windows has much better support for this kind of thing and that's why you don't really hear about "DLL hell" anymore.
This isn't the biggest thing holding back software development, not by a long shot. It's a side issue that we tweaked and can keep tweaking. But being able to version libraries and functions doesn't work, at least not alone; it breaks the idea of having a platform that mostly-independent components can build on.
Edit: and worse, that's introducing plugin like problems in code that does not even use plugins.
Next idea?
All this while Rust, go, and all the new kids on the block use only static linking. Because static linking is a great idea.
If you can update a library, you can also update all other software, and usually from the same source.
No, it's more that they were designed by entities that distributed their software using static linking.
Then someone decided to call it Docker.
This is trivially disproven:
$ ldd /usr/bin/rustc
linux-vdso.so.1 (0x00007ffd3de9b000)
librustc_driver-e4385bf403336f76.so => /lib64/librustc_driver-e4385bf403336f76.so (0x00007ff832a00000)
libstd-d371b708c754b3bb.so => /lib64/libstd-d371b708c754b3bb.so (0x00007ff832886000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff832600000)
libLLVM-14.so => /lib64/libLLVM-14.so (0x00007ff82be00000)
[...]
Not only does rustc dynamically link against rust's "std" library, but also parts of rustc are implemented in a dynamic library ("librustc_driver").The only reason projects written in Rust (other than rustc itself) don't use dynamic linking to other Rust code yet, is that there still isn't a stable ABI for Rust code (for good reason: that allowed them to introduce not only reordering of struct fields and niche optimizations, but also passing and returning slices as a pair of registers instead of a pointer to a two-word structure in the stack). I fully expect that, as the language matures, a stable (possibly opt-in) ABI will be introduced, together with freezing some of its standard library (for instance, the contents of the Vec structure, and how its inline functions work), allowing for dynamic linking against Rust's "std" (and as a consequence, passing Rust types between separate dynamically linked modules compiled with different releases of Rust).
(As an aside: back when C was the "new kid on the block", it also used only static linking, dynamic linking of C code came later.)
Nit: 100% of rustc is found within librustc_driver-*.so (I mention it in https://news.ycombinator.com/item?id=32329062 - which also touches on stable ABI).
`rustc` just calls into the .so without any custom configuration: https://github.com/rust-lang/rust/blob/e141246cbbce2a6001f31...
(but rustdoc/clippy/miri all have additional configuration, passes, etc. specific to them)
Also, if you look at the `rustc` executable's size:
$ du -bh ~/.rustup/toolchains/nightly-*/bin/rustc
17K /home/eddy/.rustup/toolchains/nightly-2018-01-01-x86_64-unknown-linux-gnu/bin/rustc
2.9M /home/eddy/.rustup/toolchains/nightly-2021-12-02-x86_64-unknown-linux-gnu/bin/rustc
2.9M /home/eddy/.rustup/toolchains/nightly-2022-01-13-x86_64-unknown-linux-gnu/bin/rustc
2.7M /home/eddy/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc
17K is what it should be, I'm not sure where the extra 2.7M are coming from - my current suspicion is that it's entirely statically linked jemalloc, which I guess we didn't want to impose on all users of rustc_driver, but it might be worth doing it anyway.You should analyze an executable created by the rust compiler instead.
AFAIK only glibc and libgcc are linked dynamically in a program written in rust, and there's a way to statically link these.
As for rebooting not being a thing, the IBM AS/400 and its offspring (currently named IBM i) have been doing it for decades now. They are very alien when compared to Unix, but still quite cool. And extraordinarily mainframe-like reliable.
There's a reason they cost a small fortune.
Dependency hell isn't just dealing with incompatible dependencies. It has another side of forcing upgrades when they are needed for very, very good reason.
There could be a dialog that warns the user and offers to disable functionality.
We will have to eventually do an accurate permission system anyway.
Out-of-support branches aren't suddenly going to start being supported again, just because you've changed how dependencies are managed.
Lets say there are 10 versions of my function. A critical vulnerability is discovered, and I publish a fix in version 11. I hire someone to backport the fix to all 10 historic versions of the function.
Now I have 21 distinct versions of the same function.
Oh no, another critical vulnerability has been discovered!
I fix it in version 22, and hire a team to backport the fix to all 21 other versions.
Now I have 43 versions of the same function!
Oh no...
Sure, you could be a bit more pragmatic about which history nodes you backport to, but it's still fundamentally O(n^2). It's hard enough to manage backports at a whole-project level, let alone per-function.
But then it wouldn't be the old version of the function any more, but a brand new function. If you allow arbitrarily changing 'old' function then you just lost all the guarantees of stability and reproducability that this approach was supposed to offer.
Frankly, what we actually need is a unified package format like we have for containers rather than specific micro optimizations that nobody really asked for. If gradle, npm, pip, cargo, pacman, apt all speak the same package format you only need one registry for all languages. After that you can think about building a unified package manager. After that you can think about a unified build system.
As a distributed database engineer, we have been working with some universities and exploring the optimization of database on Intel Optane for a long time, and even have published some papers.
But everything was only in the experimental stage, it was difficult for us to use the research successfully in production, because nearly all of of our customers hadn't bought Intel Optane. They thought Optane was too expensive and didn't find suitable scenarios. As far as I know, the only successful story was from one of our customer, he used Optane for Redis which had an acceptable latency and better cost-effective.
Things go worse when the cloud is raising. We find that we can't use Optane on the cloud, so our later priority is to explore the optimization on the cloud disk like EBS GP3, etc.
It's not a problem that will affect every developer but it is a critical problem.
Many uses cases need access to data in both a fast (~ memory) and durable (~ SSD) way.
Copying data from SSD to memory helps with performance but the minute you modify that data then you've lost durability. Databases, file systems, caches etc are examples of critical use cases that are used by all developers that would benefit from something like Optane.
There was Redis [1] which was around ~10% slower than the memory only version but gained you durability. And there was an implementation of Spark Shuffle [2] which was 1.3x - 3.2x faster but that isn't really stressing I/O as much as other use cases.
For a filesystem you can store the entire metadata in Optane so EXISTS/LIST type operations and anything involving a bloom filter would see the full benefit e.g. order of magnitude better than NVME.
[1] https://github.com/pmem/pmem-redis
[2] https://databricks.com/session_na20/accelerating-apache-spar...
Briefly stated, it turns fsync() into a near-noop. That seems like it could be a pretty big deal for some workloads.
Yeah I think you would still need an "erase all caches and reboot" option but there's no theoretical reason you couldn't have that. The main reason you have to restart desktop OSes so often is because they're ancient and don't isolate components properly. How often do you have to restart your phone? A couple of times a year maybe?
But I agree with your point - it does seem like a very cool idea but practically wouldn't make a huge amount of difference and basically requires an entirely new incompatible OS.
I wonder if it would have been more successful in phones actually. iOS already doesn't have a user-accessible filesystem and Android is moving in that direction.
Me? Like once a month at least, probably twice. Could be as frequent as multiple times in an hour. Just depends on the reason. It could include anything from "battery ran out before I charged" (a few times a year maybe) to "my phone is crashing/behaving erratically" (could be every few weeks) to "Android didn't refresh its MTP database live and won't show the file I added till I reboot" (could be from 5 mins ago). Not an exhaustive set, just listing a few examples.
> I wonder if it would have been more successful in phones actually.
Interesting idea. Maybe? I wonder how much the performance improvement would be for the end-user.
Personally I reboot my iphone once a year. It also reboots overnight every 3 months or so for software updates, but that's often not observable because apps restore their state.
iOS actually did add some sort of native file explorer some time ago – no idea how comprehensive it is, but I guess it shows that even Apple couldn't entirely get rid of this.
> and Android is moving in that direction.
… and I absolutely hate it. Though I think it's not so much getting rid of files, as simply a half-assed attempt at sandboxing with a completely incompatible new API, various bugs (performance and otherwise), and breakage (flexibly exchanging multi-file file format files [1] between arbitrary apps is more or less dead if you follow the new rules, though in that case no sandboxing solution on any OS seems to get that right – as far as I'm aware only macOS even attempts to offer some sort of solution for that problem, but even that only solves part of the problem).
[1] Like locally mirrored HTML files with multiple pages or separately stored subresources (JS/CSS/media files/…), or movies + subtitles, or multi-part archives, or…
Every month, due to the monthly security updates which are delivered via a firmware update.
But not only that: it doesn't solve a problem big enough to make it commercially viable. It might be nice for something like Amazon's Redshift, but not for our mundane web servers and accounting programs, nor for the apps on our laptops and telephones. It's a solution in search for a problem.
Why Intel killed its Optane memory business - https://news.ycombinator.com/item?id=32272648 - July 2022 (6 comments)
Intel to Wind Down Optane Memory Business - https://news.ycombinator.com/item?id=32270799 - July 2022 (6 comments)
Intel Kills Optane Memory Business - https://news.ycombinator.com/item?id=32270584 - July 2022 (1 comment)
Considering that rebooting is currently the primary way of fixing any malfunctioning device, blurring RAM and disk doesn't seem that helpful. Things will crash and you will still need that distinction to some degree, no matter what the storage tech is. Some stuff is volatile and some stuff isn't.
We still need to explicitly define what happens when we reboot.
What makes optane really interesting to me is the endurance. They seem like they would be great as traditional SSDs hosting databases.
A byte-addressable Optane RAM would enable a database that no longer “thinks” in pages, but can independently persist much smaller pieces of its internal structures, possibly leading to new paradigms compared to what we have now. Perhaps write-ahead logs, B-Trees and other stuff can be implemented better when you are no longer limited to writing entire pages?
Back in last year 2021, Linus was asked what is the most special about Linux in an interview, and he pointed to the Linux File System as the fastest in the business [1]. Now imagine an OS (Linux or not) having a first class in-memory file system, and it will blows away any conventional OS file-system, and Optane can provide this possibility at an affordable cost. I know that you can get several Terabytes of RAM with Xeon CPUs now, but at the moment the cost will be prohibitive.
The above mentioned feature has a killer application namely non-linear time-frequency analysis [2]. This quadratic complexity algorithm need to have huge amount of working memory in order to work effectively. I have a paper on this topic applied to biomedical field and it is currently trending on top of the page in Google search for several years now due to the highest accuracy, specificity and sensitivity of more than 99%. Apparently it's a sleeper paper because other researchers would avoid citing the article due to its very high accuracy using commonly available datasets hence lower ranking (still high but not top or front page) on the subject in Google Scholar search. During a meeting with Micron engineers earlier this year I have conveyed my condolence to them.
[1]https://www.tag1consulting.com/blog/interview-linus-torvalds...
[2]https://en.m.wikipedia.org/wiki/Bilinear_time%E2%80%93freque...
To really see wins, you needed an application data model that could benefit from the high density/single node capacity, byte-addressability, and persistence. Basically an in-memory database, either general purpose or embedded in a specialized data processing application.
Those are premium, niche markets, and could never support the demand Intel needed to make commercial sense.
That's exactly the sort of thing that people said about the Mac in the mid-1980s, and Windows in the early 1990s, and so on. :-)
Thank you. :-)
I am trying to do some more in-depth analytical pieces for the site, and I am delighted that several of them have done very well -- not only on HN.
"Last week Intel killed Optane. Today, Kioxia and Everspin announced comparable tech"
"Rumors of storage-class memory's demise may have been premature"
https://www.theregister.com/2022/08/02/kioxia_everspin_persi...
"Kioxia Corporation, the world leader in memory solutions, today announced the launch of the second generation of XL-FLASH, a Storage Class Memory (SCM) solution based on its BiCS FLASH 3D flash memory technology, which significantly reduces bit cost while providing high performance and low latency. Product sample shipments are scheduled to start in November this year, with volume production expected to begin in 2023.
The second generation XL-FLASH achieves significant reduction in bit cost as a result of the addition of new multi-level cell (MLC) functionality with 2-bit per cell, in addition to the single-level cell (SLC) of the existing model. The maximum number of planes that can operate simultaneously has also increased from the current model, which will allow for improved throughput. The new XL-FLASH will have a memory capacity of 256 gigabits.
Kioxia's second generation XL-FLASH memory solution is engineered to bring higher performance and lower cost for data centers and enterprise servers and storage systems. In the future, it may also be possible to apply the product using CXL (Compute Express Link). Kioxia will continue to develop cutting-edge technologies and products to meet the needs of the expanding SCM market.
Kioxia will feature the second generation XL-FLASH during its keynote presentation at the Flash Memory Summit 2022 in Santa Clara, California on August 2. "
https://www.techpowerup.com/297385/kioxia-launches-second-ge...
I'm definitely curious about how fast it will run over CXL.
we will get more information in the next 24h
"Kioxia will feature the second generation XL-FLASH™ during its keynote presentation at the Flash Memory Summit 2022 in Santa Clara, California on August 2." !
It Itanium had excellent Linux support on day one it could have been a different story.
To this day I complain loudly IBM has no entry-level desktop/deskside POWER machines that are appealing to people who would buy a generic x86 workstation. If all they have is hardware for current clients to upgrade to, the platform becomes legacy pretty quickly.
I will go as far as saying ARM servers would never have happened were it not for pioneering stuff like the Raspberry Pi and other small hobbyist boards that served as an entry level and proved ARM was viable as a Linux host.
In many cases it is desirable for memory to be volatile. If high-throughput paging mechanics are required, like databases, this technology doesn't serve much of a purpose. Storage densities per server have only been increasing. It has some obvious utility for transaction logs and such but falls into a notorious dead spot in the market -- people with low volumes don't need the performance and people with high volumes can achieve similar results by other means for a price that isn't that different from the Optane premium.
I've tried to find a use for it, and I haven't been able to. That doesn't mean a use case doesn't exist, but if it was "the biggest new idea" you'd think the use case would be more obvious for more applications.
Quite a lot of software is excessively wasteful with storage writes, in which case it is more of an issue. That says more about the software than the storage, and can be addressed by not being profligate.
didnt they already do that in kernel and/or drivers?
because Optane had customers, that wasn't some crazy lab tech, it was actually deployed in prod envs.
Yes, that's exactly right.
The mindset was apt when RAM was tiny and expensive, and the only way to get large amounts of space was disks.
That is no longer true.
We don't really need memory-mapped storage, IMO. If we do, it's perfectly attainable with swap/virtual memory (and pretty damn fast with newer NVME specs). I think Intel found something cool, didn't know how to market it, and ended up placing a bad bet on fairly domain-specific technology.
Tangent, but... that's kind of missing the point. The M1 SoCs have tons of memory bandwidth to keep the GPU fed. The fact that this also gives the CPU more memory bandwidth than it can possibly use is a convenient benefit.
Optane is orders of magnitude faster than virtual memory, it is a complete OS bypass. I think you are conflating Optane used in an SSD and Optane on the memory bus. SSD Optane was a way to package and sell it before the rest of the hardware and sofware caught up for DIMM based Optane.
edit, removed snark.
Well, sure; I think that sentiment applies to networking/CPU maximization too. But, much like we discovered with SSDs, there is a point of diminishing return for most people. Pretty much anything running an NVMe SSD won't experience significant storage throttling. Anyone connected to wired broadband will have roughly the same experience as everyone else on it. Since so much software is designed around nominal specifications, I don't really notice the M1's memory bandwidth in regular use. Text editing, app launching, smoothness and usability... it's all roughly the same as my throwaway $300 Thinkpad that has a nicer keyboard and no ARM contrivances.
> Optane is orders of magnitude faster than virtual memory
Not really... Intel has only claimed that Optane is 3-4 times faster than flash-based NVMe, which still puts it at >10x slower than the speeds of a trashy DDR4 2133mHz DIMM. If it's supposed to replace memory, it's both slower and more expensive. If it's intended to be a storage volume, most people would probably get better performance out of a ramfs or tempfs.
This indeed leaves Optane as a limited-use enterprise persistent cache technology.
Especially for anything distributed you want that metadata to be super fast but also durable.
No. It bombed because Intel is not in a habit of reducing prices. Why optimize production and sell more instead of milking top 1% of your corporate clients? P4800X was introduced in 2017 at $1.5K 375GB, guess how much cheaper its now :)
AWS has never supported it. And on Azure/GCP it was only on expensive, high end types designed for SAP HANA and other niche use cases.
Shame as there was some interesting projects e.g. DAOS [1] that I would have loved to try out.
That sounds like a dubious claim to me, at least if we take the hyping up at face value.
If Optane was really that awesome, why not build a database on top that's either much faster or much cheaper than what we have now? Then sell that to a cloud vendor. The end user is only interested in the wire protocol (and up the stack from there) that they speak to the database, and not the underlying OS.
I cannot imagine Intel going to one of the three major cloud vendors, offering a 10x improvement (in either cost or performance) for one of their larger offerings, and the cloud vendor simply saying "nope, not interested".
Maybe the practical improvements simply weren't there?
I think if Intel really focused on what they were trying to do, I really do think they would have had success in the data center for accelerating data center drives.
256GB of Optane persistent memory would cost north of $2500.
Edit: found the old one though, Gigabyte i-RAM
I was very interested in the tech but never quite understood how to utilize it, so it dropped off my radar.
Wait what? It's always been at a significant premium per GB over both enterprise HDDs and high-speed SSDs.
The cheapest DIMM module is 128GB for > $450 a pop.
Even in the enterprise range you'll get 1TB of fast and durable SSD with PLP for that, and that's when I restrict myself to things that are in stock right now. Even if you would get the Optanes at 75% off, that'd still almost be twice the price.
There's never been a point in the past when they've been significantly cheaper, either.
"Cheaper than RAM, but in the size range of SSDs, with performance in between the two," would have been a better way to express it.