Increase the size of the kernel FD table
With packagefs potentially opening quite a few packages the default of 256 slots is a bit tight. It's 4096 now, which should be safe for a while, but we might want to consider resizing the table dynamically and probably even switching to another algorithm for allocating the slots. Should fix #11328.
This commit is contained in:
parent
6bbd25f071
commit
dfb13a8716
@ -2793,6 +2793,9 @@ team_init(kernel_args* args)
|
||||
if (sKernelTeam->io_context == NULL)
|
||||
panic("could not create io_context for kernel team!\n");
|
||||
|
||||
if (vfs_resize_fd_table(sKernelTeam->io_context, 4096) != B_OK)
|
||||
dprintf("Failed to resize FD table for kernel team!\n");
|
||||
|
||||
// stick it in the team hash
|
||||
sTeamHash.Insert(sKernelTeam);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user