Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1555566
| From | Juergen Gross <jgross@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] xen/netfront: set default upper limit of tx/rx queues to 8 |
| Date | 2017-01-10 16:10 +0100 |
| Message-ID | <sY6dI-2W2-69@gated-at.bofh.it> (permalink) |
| References | <sY4OC-1Tf-27@gated-at.bofh.it> <sY4OC-1Tf-25@gated-at.bofh.it> <sY642-2Dh-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/01/17 15:53, Boris Ostrovsky wrote:
> On 01/10/2017 08:32 AM, Juergen Gross wrote:
>> The default for the number of tx/rx queues of one interface is the
>> number of vcpus of the system today. As each queue pair reserves 512
>> grant pages this default consumes a ridiculous number of grants for
>> large guests.
>>
>> Limit the queue number to 8 as default. This value can be modified
>> via a module parameter if required.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> ---
>> drivers/net/xen-netfront.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
>> index a479cd9..490c865 100644
>> --- a/drivers/net/xen-netfront.c
>> +++ b/drivers/net/xen-netfront.c
>> @@ -57,6 +57,7 @@
>> #include <xen/interface/grant_table.h>
>>
>> /* Module parameters */
>> +#define MAX_QUEUES_DEFAULT 8
>> static unsigned int xennet_max_queues;
>> module_param_named(max_queues, xennet_max_queues, uint, 0644);
>> MODULE_PARM_DESC(max_queues,
>> @@ -2164,11 +2165,12 @@ static int __init netif_init(void)
>>
>> pr_info("Initialising Xen virtual ethernet driver\n");
>>
>> - /* Allow as many queues as there are CPUs if user has not
>> + /* Allow as many queues as there are CPUs inut max. 8 if user has not
>
> Based on comment change in the second patch: s/inut/but/ ? Also, comment
> style in both patches.
Typo: yes
Style: no. checkpatch tells me that the net directory doesn't follow
common kernel style.
>
> Other than that, for both:
>
> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Thanks,
Juergen
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/2] xen/netfront: set default upper limit of tx/rx queues to 8 Juergen Gross <jgross@suse.com> - 2017-01-10 14:40 +0100
Re: [PATCH 1/2] xen/netfront: set default upper limit of tx/rx queues to 8 Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-01-10 16:00 +0100
Re: [PATCH 1/2] xen/netfront: set default upper limit of tx/rx queues to 8 Juergen Gross <jgross@suse.com> - 2017-01-10 16:10 +0100
csiph-web