4 ms·
It's really a matter of strategy. Do you want the protocol/vocabulary to be used everywhere, but in closed-source implementations with a free/libre ecosystem co
by southerntofu 6y ago
It's really a matter of strategy. Do you want the protocol/vocabulary to be used everywhere, but in closed-source implementations with a free/libre ecosystem constantly lagging behind? Or do you want something that will be less friendly to governments and multinationals but will be part of a striving lesser/non-profit ecosystem?
XMPP/Matrix went the first way. Matrix ecosystem has one reference client/server with really good features but hardware requirements that place it out of ordinary folks' reach. Similarly, XMPP has some really good apps built on top (eg. Whatsapp) but the free-software clients (not servers) are lagging behind, though catching up quickly in the past years.
ActivityPub ecosystem went the other way with AGPL everywhere (Mastodon/Epicyon/Funkwhale/Peertube/PixelFed/Funkwhale/Mobilizon/WriteFreely/Lemmy/Plume) with the notable of bookwyrm who has the Anticapitalist Software license. As a consequence of the ecosystem tailoring to users/non-profits/cooperatives not corporations/governments, it's blooming into this amazing and friendly ecosystem where everybody contributes and interoperates. Hell, who would have thought three years ago selfhosting federated/p2p livestreaming video would be become so easy as Peertube?
Personally i'm more on Jabber/XMPP's side (i contribute to joinjabber.org project, and use Jabbber/XMPP daily) mostly for technical reasons (AP/matrix haven't yet caught up with XMPP in many regards) but in my view adopting loose licensing is what almost killed the XMPP ecosystem all these years ago when it had the exact same promises as matrix does today: one universal federated protocol to bridge to all others.
- feanaro 6y ago> Matrix ecosystem has one reference client/server with really good features but hardware requirements that place it out of ordinary folks' reach. Define ordinary folks, please. Matrix isn't really that resource intensive for a small homeserver between family and friends.
- southerntofu 6y agoWell client-side there seems to be progress but to my knowledge so far Riot was the only feature-complete client, and it's REALLY heavy/slow especially on high-latency links. Loading app.element.io before logging in is already 9MB. Also element responsiveness in general is really tied to latency and is therefore not pleasant to use on bad connections and/or Tor. Server-side, many smaller hosting coops went into matrix but later dropped it because of synapse using too much resources. I know individual selfhosters who were really sad to drop it because their raspberry pi didn't have enough RAM (512MB-1GB) for selfhosting synapse. However someone said in another thread that synapse resource usage is really better these days. Would you recommend it on such low-end hardware? (ActivityPub/XMPP servers fare really well in such conditions)
- ncmncm 6y agoAlso, element-desktop 1.7.21 SEGFAULTs during startup on my Debian machine. Would rather it didn't. Wow: $ ldd `which element-desktop` | wc -l 102
- CameronNemo 6y agoIs it not just an electron? I would see if you can anbox the APK. Although the stock Debian kernel is not up to task. Need to turn the Android knobs. Binder and ashmem.
- Arathorn 6y agoplease file a bug report if you haven’t already so we can hunt the problem; i’m unaware of this.
- feanaro 6y agoThe thing that eats the most resources is joining very large, public Matrix rooms. If you don't do this, it won't be resource heavy. I've heard of people running Synapse on a RPi 3 (see https://old.reddit.com/r/selfhosted/comments/g9h6au/matrixriot_storage_and_performance_requirements/fotziui/ https://old.reddit.com/r/selfhosted/comments/g9h6au/matrixri... for instance) for such use cases. If you want to chat in large 1000+ member rooms, it probably won't be enough. However, even for such a use case, you don't need anything that is out of reach of a common person, just a few gigabytes of RAM. In general, it's hard to make it go over 3 GiB. My server hovers around 2 GiB and I'm in many large rooms, including the beast that is Matrix HQ. So I would agree that Synapse is not usable on RPi-level hardware in all use cases, but you can definitely run it on such hardware for some use cases. Dendrite is also maturing really quickly and will be less resource hungry.
- smichel17 6y agoHey, what smaller hosting coops are out there? I'm a member at hcoop.net, wondering what else like us is out there.
- southerntofu 6y ago
- 3np 6y agoWe're < 5 users on my synapse server running on a modern mid-range 6c/12t CPU. 4GB DDR4-2966 RAM dedicated to synapse. It has a separate decently fast postgres cluster for the db. Only 2000 rooms. It's frustratingly slow and heavy, regardless of client.
- Arathorn 6y agoPerf problems arise with Synapse if those 2000 rooms include massive ones with tens or hundreds of thousands of users (or other state events). The number of local users is fairly irrelevant. If you grep the logs for state-res you will probably see that some room is consistently chewing resources (these days we explicitly log the worst offenders); easiest bet is to ask your users to leave that room or use the shutdown api to remove it from the server. Otherwise, it may be that there’s so much data flying around due to the busy rooms that the in-memory caches are blowing out. This makes everything slow down as the DB gets hammered, and unintuitively uses more RAM as slow requests stack up. The solution is to increase the cache factor, much as you would on an overloaded db. We’re currently looking at autotuning caches do you don’t have to do this manually. If it’s still slow, then there’s probably a bug or other weirdness (ancient Python?) - my personal server has about 5 users on a 4 core cpu and uses about 2GB of RAM without a dedicated DB node and is in thousands of rooms (including busy ones). (Also it hopefully goes without saying that all bets are off if you aren’t on the latest Synapse release - we are constantly landing improvements currently; eg the auth chain cover algorithm eliminates most of the known perf edge cases on state resolution).
- 3np 6y agoThanks for the pointers - on latest release with Python 3.8 and roughly 2~5 of those rooms are on the larger ends of the spectrum. Sounds like I should tune some caches then - I have memory to spare if it turns out to make a difference. BTW, I just noticed there is an option to add a Redis - would that be a significant improvement compared to just using the process caching?
- Arathorn 6y ago
- eeZah7Ux 6y ago> less friendly to governments Citation needed. The European Union Public License is copyleft and it's literally written by governmental bodies.
- southerntofu 6y agoYes but not all governments are the EU, and not all governments of the EU publish anything, even loss so under copyleft. Even a government like france which is involved in strong open-washing campaign has serious Microsoft ties behind the scenes (education & military mostly) and despite all the promises for 100% OPEN, keeps on introducing closed-source algorithm which are paid for with millions of euros of public money and whose results are very sketchy to say the least (i'm looking at you ParcourSup). So, when i said "less friendly to governments", i did not mean from a legal perspective. I meant AGPL is only one expression of a global approach to software development that is focused on user empowerment. Such software is usually less concerned with problems of big organizations (including governments), and less likely to try and reinforce governmental control (which is something most governments are looking for in a product). Does that make sense?
- psychoslave 6y agoWell, both the mere citizen and government are users who like to have as much control on their digital tools. The difference seems to be more on who this power is expected to be exerted on. Individual themselves in the former, the national population for the later.
- psychoslave 6y ago>less friendly to governments Definitely not: https://matrix.org/blog/2018/04/26/matrix-and-riot-confirmed-as-the-basis-for-frances-secure-instant-messenger-app https://matrix.org/blog/2018/04/26/matrix-and-riot-confirmed... And having worked for the last 6 months in a French governmental agency, Tchap[1] is the only internal instant messaging solution I was made aware of. Most people still had an email+phone centred work-flow however. [1] https://www.tchap.gouv.fr/ https://www.tchap.gouv.fr/
- 3np 6y agoGP is saying XMPP/Matrix went in the "more friendly to governments" direction, due to the dual licensing.