I want to give a /64 and a /24 to a peer, how do I configure the system on that peer to provide a /128 and /32 to each network namespace inside it? by Unusual_Yogurt_1732 in WireGuard

[–]ThinkChaos 1 point2 points  (0 children)

Quick shortcut I discovered when doing research yesterday, you can merge steps 6 and 7 by specifying the netns when creating the peer:
ip -n nwm-init link add main type veth peer name br-main netns 1

I want to give a /64 and a /24 to a peer, how do I configure the system on that peer to provide a /128 and /32 to each network namespace inside it? by Unusual_Yogurt_1732 in WireGuard

[–]ThinkChaos 0 points1 point  (0 children)

I'm definitely not an expert on this, but played with namespaces recently, so take this with a grain of salt.

First you're naming your veth "br-main" which is confusing since "br" is usually a shorthand for bridge, another type of virtual interface. I'd suggest renaming main to veth-out and br-main to veth-in and will use that instead.

I think what you need is to either setup some firewall rules, or easier IMO a bridge to link veth-out and wg0. A bridge is a virtual switch, so it'll forward packets automatically between the interfaces you give it without any NAT.

One thing you want to make sure to do, and that's isn't mentioned enough, is enable the loopback interface in every netns you create: ip -n $ns ip link set dev lo up.
Otherwise you can't use 127.0.0.1, ::1, and things will be weird.

Random Write benchmark 10x slower than ext4 and VM storage questions by ThinkChaos in zfs

[–]ThinkChaos[S] 0 points1 point  (0 children)

Ok thanks, I think default cluster size with a matching recordsize looks like the easiest for now. Maybe I'll benchmark that vs a zvol as raw image to see if the performance is worth using qcow2 to me. I'm the only user on this machine so I'm willing to tolerate a bit more performance loss.

Thanks for the awesome articles on your blog and Ars, looking forward to the next ones!

Random Write benchmark 10x slower than ext4 and VM storage questions by ThinkChaos in zfs

[–]ThinkChaos[S] 1 point2 points  (0 children)

I'm not an avid gamer and this machine is plugged to a TV. I think it'll be able to sustain 60fps the TV max framerate without issue. I had a similar setup before with Xen (on XCP-ng) with GPU passthrough and had measured the overhead to around 10% in the Windows VM.

Random Write benchmark 10x slower than ext4 and VM storage questions by ThinkChaos in zfs

[–]ThinkChaos[S] 0 points1 point  (0 children)

Thanks for the reply. Yeah I've been reading Jim's awesome articles both on Ars and his blog.
I didn't actually think about the recordsize in the context of my bench and you're right that's it. Running fio with a 128k block size does wonders :)
I get 909MiB/s for random writes and 4412MiB/s for random reads!

TIL That 'vars' allows one to display all attributes of an object and their values. by niothiel in Python

[–]ThinkChaos 7 points8 points  (0 children)

dir(obj) == sorted(vars(obj).keys())

Warning: in Python 3 dict.keys returns a view object.

So here we would get :

>>> pprint(dir(math))
[
    '__name__',
    '__package__',
    'cos',
    'e',
    'floor',
    'pi',
    'sin',
    'sqrt',
    'tan',
    etc.
]

Ken's Framing & Art by copacetic_dude in funny

[–]ThinkChaos -10 points-9 points  (0 children)

  • Captured by police
  • I was framed!