[kwlug-disc] fun: 10k to a million threads and more?

Khalid Baheyeldin kb at 2bits.com
Tue May 30 16:18:44 EDT 2023


On Tue, May 30, 2023 at 4:03 PM Chris Frey <cdfrey at foursquare.net> wrote:

> After reading the article, I started probing systemd a little more
> closely.  I suspect my odd "9000ish" limit comes from my user slice:
>
>         systemctl show user-1000.slice | grep TasksMax
>
> This gives me 9933.
>
> Logging in as root from the console gives me 65999:
>
>         systemctl show user-0.slice | grep Tasks Max
>
> With all the other changes I'd already done, this does indeed let me
> create 60000 threads on my little 4G laptop.
>

That tells me that systemctl has taken over yet another component ... sigh
...

Is there a way to do the same thing from the older CLI tools?

And can this limit (and others) be increased for non-root users?

Another odd observation ...

On two different systems running Ubuntu 20.04, I get different values:

This is on the server edition
# systemctl show user-1000.slice | grep TasksM
TasksMax=41871

This is on Xubuntu
# systemctl show user-1000.slice | grep TasksM
TasksMax=31142
-- 
Khalid M. Baheyeldin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20230530/86b93f0e/attachment.htm>


More information about the kwlug-disc mailing list