@Override public int maxNumberOfProcessors() { return Configuration.allAvailableProcessors(); } }
/** * Rough max number of processors (CPU cores) simultaneously used in total by importer at any given time. * This value should be set while taking the necessary IO threads into account; the page cache and the operating * system will require a couple of threads between them, to handle the IO workload the importer generates. * Defaults to the value provided by the {@link Runtime#availableProcessors() jvm}. There's a discrete * number of threads that needs to be used just to get the very basics of the import working, * so for that reason there's no lower bound to this value. * "Processor" in the context of the batch importer is different from "thread" since when discovering * how many processors are fully in use there's a calculation where one thread takes up 0 < fraction <= 1 * of a processor. */ default int maxNumberOfProcessors() { return allAvailableProcessors(); }
@Override public int maxNumberOfProcessors() { return Configuration.allAvailableProcessors(); } }
/** * Rough max number of processors (CPU cores) simultaneously used in total by importer at any given time. * This value should be set while taking the necessary IO threads into account; the page cache and the operating * system will require a couple of threads between them, to handle the IO workload the importer generates. * Defaults to the value provided by the {@link Runtime#availableProcessors() jvm}. There's a discrete * number of threads that needs to be used just to get the very basics of the import working, * so for that reason there's no lower bound to this value. * "Processor" in the context of the batch importer is different from "thread" since when discovering * how many processors are fully in use there's a calculation where one thread takes up 0 < fraction <= 1 * of a processor. */ default int maxNumberOfProcessors() { return allAvailableProcessors(); }