File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 281
281
--socket-group=${ config . users . users . microvm . group } \
282
282
--shared-dir "$SOURCE" \
283
283
--rlimit-nofile ${ toString serviceConfig . LimitNOFILE } \
284
- --thread-pool-size `nproc` \
284
+ --thread-pool-size ${ toString config . microvm . virtiofsd . threadPoolSize } \
285
285
--posix-acl --xattr \
286
286
${ lib . optionalString ( config . microvm . virtiofsd . inodeFileHandles != null )
287
287
"--inode-file-handles=${ config . microvm . virtiofsd . inodeFileHandles } "
Original file line number Diff line number Diff line change 170
170
'' ;
171
171
} ;
172
172
173
+ virtiofsd . threadPoolSize = mkOption {
174
+ type = with types ; oneOf [ str ints . unsigned ] ;
175
+ default = "`nproc`" ;
176
+ description = ''
177
+ The amounts of threads virtiofsd should spawn. This option also takes the special
178
+ string `\`nproc\`` which spawns as many threads as the host has cores.
179
+ '' ;
180
+ } ;
181
+
173
182
virtiofsd . extraArgs = mkOption {
174
183
type = with types ; listOf str ;
175
184
default = [ ] ;
You can’t perform that action at this time.
0 commit comments