6 ms·
This was the idea behind murdererfs, right? It worked pretty well to power mp3.com for a few years. The great https://philip.greenspun.com/panda/databases-cho
by kragen 7y ago
This was the idea behind murdererfs, right? It worked pretty well to power mp3.com for a few years.
The great https://philip.greenspun.com/panda/databases-choosing https://philip.greenspun.com/panda/databases-choosing talks a bit about the issue:
The great thing about the file system is its invisibility. You probably didn't purchase it separately, you might not be aware of its existence, you won't have to run an ad in the newspaper for a file system administrator with 5+ years of experience, and it will pretty much work as advertised. All you need to do with a file system is back it up to tape every day or two.
He goes on to say that the main thing RDBMSes add to your web-serving life is ACID transactions, which I think is pretty much true. Sadly modern filesystems still don't support ACID transactions, though often they do manage to export sufficient functionality for user-level code like Postgres and SQLite to do so.
- madhadron 7y ago> you won't have to run an ad in the newspaper for a file system administrator with 5+ years of experience Until you reach an extreme scale, at which point you hire the author of the filesystem.
- brandmeyer 7y agoIts going to be hard to retrofit transactions into the POSIX model with anything other than a very coarse granularity. In the SQL model, statements are assigned to a transaction based on which connection they came through. How should POSIX filesystem transactions be scoped? Without rewriting software, its hard to use anything finer-grained than an entire process tree.
- kragen 7y agoAn entire process tree costs 100 us of CPU time to create and destroy on modern Linux, so that mechanism could deliver tens of thousands of transactions per second on a modern cellphone. That's probably more than the underlying Flash can make durable, but with nested transactions you might be able to take advantage of more than that. Still, it might be adequate. Unfortunately we are saddled with three generations of software that uses threads like they're going out of style (which they are) due to an unfortunate confluence of Win16 refugees with a misguided attempt to run our transaction processing software on a virtual machine designed for a set-top box with no MMU. You can fork and exit on Linux in 100 us, but not if you have sixteen threads and 512 megabytes of virtual address space spread across 128 mappings.
- the8472 7y ago> Sadly modern filesystems still don't support ACID transactions They offer range locking, optimistic locking, snapshots, atomic swaps, durable writes and various other interesting features as primitives. If you're willing to build some data storage around a specific filesystem you can do a lot. The correct incantations to get those features can be a bit gnarly, but so is coding database engines. NTFS even offers actual transactions, although their use is discouraged.
- kragen 7y agoInteresting, why is their use discouraged? Because Jim Gray’s sailboat sank?
- the8472 7y agohttps://docs.microsoft.com/en-us/windows/win32/fileio/deprecation-of-txf https://docs.microsoft.com/en-us/windows/win32/fileio/deprec...
- kragen 7y agoThis just says that since nobody uses it they might delete it, but it doesn't explain why nobody uses it. Presumably because it doesn't work well or is hard to use, but which, and how?
- deleted 7y ago[deleted]
- Someone 7y agohttps://en.m.wikipedia.org/wiki/Transactional_NTFS https://en.m.wikipedia.org/wiki/Transactional_NTFS provides ACID transactions, even, I think, across machines.