News for hackers. Stuff that matters.
Re:Estimating Your Memory Bandwidth by dietr1ch on Tuesday January 16, 2024 @05:59AM (#39011889)
I was curious and get vastly different numbers on my machine.

I grabbed this and compiled it with gcc https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...

g++ -std=gnu++17 -O3 -o bandwidth bandwidth.cpp && ./bandwidth > 50.0 > ...

50 GB/s, it drops slowly to 45GB/s with 32 threads)

sudo hdparm -T /dev/nvme0n1

> Timing cached reads: 58222 MB in 1.99 seconds = 29230.67 MB/sec

It's a good lower bound though

Re:Estimating Your Memory Bandwidth by pengaru on Tuesday January 16, 2024 @02:02PM (#39017373)
That makes me wonder how much sys-wide kernel<->userspace and/or glibc copying performance is sitting on the table there, to be potentially reclaimed with an optimized build and/or vulnerability mitigations disabled?