jayteeuk: that's what I have meant by disgusting. It was a bad response
argon3771has left
argon3771has joined
froghas left
mightyBroccolihas left
mightyBroccolihas joined
Krishas left
argon3771
I'm thinking about setting up a small (family only) xmpp server at home. Would a raspberry pi be OK for say 5-10 users? Not sure if anyone has any experience with that. Sorry if this isn't the right place.
argon3771has left
argon3771has joined
Licaon_Kterhas left
alacerhas left
henrik
Yeah, should be ok. You may want to pick ejabberd due to lower RAM usage
I could have said the opposite, in my experience Prosody uses much lower amounts of memory on a small and medium-sized server. :)
Link Mauve
Although I haven’t tried Ejabberd ever since I migrated off it to Prosody some years ago, it might have improved a lot since then.
Link Mauve
Prosody currently takes me 49 MiB of RAM, for about three users daily.
henrik
It may have improved since that article was written. I'm running a small ejabberd server using 90 MiB, ie. both should be ok for a modern Rpi
bastoon
"Too fast"
bastoon
"Too fast"
bastoonhas left
Holly Lotorhas left
froghas joined
Holly Lotorhas joined
argon3771
I run ejabberd right now but, I've heard a lot of good things about prosody. It seems like 6 of one half a dozen of the other so. Thanks for the advice. I have a few pi's laying around so, figured I'd set something up
argon3771
I run ejabberd on a bigger scale, I should say.
argon3771
My other concern is having it securely accessed from outside my LAN. I guess that's the tradeoff of running on my own hardware rather than a VPS.
henrik
Mostly the same as running other types of home servers if you keep registration closed.
argon3771
Yea, registration will be closed, plus it won't be federated.
tom
A raspberry pi is more than enough dedotated wam
tom
For modern pwosody
argon3771
Sounds great.
tom
Netbsd works great the the raspberry pis btw
tom
Netbsd 9
tom
I've had much improve stability over using linux on the pis
jayteeuk
> jayteeuk: that's what I have meant by disgusting. It was a bad response
Ah, gotcha. Yes, I agree. The whole thread makes for depressing reading.
bastoonhas joined
mjkhas left
argon3771
Oh interesting. I've never played with the BSDs on a pi. I've ran OpenBSD on desktop here and there but, for me it never was what I needed at the time. I'll look at NetBSD. Thank you for the advice.
raghavgururajanhas left
jayteeukhas left
jayteeukhas joined
froghas left
mjkhas joined
sonnyhas left
sonnyhas joined
tom
Netbsd also has much better memory management than linux
pintoseskhas joined
argon3771
Sounds good. I'll play with it and see how it works for me. And it has no issues running prosody or ejabberd?
Link Mauve:
> I could have said the opposite, in my experience Prosody uses much lower amounts of memory on a small and medium-sized server. :)
Does Prosody first cache uploaded files in memory?
Licaon_Kter
argon3771:
> I'm thinking about setting up a small (family only) xmpp server at home. Would a raspberry pi be OK for say 5-10 users? Not sure if anyone has any experience with that. Sorry if this isn't the right place.
Pi1 at least 80 users
Pi3+ al least 500 users
Licaon_Kter
*SD card I/O limits actually, eg. Without http_upload up to 200 & 1500.
*ejabberd/postgresql
derventiohas left
Beherithas left
qnixhas left
Jonnyhas left
qnixhas joined
Jonnyhas joined
ernst.on.tourhas left
ernst.on.tourhas joined
madmalkavhas joined
jayteeukhas left
jayteeukhas joined
belonghas left
belonghas joined
Jonnyhas left
jayteeukhas left
jayteeukhas joined
Jonnyhas joined
Davidhas left
Beherithas joined
Davidhas joined
lorddavidiiihas joined
perflysthas joined
qnixhas left
qnixhas joined
Huxxhas joined
perflysthas left
perflysthas joined
jayteeukhas left
jayteeukhas joined
Jonnyhas left
jayteeukhas left
jayteeukhas joined
Jonnyhas joined
perflysthas left
perflysthas joined
Jonnyhas left
Jonnyhas joined
perflysthas left
perflysthas joined
jayteeukhas left
jayteeukhas joined
loopboomhas joined
404.cityhas joined
loopboomhas left
86ulhas joined
ru_maniachas joined
perflysthas left
bastoonhas left
Krishas joined
theadmiraltyhas left
bastoonhas joined
ff255
Can you please share some _homeserver using experience_. I'm worried about SDcard, how long it will usually live ?
mathieui
pick a random number and that will tell you
mathieui
seriously though: you should not store things on a micro sd card, use an externally powered hard drive instead
mathieui
The more activity happens on your server, the faster the card will die
mathieui
they are generally not designed for extended activity (heat in particular), or constant writes
404.cityhas left
mathieui
it may work months, years, but at some point it will fail, some times silently and then your data is toast
Jonnyhas left
Kris
the same can be said about hard-drives 😉 That's why you should do backups :p
mathieui
Kris, much less frequently though
mathieui
(but yes, you should do backups)
mathieui
ansd you generally can use SMART information to detect that in advance
mathieui
also, SSDs are less prone to failure and cheap now
perflysthas joined
Licaon_Kter
> Can you please share some _homeserver using experience_. I'm worried about SDcard, how long it will usually live ?
Dunno
Use only Sandisk Extreme/Ultra or Samsung EVO plus
And backups
Licaon_Kter
mathieui:
> also, SSDs are less prone to failure and cheap now
Usually, avoid cheap ones
mathieui
well, I’m not talking about random off-brand names
mathieui
but even crucial MX500 drives are not *that* expensive nowadays
Jonnyhas joined
qnixhas left
mathieui
and generally the failure rates are higher, but not by a lot, the difference in price often means a reduced cache (which is fine unless you want top-notch performance) and write endurance, which can be monitored
Kris
well, yes. SD cards generally do have quality issues, but with a good backup strategy they can work in low write scenarious. also it helps to run them with ample free space so that the flash memory can level the writes better.
Licaon_Kter
Is A-Data offbrand? I think I've had them almost all changed after one year :( in a desktop context
mathieui
Kris, that means disabling logs or writing most of them to tmpfs (but not possible when you are as constrained as a rpi)
qnixhas joined
mathieui
I guess I should give a try to anything-sync-daemon for /var/log
Licaon_Kter
That reminds me that I should probably need to change my SD too soon
mathieui
Licaon_Kter, it is a brand but not a very reliable one :D, most of my cheapest SD cards are Adata and I do not trust them
rom1dephas joined
Licaon_Kter
mathieui: I mean A-Data SSDs
Licaon_Kter
For RPi
> Use only Sandisk Extreme/Ultra or Samsung EVO plus
See those tests by someone
mathieui
yeah but I have not even seen an A-Data SSD yet
Licaon_Kter
They're the bestbuys of black fridays :(
Kris
not sure, but the only SSD I ever had to replace was indeed an Adata. Oh and a Lexar that didn't work properly in the first place.
mathieui
(so far I have crucial, intel, kingston, sandisk and PNY here, no failure so far after years)
Licaon_Kter
Watchout for Kingston...they have both good and bad series
Eg. See the V300 scandal from years ago
Kris
oh, what happend there?
mathieui
Yes, I stopped buying them anyway, but for €20 drives sustaining non-intensive usage, the drives are enough
Licaon_Kter
Sent reviewers units, great scores
In stores ship shitty memory chips
mathieui
nowadays I’m optimizing for reliability rather than cost so I have shifted the prices a bit
ah, actually switching chips after some months of sale seems to be more and more common with cheap SSDs. never trust reviews for those 😉
perflysthas left
Jonnyhas left
Kris
seems to be partially a supply chain issue and not malice
Ivan A.has left
ff255
Thanks.. i'm planning to buy ssd for data, but until that it's working on sdcard. Hope it'll live half-year/year with little load (2 users now) and armbian-ramlog
mathieui
2 users should be fine
Licaon_Kter
Their HyperX line was ok, but after that experience the damage lasted. Can't recommend them anymore, nor A-Data (multiple series with failing units in non-server context)
Ivan A.has joined
Jonnyhas joined
qnixhas left
Kris
I guess buying samsung makes sense since AFAIK they have their own production and thus do have less quality variance.
raucaohas left
Kris
but on the other hand: backup, backup, backup 😉
Beherithas left
qnixhas joined
raucaohas joined
dinosaurdynastyhas left
dinosaurdynastyhas joined
404.cityhas joined
Jonnyhas left
podhas left
Beherithas joined
podhas joined
Jonnyhas joined
stefanhas left
lorddavidiiihas left
ajeremiashas joined
stefanhas joined
christianhas left
perflysthas joined
jayteeukhas left
jayteeukhas joined
lorddavidiiihas joined
jayteeukhas left
jayteeukhas joined
jayteeukhas left
jayteeukhas joined
perflysthas left
froghas left
Ivan A.has left
Ivan A.has joined
thndrbvrhas left
mjkhas joined
ajeremiashas left
Jonnyhas left
mjkhas left
mjkhas joined
sonnyhas left
Jonnyhas joined
alienhas left
alienhas joined
alienhas left
alienhas joined
cuchas joined
404.cityhas left
alex-a-sotohas left
christianhas joined
ajeremiashas joined
madmalkavhas left
derventiohas joined
vu764hd68fxthas left
rom1dephas left
solhas left
gnuhas joined
madmalkavhas joined
86ulhas left
86ulhas joined
Holly Lotorhas left
perflysthas joined
perflysthas left
Jonnyhas left
qnixhas left
qnixhas joined
Viktor Lindberghas left
Jonnyhas joined
Viktor Lindberghas joined
ajeremiashas left
mehdihas left
mehdihas joined
jayteeukhas left
jayteeukhas joined
Viktor Lindberghas left
Viktor Lindberghas joined
rom1dephas joined
404.cityhas joined
qnixhas left
404.cityhas left
404.cityhas joined
404.cityhas left
404.cityhas joined
argon3771
Licaon_Kter: OK so the pi3 is way more than enough for what I need. Great.
derventiohas left
jayteeukhas left
jayteeukhas joined
qnixhas joined
Jonnyhas left
Jonnyhas joined
argon3771
I switched over my one pi to boot and run of a USB flash stick, I'll probably do it with this one too to get away from the SD card issue
qnixhas left
qnixhas joined
jayteeukhas left
jayteeukhas joined
alienhas left
alienhas joined
alienhas left
alienhas joined
solhas joined
Arne
actually why not using cheap used notebook mainboards instead of raspberry pi? :)
Licaon_Kter
Arne: lower power, less space, arm :)
raucaohas left
raucaohas joined
Arne
Licaon_Kter: some laptop mainboards doesnt use much more power, and whats the advantage of arm?
Licaon_Kter
Eh
Arne
I can even set a normal PC to just consume 20 W
vu764hd68fxthas joined
Licaon_Kter
Arne: ain't that like 5x more than a FULLy used arm sbc? And it will sit idle mostly...
Arne
pi4 uses 15 Watt or not?
Arne
maximum
86ulhas left
86ulhas joined
jayteeukhas left
jayteeukhas joined
Link Mauve
My (non-raspberry) SBC consumes at most 2.5W, as that’s what the power supply is rated for, and most of the time while it’s idle it consumes a lot less than that.
Link Mauve
The one time I measured it it was a bit lower than 1W.
Link Mauve
For comparison, my Thinkpad x280 consumes 2.7W on idle with the backlight set at minimum.
Link Mauve
It can use up to 30W under full load, but it’s also much faster. :)
raucaohas left
raucaohas joined
Arne
Depends on the SBC for sure. pi 4 uses 3A*5V
Arne
What SBC do you use Link Mauve ?
Link Mauve
Arne, this one: https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2/open-source-hardware
Link Mauve
Been using it as my main server since 2014, and pretty happy with it. :)
ijhas left
ijhas joined
Arne
nice :)
Arne
and open Hardware? :)
ijhas left
ijhas joined
lellobahas joined
lorddavidiiihas left
Link Mauve
Yup. ^^
Jonnyhas left
raucaohas left
lellobahas left
raucaohas joined
Jonnyhas joined
guus.der.kinderenhas left
sonnyhas joined
argon3771has left
argon3771has joined
mjk
> pi 4 uses 3A*5V
Is this the recommendation for the PSU (which would include powering the peripherials) or what the board only consumes?✎
mjk
Arne:
> pi 4 uses 3A*5V
Is this the recommendation for the PSU (which would include powering the peripherials) or what the board only consumes? ✏
mathieui
this is what the stock PSU provide, but I wouldn’t expect it to power peripherals
mathieui
(because you can always go wayy beyond the power envelope with peripherals)
Beherithas left
Beherithas joined
raucaohas left
Viktor Lindberghas left
ntuseracchas joined
Viktor Lindberghas joined
mjk
True. But pi3's default PSU was, like, 2.3 or 2.5 amps (the point is: not much less than pi4's), and, if I'm not mistaken, most of that was allocated for the peripherials. So the SoC's consumption should still be pretty low, be it pi3 or 4
mathieui
well, the CPU in pi4 is much beefier than pi3, so I would expect consumption to increase
cuchas left
Kris
the PI4 is definity not the most power efficient arm SBC (22nm AFAIK), but the 15W is really worst case scenario
mss_cyclisthas left
Kris
most the time it will near idle and use much less
mss_cyclisthas joined
Krishas left
mathieui
and then you have to add the cooling fan to the power envelope :D
Beherithas left
Krishas joined
Beherithas joined
guus.der.kinderenhas joined
Gandalfhas left
Gandalfhas joined
Jonnyhas left
Krishas left
mjk
At least there _is_ an official fan now!
Jonnyhas joined
raucaohas joined
creep.imhas left
creep.imhas joined
lorddavidiiihas joined
guus.der.kinderenhas left
belonghas left
argon3771
The main reason I'm using a Pi is because I have a few just laying around.
argon3771
And I'm looking for some interesting things to do with them.
404.city
>Link Mauve:
>> I could have said the opposite, in my experience Prosody uses much lower amounts of memory on a small and medium-sized server. :)
Most of the problems are created not by real users, but by spammers. XMPP is not resource intensive.
froghas joined
perflysthas joined
Link Mauve
For a family server, spammers are irrelevant, they won’t be able to create an account on an invite-only server.
belonghas joined
ajeremiashas joined
404.city
Link Mauve, 1 GB of memory is enough for a home server. Can be run on smaller configurations as well.
My record is 250 active users on 128 RAM along with the system) Prosody & Ejabberd / x86 32-bit. Debian 8 or 9
kikuchiyohas left
kikuchiyohas joined
Link Mauve
:)
argon3771has left
argon3771has joined
404.city
Much depends on how you set it up. What version of the system and software to use. Rumor has it that some managed to run Ejabberd + OS on 64 megabytes (old software version)
perflysthas left
perflysthas joined
Beherithas left
Beherithas joined
jayteeukhas left
jayteeukhas joined
Krishas joined
Gandalfhas left
mss_cyclisthas left
Gandalfhas joined
mss_cyclisthas joined
Gandalfhas left
Gandalfhas joined
jayteeukhas left
jayteeukhas joined
perflysthas left
perflysthas joined
ajeremiashas left
jayteeukhas left
jayteeukhas joined
pintoseskhas left
ff255has left
j.r (jugendhacker.de)has left
jayteeukhas left
jayteeukhas joined
jayteeukhas left
jayteeukhas joined
j.r (jugendhacker.de)has joined
ff255has joined
Jonnyhas left
Jonnyhas joined
nickomemohas joined
Viktor Lindberghas left
Viktor Lindberghas joined
lorddavidiiihas left
ff255has left
jayteeukhas left
jayteeukhas joined
perflysthas left
Ivan A.has left
James Taithas joined
ff255has joined
Arnehas left
qnixhas left
Ivan A.has joined
alex-a-sotohas joined
lorddavidiiihas joined
qnixhas joined
arne-bruenhas left
Viktor Lindberghas left
argon3771
I'll run it and see how it goes. I can't see having any more than 10 users. Maybe 15 at the absolute most if I get some friends to switch to it too. I have other options but, I figured the pi would be easiest. I could just spend the $5 a month for a small vps, less of a risk than running it on my own home network but, what fun would that be.
Licaon_Kter
argon3771: which Pi?
qnixhas left
qnixhas joined
ernst.on.tour
Maybe this will give some points
https://www.pidramble.com/wiki/benchmarks/power-consumption
jayteeukhas left
jayteeukhas joined
Viktor Lindberghas joined
arne-bruenhas joined
Arnehas joined
qnixhas left
jayteeukhas left
jayteeukhas joined
86ulhas left
Steven Roosehas left
Steven Roosehas joined
qnixhas joined
ernst.on.tourhas left
ernst.on.tourhas joined
jayteeukhas left
jayteeukhas joined
86ulhas joined
Jonnyhas left
James Taithas left
Jonnyhas joined
Viktor Lindberghas left
lorddavidiiihas left
lorddavidiiihas joined
perflysthas joined
Viktor Lindberghas joined
Bjarkanhas left
Bjarkanhas joined
perflysthas left
perflysthas joined
argon3771
3b
perflysthas left
perflysthas joined
Arne
thanks for this list ernst.on.tour
Bakuninhas joined
Bakuninhas left
jayteeukhas left
jayteeukhas joined
perflysthas left
perflysthas joined
perflysthas left
perflysthas joined
ernst.on.tour
I serve a Pi3b+ for ~160 accounts, 40 active with 10-15 heavy active, no problem. Sometimes (after reboot when all sessions dropped and build up again) there are timeouts because sharedusergroups/bookmarkgroups need to build up for every of this 160 users at the same time. Therefor reboot is done at night.
Jonnyhas left
argon3771
That's great. that's way more than I need then. Does that also include more than messaging? The availability of voice calling for example or is your server strictly text/http uploads?
Jonnyhas joined
Kris
other than a lightweight STUN server to improve connections, voice calling in p2p in the current implementations and thus doesn't involve the server
Kris
*is
Kris
a TURN server might be too taxing for a Rasberry, but STUN should be no issue what so ever
Licaon_Kter
Kris: it's about 60% of one core for video via TURN on 3+
Kris
ah, thats less than I expected
Licaon_Kter
Also, it's used most of the time, have one user on a Wi-Fi and the STUN is not enough
Kris
you mean a publuc wifi?
Kris
*publc
Kris
*public
Licaon_Kter
Kris: no, normal homes
jayteeukhas left
jayteeukhas joined
Kris
really? didn't have that problem so far
argon3771has left
argon3771has joined
kahlbhas left
kahlbhas joined
jayteeukhas left
jayteeukhas joined
argon3771
Ah that's right. Forgot that its p2p. Still learning stuff.
Jonnyhas left
thndrbvrhas joined
wladmishas left
Jonnyhas joined
qnixhas left
ff255has left
qnixhas joined
cuchas joined
gnuhas left
Jonnyhas left
Jonnyhas joined
jayteeukhas left
jayteeukhas joined
jayteeukhas left
jayteeukhas joined
86ulhas left
ernst.on.tourhas left
ernst.on.tourhas joined
pintoseskhas joined
86ulhas joined
404.cityhas left
404.cityhas joined
404.cityhas left
jayteeukhas left
jayteeukhas joined
nickomemohas left
Ivan A.has left
Ivan A.has joined
jayteeukhas left
jayteeukhas joined
argon3771has left
argon3771has joined
argon3771has left
argon3771has joined
perflysthas left
perflysthas joined
jayteeukhas left
jayteeukhas joined
Viktor Lindberghas left
Holly Lotorhas joined
Viktor Lindberghas joined
jayteeukhas left
jayteeukhas joined
abidal3has left
ff255has joined
perflysthas left
perflysthas joined
ff255has left
Beherithas left
Holger
I would think Wi-Fi totally depends on how the NAT of the Wi-Fi/WAN router works.
Holger
On mobile networks, you almost always need TURN relaying.