netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] limit xen vnic max queues number to online cpus number
@ 2015-10-23  9:17 Joe Jin
  2015-10-23  9:18 ` [PATCH V2 1/2] xen-netback: limit xen vif max queues number to online cpus Joe Jin
  2015-10-23  9:19 ` [PATCH V2 2/2] xen-netfront: limit vnic max_queues " Joe Jin
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Jin @ 2015-10-23  9:17 UTC (permalink / raw)
  To: wei.liu2, Ian Campbell, Boris Ostrovsky, Konrad Rzeszutek Wilk,
	David S. Miller, Jan Beulich
  Cc: netdev, xen-devel

Currently xen vnic allowed to create lots of queues by set module param
max_queues(both netback and netfront), when queues number larger than
cpus number, it does not help for performance but need more cpu time.

This patchset limit netback and netfront max queues number to online
cpus number.

Joe Jin (2):
  xen-netback: limit xen vif max queues number to online cpus
  xen-netfront: limit vnic max_queues number to online cpus

---
Changes in v2:
  - Replace param_get_int to param_get_uint.
  - Use '%u' for unsigned int when print.
  - Replace EINVAL to ERANGE when out of range [0-CPUs].
  - Reset the perm of max_queues on sysfs to 0644.

 drivers/net/xen-netback/netback.c |   28 ++++++++++++++++++++++------
 drivers/net/xen-netfront.c        |   28 ++++++++++++++++++++++------
 2 files changed, 44 insertions(+), 12 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-23  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23  9:17 [PATCH V2 0/2] limit xen vnic max queues number to online cpus number Joe Jin
2015-10-23  9:18 ` [PATCH V2 1/2] xen-netback: limit xen vif max queues number to online cpus Joe Jin
2015-10-23  9:19 ` [PATCH V2 2/2] xen-netfront: limit vnic max_queues " Joe Jin
2015-10-23  9:30   ` Jan Beulich
2015-10-23  9:39     ` Joe Jin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).