SerCeMan / jnr-fuse

FUSE implementation in Java using Java Native Runtime (JNR)
MIT License
365 stars 87 forks source link

Added the ability to mount more drives than the number of CPUs #79

Closed stanimirivanovde closed 5 years ago

stanimirivanovde commented 5 years ago

Currently jnr-fuse will not be able to mount more FUSE volumes than the number of CPUs in the box. This is due to the fact that it uses the global ForkJoinPool which is initialized with parallelism equal to the number of CPUs. By creating a new ForkJoinPool each time we mount a volume we can overcome this limit without the need for passing extra parameters.

SerCeMan commented 5 years ago

Hey, @stanimirivanovde! Thank you for the contribution! Agree that offloading on the common pool isn't the best decision given that it's shared.