HackerTrans
TopNewTrendsCommentsPastAskShowJobs

majke

no profile record

Submissions

How long does it take to make a context switch? (2010)

blog.tsunanet.net
87 points·by majke·9 năm trước·72 comments

comments

majke
·15 ngày trước·discuss
sockmap has been through a lot of changes since then. Some done by CF (hi Jakub!) some by others, including bytedance and isovalent.

Recently there has been a push to figure out the backpressure situation, so it's worth checking again.

Marek
majke
·18 ngày trước·discuss
This is great. So proper 386 on an fpga? How cool is that.
majke
·tháng trước·discuss
> A lot of self-hosters running CF tunnels because they don't know better also contributes.

Are you saying CF documentation is better than Computer Science / Networking education resources? Why don't people know better? I thought the tunnels are mostly used to bypass NAT's.

> Static blogs hiding behind bot protection

I'm not sure what is the proportion of the static vs dynamic sites, but I would argue that for wordpress CF is adding real value.
majke
·tháng trước·discuss
(I'm ex CF) This is backwards. Nobody "allowed" anyting. CF serves a customers need. You can argue with the solution but you can't argue with the core problem. It's more healthy to start the conversation of _why_ CF services are valuable.
majke
·tháng trước·discuss
Lysk | lysk.ai | AI/Geo Engineer | Full-time | Warsaw / Paris

Lysk is a European defence startup, based between Paris and Warsaw. Our mission is to create modern software tailored for hostile environments. Our customers include European military and police units. We are in stealth but have already been recognised as one of France’s top 20 seed companies. Backed by Project A, Europe’s leading defence VC, and angels including the founders of Cloudflare, Quantum Systems, and ElevenLabs. We’re assembling a world-class team at the intersection of modern software and defence. We do not work on weapons systems or hardware products.

Currently we're looking for:

- Junior LLM engineer (gguf, on-prem models, llm validation and pipelines)

- Junior Voice AI engineer (we need customised STT models)

- Senior GEO-AI engineer (interpreation of speech-based geographical information)
majke
·2 tháng trước·discuss
I've had more success. Flipper taught me about sdr, and I was able to reverse quite a lot from my garage door pilot. Then I went on an adventure of cracking Keeloq cipher, and I haven't stopped since.
majke
·3 tháng trước·discuss
No later than last week I was fishing in my boxes for two pieces of 2N2222 for a pet project!
majke
·3 tháng trước·discuss
> As of today, the full reference footage hasn't been released online.

A pity
majke
·3 tháng trước·discuss
I’m also contemplating a lego sorting machine.
majke
·5 tháng trước·discuss
Not necessarily. In classic C we often build complex state machines to handle errors - especially when there are many things that need to be initialized (malloced) one after another and each might fail. Think the infamous "goto error".

I think defer{} can simplify these flows sometimes, so it can indeed be useful for good old style C.
majke
·6 tháng trước·discuss
Ispc looks interesting. Does it work with amd? They hint on gpu’s , i guess mostly intel ones?
majke
·6 tháng trước·discuss
So... does it mean that nobody reads the law? Is it good or bad? What is the takeaway?
majke
·7 tháng trước·discuss
Richard Jones is still alive and kicking https://x.com/metabrew
majke
·7 tháng trước·discuss
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
·7 tháng trước·discuss
Hey! Popcount used to be my favorite instruction. Now I think I prefer LOP3 though :)
majke
·8 tháng trước·discuss
> 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
·8 tháng trước·discuss
Questions for "questions for cloudflare" owner
majke
·8 tháng trước·discuss
> > 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
·8 tháng trước·discuss
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
·8 tháng trước·discuss
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/