Just saw on the matrix lightning integration channel that these guys are now bundling matrix (along with already: tor, bitcoind, lnd, c-lightning, mastodon) into their "embassy" node package (which is a packaged raspi as i understand):

start9.com/

#bitcoin #matrix

@waxwing I have two big problems with this project:
- the stupid, restrictive software licence: github.com/Start9Labs/embassy-
- the catastrophic hardware choice of trusting everything on an SDcard

Follow

@openoms @waxwing agreed on license.
SD cards specifically designed for constant usage do exist. One big market for them is dash cams, which perform constant writes.

@pete @waxwing
Have to disagree on that, even those kind of SDcards (and I do use only the endurance ones) would only survive a few months running swap or a busy lightning database: github.com/rootzoll/raspiblitz

@openoms @waxwing What brands/sizes have actually failed for you? Have you tried over provisioning?

@openoms @waxwing "Single Level Cell (SLC) are basicly the common SSD-s which are more reliable and fast, but need more power and also more expensive than a USB flash drive."

This is out of date btw. Almost all SSDs on the market right now are multiple level cells.

@openoms @waxwing "Rewrite cycles are respectively around:
80-100k for SLC
8-10k for MLC
3-5k for TLC (not suitable for constant rewrites even for months)"

Also the stats for rewrite cycles are much higher than they actually are. These days modern SSD cells have a rated lifetime of just a few hundred rewrites, not thousands. You see this in total endurance specs, which are typically just a few hundred times the drive capacity.

@pete @waxwing
SSDs really?
Wouldn't be surprised if that would be the specs of cheap SD cards.

@openoms @waxwing Yup: anandtech.com/show/16433/samsu

pcworld.com/article/3230382/wd

tomshardware.com/reviews/silic

Those are the first three results on Amazon for "1TB SSD", and they're all TLC flash. Bigger drives are moving to QLD flash, four bits per cell.

SLC-only drives are a very niche product these days. Though it is very common for drives to contain some SLC as a write buffer. That's why drive write speeds often drop after sustained writes - the SLC buffer filled up.

@openoms @waxwing More expensive drives use capacitor backed DRAM for this. If power is removed the drive quickly writes the DRAM contents to flash with the energy in the capacitors.

@openoms @waxwing Many drives can actually dynamically switch between SLC and multiple-bits-per-cell, so as much as 100% of the drive will be used in SLC mode until you fill it up. (By "fill it up", I'm talking about the space that has not been marked as unused with trim)

@pete Thanks for expalanation, that quoted article is indeed outdated, SSDs are not all SLC any more.
Can we say though that the endurance of an SDcard is nowhere close to even a TLC setup of an SSD with SLC or DRAM buffers?
It is just difficult for me to accept that running an operating system and data storage for an intended high use and uptime server can be realisticly based on the cheapest flash storage available.

@pete Agree about redundancy for higher value applications. I am in the process of moving all my self-hosted stuff to a server with a 6 disk ZFS RAID-Z2 and ECC RAM.

@pete @waxwing
quick check in the drawer results this. I had multiple of the endurance cards fail after 1-1.5 year of heavy usage as well.
They are either painfully slow to write or read only.

@pete @waxwing
Social media, pictures, videos etc might be ok, but anyone trusting an irrevocable and frequently written lightning channel database on an SDcard is taking far more risk than I'd would tolerate.

@openoms @pete @waxwing
On their site you can choose between a 1 and 2 TB SSD.
So I'd guess that they don't only use a SDcard anymore?

@FreePietje Correct, they followed reason reason and updated the 0.3.x package to have an SSD.
One of my points down.
Would gladly see them embrace a FOSS licence too.

@openoms
Totally. Using a SSD is peanuts compared to a 'wrong' license.
IANAL (and I don't care as I have no intention of using/buying their stuff), but I wouldn't be surprised if their license is incompatible with the license(s) of the software they use.

License shows intend/mindset, which is WAY more important.

Also, if you think you can secure people's money with a single device, you likely have no idea what you're doing.

@openoms @waxwing I mean, anyone trusting a non-raid setup for Lightning is taking a fair bit of risk...

Though the failure modes of becoming read only or slow to write are pretty benign. Early SSDs were often bricked - good to see that's fixed.

@openoms @waxwing What % of the SD card was actually being used in those applications?

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!