Better HN
topnewbestaskshowjobs
Log inSign up

rostayob

1,986 karma · joined Feb 18, 2011 (15y ago) · 74 submissions

f@mazzo.li -- https://mazzo.li -- https://twitter.com/trascendentale
Submissions

comment 1y ago · link · parent

I talk about the cancelability state and how it can help us shortly after that statement: https://mazzo.li/posts/stopping-linux-threads.html#controlle... . In hindsight I should have made a forward reference to that section when talking about C++. My broad point was that combining C++ exceptions and thread cancellation is fraught with danger and imo best avoided.

comment 1y ago · link · parent

As I note in the blog post in various places if one can organize the code so that cancellation is explicit things are indeed easier. I also cite eventfd as one way of doing so. What I meant to convey is that there's no easy way to cancel arbitrary code safely.

comment 1y ago · link · parent

Cancellation points and cancellability state are discussed in the post. In a C codebase that you fully control pthread cancellation _can_ be made to work, but if you control the whole codebase I'd argue you're better off just structuring your program so that you yield cooperatively frequently enough to ensure prompt termination.

comment 1y ago · link · parent

This option is described in detail in the blog posts, with its associated problems, see this section: https://mazzo.li/posts/stopping-linux-threads.html#homegrown... .

comment 1y ago · link · parent

This is noted in the blog post, but the problem is that sometimes you don't have the freedom to do so. See this sidenote and the section next to it: https://mazzo.li/posts/stopping-linux-threads.html#fn3 .

comment 1y ago · link · parent

(I'm the author)

I don't really claim that Lanczos interpolation as presented is the "best" 2D interpolation there is. It is definitely popular though, and I couldn't find a source explaining how it is derived, so I thought it'd be an interesting topic for a blog post.

comment 1y ago · link · parent

There was no battle actually, everybody (well, my boss and my boss's boss) was very supportive of open sourcing. And thanks for the kind words!

comment 1y ago · link · parent

We do use Reed-Solomon codes, as the blog post explains.

comment 1y ago · link · parent

No, we have our custom compressor as well but it's outside the filesystem.

comment 1y ago · link · parent

The question is whether there are single Ceph deployments are that large. I believe Hetzner uses Ceph for its cloud offering, and that's probably very large, but I'd imagine that no single tenant is storing hundreds of PBs in it. So it's very easy to shard across many Ceph instances. In our use-case we have a single tenant which stores 100s of PBs (and soon EBs).

comment 1y ago · link · parent

I'm not fully up to date since we looked into this a few years ago, at the time the CERN deployments of Ceph were cited as particularly large examples and they topped out at ~30PB.

Also note that when I say "single deployment" I mean that the full storage capacity is not subdivided in any way (i.e. there are no "zones" or "realms" or similar concepts). We wanted this to be the case after experiencing situations where we had significant overhead due to having to rebalance different storage buckets (albeit with a different piece of software, not Ceph).

If there are EB-scale Ceph deployments I'd love to hear more about them.

comment 1y ago · link · parent

(Disclaimer: I'm one of the authors of TernFS and while we evaluated Ceph I am not intimately familiar with it)

Main factors:

* Ceph stores both metadata and file contents using the same object store (RADOS). TernFS uses a specialized database for metadata which takes advantage of various properties of our datasets (immutable files, few moves between directories, etc.).

* While Ceph is capable of storing PBs, we currently store ~600PBs on a single TernFS deployment. Last time we checked this would be an order of magnitude more than even very large Ceph deployments.

* More generally, we wanted a system that we knew we could easily adapt to our needs and more importantly quickly fix when something went wrong, and we estimated that building out something new rather than adapting Ceph (or some other open source solution) would be less costly overall.

13.

TernFS – An exabyte scale, multi-region distributed filesystem(xtxmarkets.com ↗)

251 points · by rostayob · 1y ago · 109 comments

14.

Waiting on many things at once with io_uring(mazzo.li ↗)

3 points · by rostayob · 2y ago · discuss

comment 2y ago · link · parent

I am, but I only type the messages I need to type. Which aren't that many. If there's some long explanation to be had I call or I leave a voice message. And yes, I am aware of the fact that everybody hates voice messages, but it's only fair if somebody requires my immediate attention :).

Typing is painful, but not disastrous actually. It's perfectly serviceable.

comment 2y ago · link · parent

Note that I was fairly careless with it, and I'm pretty clumsy. It probably fell 20+ times. But still, it feels very cheap (and I suppose it makes sense given the price).

comment 2y ago · link · parent

I've been using this phone as my full time phone for 1 year. It's a great compromise for people that ideally would not want a smartphone, but need to have one since many life situations require it.

I basically only use it for WhatsApp and music, but when some other need arises, it can do everything a normal smartphone can do.

The only problem is that the build quality is not good. The audio jack of the first one I bought (off the initial kickstarter) broke after 6 months or so. I bought another one, and the up volume button recently broke. But otherwise, no complaints.

comment 2y ago · link · parent

gpderetta is right -- test/cmp + jump will get fused.

uiCA is a very nice tool which tries to simulate how instructions will get scheduled, e.g. this is the trace it produces for sum3 on Haswell, showing the fusion: https://uica.uops.info/tmp/75182318511042c98d4d74bc026db179_... .

19.

CRC-32C Tips and Tricks(mazzo.li ↗)

3 points · by rostayob · 2y ago · discuss

20.

Fast CRC32 Implementations(github.com ↗)

1 points · by rostayob · 2y ago · discuss

comment 3y ago · link · parent

This post is an excuse to explain VM concepts, rather than a tutorial, something I maybe could have made clearer.

22.

Haskell Puzzles(jaspervdj.be ↗)

5 points · by rostayob · 3y ago · discuss

23.

Flame Chart Profiler for Clang compilation times(aras-p.info ↗)

1 points · by rostayob · 3y ago · discuss

24.

The essence of Reed-Solomon coding(mazzo.li ↗)

168 points · by rostayob · 4y ago · 41 comments

25.

Lánczos Interpolation Explained(mazzo.li ↗)

64 points · by rostayob · 4y ago · discuss

26.

Apple AMX instruction set (M1/M2 matrix coprocessor)(github.com ↗)

210 points · by rostayob · 4y ago · 188 comments

27.

Faster CRC32-C on x86(corsix.org ↗)

107 points · by rostayob · 4y ago · 21 comments

28.

Haskell Keynotes ZuriHac 2022(youtube.com ↗)

3 points · by rostayob · 4y ago · discuss

29.

OpenGOAL: Jak and Daxter decompiled, 98% of it being Lisp(github.com ↗)

21 points · by rostayob · 4y ago · discuss

30.

Moon Museum(en.wikipedia.org ↗)

3 points · by rostayob · 4y ago · discuss

123