number of users that can connect to raspberry 3b
Hello people, does any one know the maximum number of persons that can connect to raspberry 3b and if there are ways to increase that number. Thanks in advance
- mahjongg
- Forum Moderator
- Posts: 13582
- Joined: Sun Mar 11, 2012 12:19 am
- Location: South Holland, The Netherlands
Re: number of users that can connect to raspberry 3b
Isn't five trillion people enough?
Oh, you meant at the same time.....
connect how, Wifi, Ethernet, serial, bluetooth, I2C, SPI how?
Oh, you meant at the same time.....


connect how, Wifi, Ethernet, serial, bluetooth, I2C, SPI how?
-
- Posts: 14029
- Joined: Fri Mar 09, 2012 7:36 pm
- Location: Vallejo, CA (US)
Re: number of users that can connect to raspberry 3b
At 20 connected sessions a PDP-11/70 running bsd 2.9 got pretty slow. A Pi3B+ is *lot* faster, but Raspbian has a lot more background stuff running.
How many people are *likely* to be connected at the same time? It also depends, of course, on what the people are doing. If they're all trying to compile a Linux kernel, it won't take many to bring the system to its knees. If they're all running trn or elm, it would probably handle a fairly large number.
How many people are *likely* to be connected at the same time? It also depends, of course, on what the people are doing. If they're all trying to compile a Linux kernel, it won't take many to bring the system to its knees. If they're all running trn or elm, it would probably handle a fairly large number.
Re: number of users that can connect to raspberry 3b
Gets even worse if they are hitting a web server as the server application can have significant impact when the number of users go up...
As for increasing it - buy a Pi 3B+ or CM3+
If you want lots of users go Intel / AMD and Linux - more memory and more cores
By the way - welcome to the forum. We are not trying to put you off but please remember these wonderful cards are £35 and not the answer to everything computers can do.
As for increasing it - buy a Pi 3B+ or CM3+
If you want lots of users go Intel / AMD and Linux - more memory and more cores

By the way - welcome to the forum. We are not trying to put you off but please remember these wonderful cards are £35 and not the answer to everything computers can do.
Re: number of users that can connect to raspberry 3b
2innocent,
It's impossible to answer that question unless you give more information on what you require.
What kind of connection do you mean: To a web server (HTTP), terminal sessions(SSH), VNC connections, database connection, .... ?
What kind of work load do you expect those users to have?
How do you know you want to increase whatever limit it might be before you know what it is?
I'm sure Linux can hold thousands of network connections open at the same time if they are not doing anything. The limit will be on what service they are to provide. At some point you will run out of processing speed, memory space, storage access speed, network bandwidth.
It's impossible to answer that question unless you give more information on what you require.
What kind of connection do you mean: To a web server (HTTP), terminal sessions(SSH), VNC connections, database connection, .... ?
What kind of work load do you expect those users to have?
How do you know you want to increase whatever limit it might be before you know what it is?
I'm sure Linux can hold thousands of network connections open at the same time if they are not doing anything. The limit will be on what service they are to provide. At some point you will run out of processing speed, memory space, storage access speed, network bandwidth.
Memory in C++ is a leaky abstraction .
Re: number of users that can connect to raspberry 3b
i am trying to istall moodle on raspberry pi so that students in a class can access educative contents and probably take tests by connecting their device through wifi connection to the pi, so i am wondering how many students should be able to connect at a time.
Re: number of users that can connect to raspberry 3b
i am trying to istall moodle on raspberry pi so that students in a class can access educative contents and probably take tests by connecting their device through wifi connection to the pi, so i am wondering how many students should be able to connect at a time.Heater wrote: ↑Thu May 23, 2019 7:15 pm2innocent,
It's impossible to answer that question unless you give more information on what you require.
What kind of connection do you mean: To a web server (HTTP), terminal sessions(SSH), VNC connections, database connection, .... ?
What kind of work load do you expect those users to have?
How do you know you want to increase whatever limit it might be before you know what it is?
I'm sure Linux can hold thousands of network connections open at the same time if they are not doing anything. The limit will be on what service they are to provide. At some point you will run out of processing speed, memory space, storage access speed, network bandwidth.
Top
Re: number of users that can connect to raspberry 3b
it is basically for students to connect, learn and take testsW. H. Heydt wrote: ↑Thu May 23, 2019 6:26 pmAt 20 connected sessions a PDP-11/70 running bsd 2.9 got pretty slow. A Pi3B+ is *lot* faster, but Raspbian has a lot more background stuff running.
How many people are *likely* to be connected at the same time? It also depends, of course, on what the people are doing. If they're all trying to compile a Linux kernel, it won't take many to bring the system to its knees. If they're all running trn or elm, it would probably handle a fairly large number.
Re: number of users that can connect to raspberry 3b
yes dear, i mean at the same time. i am trying to set up moodle on raspberry pi for students to connect to and take tests in a class. the connection is via wifi. so m wondering how many students can connect at a time using RPi 3
Re: number of users that can connect to raspberry 3b
it is suppose to be an offline learning repository hence it shouldnt be hitting any web server. Thanks, i understand it has its limitations, just trying to be creative with what it can do.Andyroo wrote: ↑Thu May 23, 2019 6:39 pmGets even worse if they are hitting a web server as the server application can have significant impact when the number of users go up...
As for increasing it - buy a Pi 3B+ or CM3+
If you want lots of users go Intel / AMD and Linux - more memory and more cores
By the way - welcome to the forum. We are not trying to put you off but please remember these wonderful cards are £35 and not the answer to everything computers can do.
Re: number of users that can connect to raspberry 3b
If you are thinking of Moodlebox as your software then this gives you a guideline:
Taken from https://moodlebox.net/en/help/moodlebox ... any-users/MoodleBox is built around a mini computer Raspberry Pi 3 Model B or Model B+. Its super light architecture enables to use it with 20 to max 30 users.
It is not designed to support big groups.
Re: number of users that can connect to raspberry 3b
The WiFi is the limiting factor here. As already stated above, you can expect between 20-30 users connected simultaneously (see https://moodlebox.net/en/help/moodlebox ... any-users/)2innocent wrote: ↑Fri May 24, 2019 8:39 ami am trying to istall moodle on raspberry pi so that students in a class can access educative contents and probably take tests by connecting their device through wifi connection to the pi, so i am wondering how many students should be able to connect at a time.
Top
Disclaimer: I'm the maintainer of MoodleBox.
Maintainer of MoodleBox, a Moodle server on Raspberry Pi
Re: number of users that can connect to raspberry 3b
Has this changed on the Pi3B+ with the faster wifi?mina wrote: ↑Fri May 24, 2019 2:06 pmThe WiFi is the limiting factor here. As already stated above, you can expect between 20-30 users connected simultaneously (see https://moodlebox.net/en/help/moodlebox ... any-users/)2innocent wrote: ↑Fri May 24, 2019 8:39 ami am trying to istall moodle on raspberry pi so that students in a class can access educative contents and probably take tests by connecting their device through wifi connection to the pi, so i am wondering how many students should be able to connect at a time.
Top
Disclaimer: I'm the maintainer of MoodleBox.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
Re: number of users that can connect to raspberry 3b
Unfortunately nojamesh wrote: ↑Fri May 24, 2019 3:36 pmHas this changed on the Pi3B+ with the faster wifi?mina wrote: ↑Fri May 24, 2019 2:06 pmThe WiFi is the limiting factor here. As already stated above, you can expect between 20-30 users connected simultaneously (see https://moodlebox.net/en/help/moodlebox ... any-users/)2innocent wrote: ↑Fri May 24, 2019 8:39 ami am trying to istall moodle on raspberry pi so that students in a class can access educative contents and probably take tests by connecting their device through wifi connection to the pi, so i am wondering how many students should be able to connect at a time.
Top
Disclaimer: I'm the maintainer of MoodleBox.

Maintainer of MoodleBox, a Moodle server on Raspberry Pi
Re: number of users that can connect to raspberry 3b
Interesting, what do you think is the cause of the limitation?mina wrote: ↑Fri May 24, 2019 3:46 pmUnfortunately nojamesh wrote: ↑Fri May 24, 2019 3:36 pmHas this changed on the Pi3B+ with the faster wifi?mina wrote: ↑Fri May 24, 2019 2:06 pm
The WiFi is the limiting factor here. As already stated above, you can expect between 20-30 users connected simultaneously (see https://moodlebox.net/en/help/moodlebox ... any-users/)
Disclaimer: I'm the maintainer of MoodleBox.. The speed has changed, but NOT the number of users.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.
- DougieLawson
- Posts: 40561
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: number of users that can connect to raspberry 3b
It's 100% guaranteed to be lack of RAM. Each user will take a chunk of RAM on the server. When that pushes your server over the 1GB limit (into swapping hell) you'll reach a practical limit.
The big iron I work on for my day job runs out at 480GB before swapping or paging anything to disk.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: number of users that can connect to raspberry 3b
Wonder if a fast disk and big swap space on it would let you push the limit up much...DougieLawson wrote: ↑Fri May 24, 2019 9:59 pmIt's 100% guaranteed to be lack of RAM. Each user will take a chunk of RAM on the server. When that pushes your server over the 1GB limit (into swapping hell) you'll reach a practical limit.
The big iron I work on for my day job runs out at 480GB before swapping or paging anything to disk.
- DougieLawson
- Posts: 40561
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: number of users that can connect to raspberry 3b
In an ideal world you never want your steady state working set to move out to any slow device. Before we could go super sized on mainframes the rule was 67% max. With the other 33% there for the mid-day peaks (in banking we got a peak around 11am and a second around 2pm - now in banking they get a massive peak between 11:30pm and 12:30am when folks check their phones to see if they've been paid).
You can swap to spinning things or solid-state spinning look-alike things but that will reduce the overall throughput for everyone when any ready-to-run process has to pause for a swapped page to come back from the USB device.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: number of users that can connect to raspberry 3b
I would hope that intermittent users could stand a page or two...
I know when we modelled the last Citrix system we ended up with role based workloads - upset some managers when we rated their workload as low impact and could be paged out compared to customer service staff
i Wonder if any regular moodle users have tried it?
I know when we modelled the last Citrix system we ended up with role based workloads - upset some managers when we rated their workload as low impact and could be paged out compared to customer service staff

i Wonder if any regular moodle users have tried it?
-
- Posts: 14029
- Joined: Fri Mar 09, 2012 7:36 pm
- Location: Vallejo, CA (US)
Re: number of users that can connect to raspberry 3b
It's kind of disturbing that, despite the huge improvement is CPU speed and memory that even a Pi represents over a PDP 11/70, the total number supportable concurrent users hasn't increased in 40 years.
Re: number of users that can connect to raspberry 3b
Are you saying that each new wifi connection take so much RAM that after 25 users the RPi freezes? Interesting (I thought myself it could be a wifi driver problem.)DougieLawson wrote: ↑Fri May 24, 2019 9:59 pmIt's 100% guaranteed to be lack of RAM. Each user will take a chunk of RAM on the server. When that pushes your server over the 1GB limit (into swapping hell) you'll reach a practical limit.
The big iron I work on for my day job runs out at 480GB before swapping or paging anything to disk.
I'll try to do some tests to see wether your assertion holds.
Maintainer of MoodleBox, a Moodle server on Raspberry Pi
- DougieLawson
- Posts: 40561
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: number of users that can connect to raspberry 3b
No, I'm saying you need to measure the base RAM usage when the system is booted and ready for use. Measure how much it increases for 1, 2, 5, 10, 15, 20 connected users. Then do some scrap paper maths to workout where the theoretical limit will be. Then do an empirical test to see how many users flood the system. You're aiming for 95% cpu busy on four cores and approx 67% RAM committed as the practical limits.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: number of users that can connect to raspberry 3b
I think you don't understand the use case: the device serves as a wifi AP and a web server, that's all. No user is logged in the RPi in production use.DougieLawson wrote: ↑Sat May 25, 2019 8:56 amNo, I'm saying you need to measure the base RAM usage when the system is booted and ready for use. Measure how much it increases for 1, 2, 5, 10, 15, 20 connected users. Then do some scrap paper maths to workout where the theoretical limit will be. Then do an empirical test to see how many users flood the system. You're aiming for 95% cpu busy on four cores and approx 67% RAM committed as the practical limits.
Nginx and php-fpm are optimized so that memory is not a problem. Flooding the web server using ApacheBench shows that memory is not a problem: available memory remains at around 600M at any time, even with 100 concurrent http requests! Swap is never used.
The limitation I experience is uniquely caused by concurrent wifi connections to the AP (hostapd), and that's the reason I'm suspecting it's a wifi driver issue.
I'd be glad for any suggestion.
Maintainer of MoodleBox, a Moodle server on Raspberry Pi
Re: number of users that can connect to raspberry 3b
Wonder if a different WiFi dongle would help? Rather than the internal one try a USB connected one.
I know it defeats the ‘one box’ idea but does the same thing happen if you use an external AP and connect back to the Pi via Ethernet?
I know it defeats the ‘one box’ idea but does the same thing happen if you use an external AP and connect back to the Pi via Ethernet?
Re: number of users that can connect to raspberry 3b
I'm sure that this would do the job, but as you say it'll defeats the 'one box' idea, which is absolutely a no-go for most of the (non tech savvy) users.
Maintainer of MoodleBox, a Moodle server on Raspberry Pi