Opened 9 years ago

Closed 7 weeks ago

#7248 closed bug (fixed)

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

Description

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)

thread_maker.zip (3.4 KB ) - added by jonas.kirilla 9 years ago.

Download all attachments as: .zip

Change History (4)

by jonas.kirilla, 9 years ago

Attachment: thread_maker.zip added

comment:1 by bonefish, 9 years ago

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 by axeld, 2 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:3 by waddlesplash, 7 weeks ago

Resolution: fixed
Status: assignedclosed

Thread limits are now enforced, so this should be fixed.

Note: See TracTickets for help on using tickets.