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

Chris Frey cdfrey at foursquare.net
Tue May 30 12:47:55 EDT 2023


On Tue, May 30, 2023 at 09:36:52AM -0400, Erik Schnetter wrote:
> When people run millions of threads on a laptop, they usually use a
> user-mode threading system, i.e. they don't use kernel (POSIX)
> threads.

Thanks Erik!  This is just for fun, to see if I can understand the
limits of the linux kernel, and whatever else is preventing the
creation of so many threads.  I don't believe I've actually hit any
real resource limits yet.

Unfortunately, when I run the program and hit a limit, all I get
for information is:

	Resource temporarily unavailable

This is the case whether I hit a ulimit limit or some other /proc level
limit.  If it told me the resource that was unavailable, that would
be more helpful, but I don't think EAGAIN gives that information.

- Chris




More information about the kwlug-disc mailing list