News for hackers. Stuff that matters.
Re:SSDs Have Become Fast, Except in the Cloud by 20after4 on Tuesday February 20, 2024 @12:58PM (#39444464)
If the SSD is installed in the host server, doesn't that still allow for it to be shared among many instances running on said host? I can imagine that a compute node has just a handful of SSDs and many hundreds of instances sharing the I/O bandwidth.
Re:SSDs Have Become Fast, Except in the Cloud by discodave on Tuesday February 20, 2024 @01:07PM (#39444584)
If you have one of the metal instance types, then you get the whole host, e.g. i4i.metal:

https://aws.amazon.com/ec2/instance-types/i4i/

Re:SSDs Have Become Fast, Except in the Cloud by aeyes on Tuesday February 20, 2024 @01:22PM (#39444763)
On AWS yes, the older instances which I am familiar with had 900GB drives and they sliced that up into volumes of 600, 450, 300, 150, 75GB depending on instance size.

But they also tell you how much IOPS you get: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/stora...

Re:SSDs Have Become Fast, Except in the Cloud by queuebert on Tuesday February 20, 2024 @02:59PM (#39446130)
How do these machines manage the sharing of one local SSD across multiple VMs? Is there some wrapper around the I/O stack? Does it appear as a network share? Geniuinely curious...
Re:SSDs Have Become Fast, Except in the Cloud by felixg3 on Tuesday February 20, 2024 @03:07PM (#39446222)
Probably NVME namespaces [0]?

[0]: https://nvmexpress.org/resource/nvme-namespaces/

Re:SSDs Have Become Fast, Except in the Cloud by bravetraveler on Tuesday February 20, 2024 @05:54PM (#39448056)
Less fancy, quite often... at least on VPS providers [1]. They like to use reflinked files off the base images. This way they only store what differs.

1: Which is really a cloud without a certain degree of software defined networking/compute/storage/whatever.

Re:SSDs Have Become Fast, Except in the Cloud by magicalhippo on Tuesday February 20, 2024 @04:04PM (#39446886)
In say VirtualBox you can create a file backed on the physical disk, and attach it to the VM so the VM sees it as a NVMe drive.

In my experience this is also orders of magnitude slower that true direct access, ie PCIe pass-through, as all access has to pass through the VM storage driver and so could explain what is happening.

Re:SSDs Have Become Fast, Except in the Cloud by bravetraveler on Tuesday February 20, 2024 @05:56PM (#39448073)
The storage driver may have more impact on VBox. You can get very impressive results with 'virtio' on KVM
Re:SSDs Have Become Fast, Except in the Cloud by magicalhippo on Tuesday February 20, 2024 @07:15PM (#39448690)
Yeah I've yet to try that. I know I get a similar lack of performance with Bhyve (FreeBSD) using VirtIO, so it's not a given it's fast.

I have no idea how AWS run their VMs, was just saying a slow storage driver could give such results.

Re:SSDs Have Become Fast, Except in the Cloud by bravetraveler on Tuesday February 20, 2024 @08:24PM (#39449157)
> just saying a slow storage driver could give such results

Oh, absolutely - not to contest that! There's a whole lot of academia on 'para-virtualized' and so on in this light.

That's interesting to hear about FreeBSD; basically all of my experience has been with Linux/Windows.

Re:SSDs Have Become Fast, Except in the Cloud by dan-robertson on Tuesday February 20, 2024 @03:12PM (#39446276)
AWS have custom firmware for at least some of their SSDs, so could be that
Re:SSDs Have Become Fast, Except in the Cloud by icedchai on Tuesday February 20, 2024 @04:56PM (#39447488)
With Linux and KVM/QEMU, you can map an entire physical disk, disk partition, or file to a block device in the VM. For my own VM hosts, I use LVM and map a logical volume to the VM. I assumed cloud providers did something conceptually similar, only much more sophisticated.
Re:SSDs Have Become Fast, Except in the Cloud by bravetraveler on Tuesday February 20, 2024 @05:58PM (#39448087)
Files with reflinks are a common choice, the main benefit being: only storing deltas. The base OS costs basically nothing

LVM/block like you suggest is a good idea. You'd be surprised how much access time is trimmed by skipping another filesystem like you'd have with a raw image file

Re:SSDs Have Become Fast, Except in the Cloud by jethro_tell on Wednesday February 21, 2024 @10:41AM (#39455138)
Heh, you'd probably be surprised, there's some really cool cutting edge stuff being done in those data centers but a lot of what is done is just plan old standard server management without much in the way of tricks. Its just someone else does it instead of you and the billing department is counting milliseconds.
Re:SSDs Have Become Fast, Except in the Cloud by icedchai on Wednesday February 21, 2024 @11:32AM (#39455931)
Do cloud providers document these internals anywhere? I'd love to read about that sort of thing.
Re:SSDs Have Become Fast, Except in the Cloud by jethro_tell on Wednesday February 21, 2024 @12:45PM (#39456966)
Not generally, especially not the super generic stuff. Where they really excel is having the guy that wrote the kernel driver or hypervisor on staff. But a lot of it is just an automated version of what you'd do on a smaller scale
Re:SSDs Have Become Fast, Except in the Cloud by ownagefool on Tuesday February 20, 2024 @01:25PM (#39444820)
PCI bus, etc too
Re:SSDs Have Become Fast, Except in the Cloud by throwawaaarrgh on Tuesday February 20, 2024 @02:44PM (#39445938)
Instance storage is not networked. That's why it's there.