332 points · by mfrw · 5y ago · 102 comments
It seems the whole thing took place in 2017 and was fixed then (first by not calling the reclaim if used ARC memory was zero, then the root cause also fixed by using a PRNG instead of the default CSPRNG in 0.7).
No code.
https://ocw.mit.edu/courses/aeronautics-and-astronautics/16-...
as is tradition
On Ubuntu, some kernel packages install also the zfs modules package. I think (but not 100% sure) that if they're on that O/S, with those packages installed, then the zfs module will be loaded on startup.
Is ZFS removable there without recompiling?
https://papers.freebsd.org/2019/fosdem/looney-netflix_and_fr...
# kldunload zfs.ko
should do the trick. You would of course have to change the install setup to use UFS rather than a zroot.I suspect it’s probably loaded by default regardless of OS drive file system, though.
The bottom of the article notes that his book Systems Performance 2nd Edition is 45% off until 9/13.
Edit: looks like the comments about "didn't I see this a few years ago?" have been deleted.
Also, any idea how something like safari online impacts those numbers?
Thanks again for the book, it's an amazing read that I recommend to anyone that is interested in the area.
How much pirated PDFs hurt these books I'm not sure, maybe a little, maybe a lot. With my BPF book, a "rough cut" was published on Safari and then that did the rounds as the PDF (and still does) even though it was unfinished and buggy. That's what annoyed me the most about it, was that people were reading a broken version and may be thinking it's the final version.
Thanks for getting and recommending it!
:-)
Had a colleague who asked for SSH access to production machines to debug an issue. Ops team asked what he wanted to do, guy just wanted to look at which env vars were set. Ops team told him how to do his job - log the configuration - instead of give him access, because they had a mandate to ensure five or seven nines uptime. Can't risk it.
I had a lot more respect for the ops people there than I had for my fellow SWE's.
But yes, CLI can be dangerous, even for observability. E.g., people running strace(1) on production apps and causing outages due to the strace overhead (I wrote a prior post about that). You need to understand the risks and overheads of all tools. It's why I have a "pull no punches" policy when writing eBPF tool man pages [0]: If the overhead can be bad, it should say so clearly.
[0] https://github.com/iovisor/bcc/blob/master/CONTRIBUTING-SCRI...
That's a change, inherently much more risky than the "cat /.../env" the colleague wanted to do.
Also the change might well cause the problem to go away, and now you know nothing instead.
The principle is good, but it sounds like it has taken on a life on its own. The ops guy could also have executed the cat command on the spot with the right privileges. Sure, it's gatekeeping, but so is the four eyes principle, and a little of that gatekeeping can be necessary to keep those nines rolling.
"do your job" is a really rude way to refer to debugging by logging instead of debugging interactively.
Also like others noted here , If one guy sshing into one machine can screw your seven nine uptimes.
Then you never had a seven nine uptime (you’re company is probably just gambling on that uptime metric until some component fails)
There are always bugs that will happen only on the prod machines. Sure, they are rare, but they exist.
> just wanted to look at which env vars were set. Ops team told him how to do his job - log the configuration
Well, that's not risk free neither. That needs a code change and you risk exposing secrets, or logging more than you should. (Though I agree with the general idea of you shouldn't be SSHing if you can do it another way)
Dogma results in religious wars
So you can log in and debug, but once you're done, the VM is replaced with a clean one.
The only way to really be sure of that is extensive testing at multiple levels, and ideally some form of verification like a TLA+ model.
It might be good for some specific purposes but I'd reckon the majority of people using it do not fall into those. Using it "just because" is probably more trouble than worth.
> ZFS really wasn't in use, ever! But at the same time, it was eating over 30% of CPU capacity! Whaaat??
Interesting bug, sounds like the best option is to not even have the module loaded then. (Not blaming the developers here, necessarily, but yeah, it's a bug)
On the other hand a lot of problems caused by btrfs is unrecoverable and a mess. Ext4 is stable but lacks the feature set that makes customers go to zfs instead (and that is fine, software should do one thing well and right).
Regardless, ZFS has configurations equivalent to most "traditional" RAID options anyway (raidz1 is their RAID5) but with the added benefits of all the other great stuff ZFS gives you, like checksums, compression, deduplication, snapshots, etc.
Just that RAID in general and ZFS put my files in a blackbox, and that I didn't really need a significant boost in network reads. I settled for plain old ext4 and periodic rsync mirror files to another disk (I don't mind some interim data loss + writes are fast). Use SFTP or sshfs for accessing the drive.
As someone who has a couple times needed to rip 100tb of ZFS disks out of something, put them into a different machine with a different architecture or OS in some random order, and access everything without having lost anything, it's hard for me to overstate how great it is that such a thing is even possible.
This isn't a mirror, not in the sense that most would understand. No performance boost, no protection from bit rot, unnecessarily wasteful in every potential metric. If you wanted to intentionally design a system to propagate errors and render backups useless - you would start with this kind of setup. It makes sense to avoid all the RAID related problems associated with hardware solutions... but I'm drawing a blank on rational reasons to do what you've described. Super weird boot manager + physical space constraints?
If the "live" disk fails, the other disk will eventually replace it.
> render backups useless
Like I mentioned, data loss isn't a concern. This is mainly hosting code repositories and media files.
What's my use-case? My laptop, that has a paltry 256GB SSD, keeps running out of disk space, and I often find myself plonking files that aren't super critical on the network drive.