Better HN
topnewbestaskshowjobs
Log inSign up

iakie

17 karma · joined Feb 13, 2015 (11y ago) · 7 submissions

Submissions

comment 5d ago · link · parent

I worked extensively with XDP last year, have to say its rather disappointing, and I wouldn't recommend people use it for most general purposes applications.

I have several criticism:

1) a lot of XDP is implemented by each individual netdevice drivers. Each implementation have different features, bugs and quirks. You have to be Prepared to dig into kernel source to figure out why your app stopped working after deploy to a different system, and adjust your app accordingly.

2) XDP require lots of planning on your deployment environment. Eg, Does your app owns the specific netdevice, or it's shared? Whats the expected traffic rate, and how much ram should be allocated for xdp ring buffer.

3) the busy poll mentioned in article comes with a heavy tradeoff. I'm not sure dedicate a cpu core running at 100% for checking if there's packet is something most deployment is willing to pay.

comment 7y ago · link · parent

I understand what you mean, but when Vancouver locals say "asian", they really mean "east asian" (Chinese/Japanese/Korea). I live in Surrey, a Vancouver suburb, where ethnic Indian is about 30%-40% of population. The local newspaper often refers them as "South Asian community".

But I'm surprised that BBC use "Asian" to refer "East Asian". I'm under the impression that in UK, they use "Asian" to refer "South Asian".

comment 7y ago · link · parent

weekly put options. (http://www.cboe.com/products/weeklys-options)

comment 8y ago · link · parent

actually, TPROXY is very very lightly coupled with iptables. In fact, you can directly use TPROXY without iptables.

here's a 50 line kernel module that uses TPROXY to do the samething without touching iptables.

https://pastebin.com/uxUf6MFS

looking at the nftables code, I think the only reason nftables doesn't support TPROXY is that no one wrote some of the config parsing / seralization stuff.

comment 8y ago · link · parent

nftables doesn't support TPROXY.

comment 8y ago · link · parent

like the other guys said, 1) use a alarm clock, 2) there's a freaking calendar app builtin.

but if you really need to "code" for whatever reason. The core logic is trivially simple. you need to 1) wait til the moment you want to wake up 2) generate some noise.

so just open mac terminal and type:

sleep 28800; while true; do say "wake up"; done

comment 9y ago · link · parent

For those referring nftables, there’s a LOT of stuff in iptables that doesn't work in nftables: from simple things like xt_time to complex ones like xt_TPROXY. so nftables isn't a viable replacement for iptables just yet. In theory there's a compat layer in nftables to get around those, but I have never able to successfully build a binary that works.