* netlink_route kernel data dump size increased
@ 2015-08-19 18:11 tej parkash
2015-08-19 21:17 ` Eric Dumazet
0 siblings, 1 reply; 4+ messages in thread
From: tej parkash @ 2015-08-19 18:11 UTC (permalink / raw)
To: netdev; +Cc: davem, eric.dumazet
All,
We are running application on Linux Kernel 3.10 to collect network
interface information using NETLINK_ROUTE protocol. earlier (kernel
2.6.32) we were having 8K buffer allocated to collect all data but
with new kernel (3.10) we are seeing read socket error, as buffer size
is not sufficient for all network dump data.
We want to understand that if the userspace buffer limit increased to
16K or we need some other mechanism to collect the data in 8K chuck.
or Is there any other way application can use NETLINK_ROUTE protocol,
so that it will not break the application if data size gets increased
in future.
I did some some browsing and found some link but they were not very conclusive.
http://www.spinics.net/lists/netdev/msg162185.html
Appreciate for any kind of help or pointers here
Thanks
Tej
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: netlink_route kernel data dump size increased
2015-08-19 18:11 netlink_route kernel data dump size increased tej parkash
@ 2015-08-19 21:17 ` Eric Dumazet
2015-08-20 5:51 ` tej parkash
2015-08-26 0:58 ` tej parkash
0 siblings, 2 replies; 4+ messages in thread
From: Eric Dumazet @ 2015-08-19 21:17 UTC (permalink / raw)
To: tej parkash; +Cc: netdev, davem
On Wed, 2015-08-19 at 23:41 +0530, tej parkash wrote:
> All,
>
> We are running application on Linux Kernel 3.10 to collect network
> interface information using NETLINK_ROUTE protocol. earlier (kernel
> 2.6.32) we were having 8K buffer allocated to collect all data but
> with new kernel (3.10) we are seeing read socket error, as buffer size
> is not sufficient for all network dump data.
>
> We want to understand that if the userspace buffer limit increased to
> 16K or we need some other mechanism to collect the data in 8K chuck.
> or Is there any other way application can use NETLINK_ROUTE protocol,
> so that it will not break the application if data size gets increased
> in future.
>
> I did some some browsing and found some link but they were not very conclusive.
> http://www.spinics.net/lists/netdev/msg162185.html
>
> Appreciate for any kind of help or pointers here
>
This sounds like a bug that might have been fixed later.
User space is not required to switch to 16KB, although it is recommended
to reduce number of syscalls.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: netlink_route kernel data dump size increased
2015-08-19 21:17 ` Eric Dumazet
@ 2015-08-20 5:51 ` tej parkash
2015-08-26 0:58 ` tej parkash
1 sibling, 0 replies; 4+ messages in thread
From: tej parkash @ 2015-08-20 5:51 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev, davem
On Thu, Aug 20, 2015 at 2:47 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> On Wed, 2015-08-19 at 23:41 +0530, tej parkash wrote:
>> All,
>>
>> We are running application on Linux Kernel 3.10 to collect network
>> interface information using NETLINK_ROUTE protocol. earlier (kernel
>> 2.6.32) we were having 8K buffer allocated to collect all data but
>> with new kernel (3.10) we are seeing read socket error, as buffer size
>> is not sufficient for all network dump data.
>>
>> We want to understand that if the userspace buffer limit increased to
>> 16K or we need some other mechanism to collect the data in 8K chuck.
>> or Is there any other way application can use NETLINK_ROUTE protocol,
>> so that it will not break the application if data size gets increased
>> in future.
>>
>> I did some some browsing and found some link but they were not very conclusive.
>> http://www.spinics.net/lists/netdev/msg162185.html
>>
>> Appreciate for any kind of help or pointers here
>>
>
> This sounds like a bug that might have been fixed later.
Ok, let me see if I could find related fix in later kernels. If you
have any other pointers here please let me know.
>
> User space is not required to switch to 16KB, although it is recommended
> to reduce number of syscalls.
Are you saying that we should bring back the fix to 3.10 kernel rather
increasing user space buffer size to 16KB. I assume that would be
right way to handle it. But do we have any issue if we just increase
the buffer size to 16KB (e.g without fix, 16KB may also not be
sufficient sometime, etc)
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: netlink_route kernel data dump size increased
2015-08-19 21:17 ` Eric Dumazet
2015-08-20 5:51 ` tej parkash
@ 2015-08-26 0:58 ` tej parkash
1 sibling, 0 replies; 4+ messages in thread
From: tej parkash @ 2015-08-26 0:58 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev, davem
On Thu, Aug 20, 2015 at 2:47 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> On Wed, 2015-08-19 at 23:41 +0530, tej parkash wrote:
>> All,
>>
>> We are running application on Linux Kernel 3.10 to collect network
>> interface information using NETLINK_ROUTE protocol. earlier (kernel
>> 2.6.32) we were having 8K buffer allocated to collect all data but
>> with new kernel (3.10) we are seeing read socket error, as buffer size
>> is not sufficient for all network dump data.
>>
>> We want to understand that if the userspace buffer limit increased to
>> 16K or we need some other mechanism to collect the data in 8K chuck.
>> or Is there any other way application can use NETLINK_ROUTE protocol,
>> so that it will not break the application if data size gets increased
>> in future.
>>
>> I did some some browsing and found some link but they were not very conclusive.
>> http://www.spinics.net/lists/netdev/msg162185.html
>>
>> Appreciate for any kind of help or pointers here
>>
>
> This sounds like a bug that might have been fixed later.
https://lists.ubuntu.com/archives/kernel-team/2014-August/046758.html
Is this the patch we are talking about?
It is available from 3.13 kernel only. Let me also verify it, if it
is working for us.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-26 0:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 18:11 netlink_route kernel data dump size increased tej parkash
2015-08-19 21:17 ` Eric Dumazet
2015-08-20 5:51 ` tej parkash
2015-08-26 0:58 ` tej parkash
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).