Hacker News new | past | comments | ask | show | jobs | submit login

What's the API for these Optane DIMMs? Does the program decide what gets placed in them? Does the OS? (if so, how?)




To the OS, its just memory and you can just mmap it. There are some filesystem abstractions built on top though eg https://lwn.net/Articles/729770/


What about multithreading? An OS can read from an SSD then context switch to do useful other stuff until the data comes back. Once the OS issues a request to (relatively) slow memory, the only thing that can use that core are other instructions in the pipeline and other hyperthreads; i.e no other OS threads allowed.


The fastest NVMe SSDs are already right around the threshold where there isn't time to complete a pair of context switches before you get the data back, and the difference in latency between polling or waiting for an interrupt is significant. These Optane DIMMs should be fast enough that only hardware-managed context switches like hyperthreading/SMT are usable without performance loss.


Yes. But the Optane chips are fast enough for that to be only a minor nuisance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: