←back to thread

526 points swills | 3 comments | | HN request time: 0.001s | source
Show context
rezonant ◴[] No.45688230[source]
But is /dev/null web scale?
replies(3): >>45688273 #>>45688300 #>>45688765 #
epistasis ◴[] No.45688273[source]
Yes, /dev/null can even power sites like zombo.com
replies(1): >>45688321 #
bottled_poe ◴[] No.45688321[source]
What’s the I/O throughput of /dev/null ?
replies(2): >>45688365 #>>45688374 #
epistasis ◴[] No.45688365[source]
Single client, I'm getting ~5GB/s, both on an 8-year-old intel server, and on my M1 ARM chip.

However with a single server, it doesn't perfectly linearly scale with multiple clients. I'm getting

1 client: 5GB/s

2 clients: 8GB/s

3 client: 8.7GB/s

replies(2): >>45688467 #>>45688477 #
fukka42 ◴[] No.45688467[source]
I'm easily reaching 30GB/s with a single client:

    dd if=/dev/zero of=/dev/null bs=1M status=progress
A second dd process hits the same speed.
replies(2): >>45688575 #>>45688592 #
rezonant ◴[] No.45688592[source]
What's the best hardware for running a /dev/null instance for production?
replies(2): >>45688994 #>>45689263 #
1. epistasis ◴[] No.45688994[source]
I usually do a kubernetes cluster on top of VMs. But sometimes when I really want to scale the standard cloud server less platforms all support /dev/null out of the box. (Except for Windows...)
replies(1): >>45689660 #
2. wowczarek ◴[] No.45689660[source]
> Except for Windows...

copy c:\file nul

It's been there since DOS or more likely CP/M :)

replies(1): >>45690314 #
3. epistasis ◴[] No.45690314[source]
Still need an adapter library though! Fortunately there are about 7 competing implementations on npm and most of them only have 5-6 transitive dependencies.