Skip to content

Commit a3c3ecd

Browse files
committed
Main: limit io_uring workers to 16+16
Put a reasonable upper bound, and one that fits into TasksMax.
1 parent eb48731 commit a3c3ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Main.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Instance::Instance(const Config &config)
5656
:brun(config.brun), frun(config.frun),
5757
culling_disabled(config.culling_disabled)
5858
{
59+
uring.SetMaxWorkers(16, 16);
60+
5961
dev_cachefiles.Open(OpenDevCachefiles(config).Release());
6062
dev_cachefiles.ScheduleRead();
6163

0 commit comments

Comments
 (0)