Readit News logoReadit News
majke commented on 2002: Last.fm and Audioscrobbler Herald the Social Web   cybercultural.com/p/lastf... · Posted by u/cdrnsf
majke · 4 days ago
Richard Jones is still alive and kicking https://x.com/metabrew
majke commented on VPN location claims don't match real traffic exits   ipinfo.io/blog/vpn-locati... · Posted by u/mmaia
majke · 5 days ago
Back in 2022 I published a doc on how the egress IPs work at Cloudflare:

https://blog.cloudflare.com/cloudflare-servers-dont-own-ips-...

In summary, the location at which an IP egresses Cloudflare network has nothing to do with the geo-ip mapping of that IP. In some cases the decision on where to egress is optimised for "location closest to the user", but this is also not always true.

And then there is the Internet. Often some country (say Iran) egresses from a totally different place (like Frankfurt) due to geopolitics and just location of cables.

majke commented on Pop Goes the Population Count?   xania.org/202512/11-pop-g... · Posted by u/hasheddan
majke · 7 days ago
Hey! Popcount used to be my favorite instruction. Now I think I prefer LOP3 though :)
majke commented on Ask HN: Scheduling stateful nodes when MMAP makes memory accounting a lie    · Posted by u/leo_e
majke · 24 days ago
> Coordinator sees Node A has significantly fewer rows (logical count) than the cluster average. It flags Node A as "underutilized."

Ok, so you are dealing with a classic - you measure A, but what matters is B. For "load" balancing a decent metric is, well, response time (and jitter).

For data partitioning - I guess number of rows is not the right metric? Change it to number*avg_size or something?

If you can't measure the thing directly, then take a look at stuff like "PID controller". This can be approach as a typical controller loop problem, although in 99% doing PID for software systems is an overkill.

majke commented on Questions for Cloudflare   entropicthoughts.com/ques... · Posted by u/todsacerdoti
mnholt · a month ago
This website could benefit from a CDN…
majke · a month ago
Questions for "questions for cloudflare" owner
majke commented on How to escape the Linux networking stack   blog.cloudflare.com/so-lo... · Posted by u/meysamazad
nomel · a month ago
> faster - less context switches and copies

Aren't neither required these days with the "async" like and zero-copy interfaces that are now available (like io_uring, where it's still handled by the kernel), along with the nearly non-existence of single core processors in modern times?

majke · a month ago
> > faster - less context switches and copies

This is very much newbie way of thinking. How do you know? Did you profile it?

It turns out there is surprisingly little dumb zero-copy potential at CF. Most of the stuff is TLS, so stuff needs to go through userspace anyway (kTLS exists, but I failed to actually use it, and what about QUIC).

Most of the cpu is burned on dumb things, like application logic. Turns out data copying and encryption and compression are actually pretty fast. I'm not saying these areas aren't ripe for optimization - but the majority of the cost was historically in much more obvious areas.

majke commented on How to escape the Linux networking stack   blog.cloudflare.com/so-lo... · Posted by u/meysamazad
alecco · a month ago
Being a networking company I always wondered why did they pick Linux over FreeBSD.
majke · a month ago
This happened before my watch, but I always was rooting for Linux. Linux is winning on many aspects. Consider the featureset of iptables (CF uses loads of stuff, from "comment" to "tproxy"), bpf for metrics is a killer (ebpf_exporter), bpf for DDoS (XDP), Tcp fast open, UDP segmentation stuff, kTLS (arguably half-working). Then there is non-networking things like Docker, virtio ecosystem (vhost), seccomp, namespaces (net namespace for testing network apps is awesome). And the list goes on. Not to mention hiring is easier for Linux admins.
majke commented on SocketAddrV6 is not roundtrip serializable   sunshowers.io/posts/socke... · Posted by u/cyndunlop
majke · a month ago
Falsehoods programmers think about addresses:

- parsing addresses is well defined (try parsing ::1%3)

- since 127.0.0.2 is on loopback, ::2 surely also would be

- interface number on Linux is unique

- unix domain socket names are zero-terminated (abstract are not)

- sin6_flowinfo matters (it doens;t unless you opt-in with setsockopt)

- sin6_scope_id matters (it doesn't unless on site-local range)

(I wonder if scope_id would work on ipv4-mapped-IPv6, but if I remember right I checked and it didn't)

- In ipv4, scope_id doesnt exist (true but it can be achieved by binding to interface)

and so on...

Years ago I tried to document all the quirks I knew about https://idea.popcount.org/2019-12-06-addressing/

majke commented on Oxy is Cloudflare's Rust-based next generation proxy framework (2023)   blog.cloudflare.com/intro... · Posted by u/Garbage
wmf · 2 months ago
Outside of HPC/HFT most people will never need kernel bypass. If you just got off Nginx you probably have years of optimizations left to do. (Username checks out though.)
majke · 2 months ago
There should be a political party for people who use opcode mnemonics as their nicknames or domain names.

u/majke

KarmaCake day5436October 29, 2009
About

  Enthusiastic geek         https://idea.popcount.org
                            https://github.com/majek

View Original