Opened 8 years ago

Last modified 2 years ago

#7248 assigned bug

error in thread use accounting?

Reported by: jonas.kirilla Owned by: nobody
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


The attached utility (thread_maker) spawns a number of threads, given as argv[1]. (defaults to 16)

Having run a couple of "thread_maker 2000" (or more) and having it fail at spawning threads, sysinfo can show something like this:

~/Desktop/thread_maker> sysinfo | grep threads

-25837 threads free (used/max 29933 / 4096)

Haiku hrev39648 gcc2hybrid.

Attachments (1) (3.4 KB) - added by jonas.kirilla 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by jonas.kirilla

Attachment: added

comment:1 Changed 8 years ago by bonefish

The thread limit is not enforced ATM. The reason why creating more threads fails at some point is probably due to some other resource limit (address space, semaphores,...).

comment:2 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.