No, one does not disable CoW on btrfs to improve performance. That nukes not only the CoW properly but also the integrity. The durability of data is also entirely ruined by doing that, btrfs' model of atomicity is entirely built on copy-on-write.
(swap is effectively the only-use case that makes sense for that file attribute.)
What one does is adjust commit frequency, dirty page cache ratios and in-VM workloads that unnecessarily request synchronous writes (get rid of systemd-journald persistent/on-disk IO, or the entire program, among others).
(One could just entirely disable the VMs' ability to do synchronous writes, but then they may truly need them sometimes. So it's best to actually understand one's workload properly.)
If one wants to use a faster filesystem that doesn't do integrity checking, don't mangle btrfs, configure it properly or just use xfs instead.
@mirabilos@dalias@jschauma@gantua@navi Back when hardware with more than one real CPU core was rare, it made sense but these days that is clearly a bottleneck.
(And most languages & frameworks providing green threads now are using multiple OS thread workers.)
@gantua@dalias@jschauma@mirabilos > If you have a stupid signal handler that sets a global variable its_time_to_exit = 1 which is just read elsewhere as a volatile, then once you add threads, suddenly you have an memory ordering issue
That's very much not the way I would do it or inter-thread communication, but if you want to do it that way then pthread_key_create, pthread_setspecific and pthread_getspecific are probably the answer to that problem.
@dalias@jschauma@gantua@navi@mirabilos When you compare a cost in megabytes between kilobytes, it means at least an order of reduction less available on my systems (despite machines with terabytes of memory existing, I do not have one).
@dalias@navi@jschauma@gantua@mirabilos After using a few languages with working green threads, I do hate how OS threads are expensive and one can't just use the naive option with them without all sorts of problems.
That depends on how much stuff you intend to write at once and whether you intend to write & fsync it.
Though in many cases I prefer to use message queues instead of spawning workers per-job, it's less expensive, easier to get right and quicker to write right.
@gantua@dalias@jschauma@mirabilos I do think that portable libraries should be preferred for addressing that issue to instead using Linux/platform-specific options directly (building on standards, rather than disregarding them).
Given the Linux kernel project produces libraries to make their custom APIs less painful to use, people are probably already using a library anyway.
@dalias@jschauma@mirabilos > And it's certainly not needed for application-level code that should be portable not written to wacky Linux-specific APIs.
Oh right, I had completely forgotten people used io_uring for anything other than weird cloudflare stuff and filesystems.
@dalias@Robotistry@jpoesen@datenwolf I suspect a lot of people get fooled by buying the devices presented on shop floors, which are typically spyware-filled and/or more expensive (for the "quality" ones), instead of looking for the actually good ones that are catalogue/online only.
@dalias@Robotistry@datenwolf@jpoesen I've been told in other threads that some countries don't have that, but here it's an extremely common malicious practice. Effectively normalized.
@icedquinn As in "the first reason they did is that their country bent knee"?
The sentence construction confuses me.
Embed this noticeLisPi (lispi314@udongein.xyz)'s status on Monday, 07-Sep-2026 12:02:20 JST
LisPiRegarding the Autistici shutdown thing, did they have to close down because they're worried about extralegal bullshit by the USA, or because their host country for some reason decided to bend knee to the USA and somehow considered they still had meaningful opinions worth paying attention to on such matters?
In any case, if direct connections to other peers are a problem, low-latency mixnets are indeed no longer an option. Delay-tolerant asynchronous networking, including considerable amounts of sneakernet-like methods, becomes necessary.
That requires a considerably harsher authoritarian stance and outside of North Korea no one really does it fully. (China does not investigate all connections nor all foreign connections.)
Oh sure they know you participate. They could have gotten the exact same info from traffic flow data from the ISP and it would tell them exactly as little as to what you're actually doing.
Hi, I'm Lispi, Lisp (Technomancer) Wizard (to eventually be).You might know me from @lispi314@mastodon.top I like Free Software, #Emacs and resilient computing a lot.I also like anime girls, animes with cute girls doing cute things and artwork with them too. Cute stories are good too.Some Pins:Software and Assumed Privilege, common problems: https://mastodon.top/@lispi314/111253066257920146Writing Privacy-preserving software & services 101: https://mastodon.top/@lispi314/110849018589421824#Kopimism #FreeSoftware #CommonLisp