On Fri, 2011-04-29 at 15:08 +0800, Asias He wrote: On 04/28/2011 09:40 PM, Sasha Levin wrote: > > + nr_online_cpus = sysconf(_SC_NPROCESSORS_ONLN); > > + thread_pool__init(nr_online_cpus); > > We may benefit from more threads than the number of hardware thread we > have. Currently, virtio_console consumes two, virio_net consumes two, > and virtio_blk consumes one. Can we adjust the thread pool size when > devices register to use thread pool? How many threads do we want to have the threadpool use? Currently theres a thread allocated for each VCPU + _SC_NPROCESSORS_ONLN I/O threads. Should we just allocate another thread for each device that registers within the threadpool? This number can grow to be pretty big once we start adding multiple devices. -- Sasha. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html