Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Banszki Gabor <banszki.gabor@chello.hu>
To: netfilter <netfilter@lists.netfilter.org>
Subject: Re: queue buffer size increasing howto?
Date: Wed, 08 Sep 2004 08:01:45 +0200	[thread overview]
Message-ID: <1094623305.15915.11.camel@debian> (raw)
In-Reply-To: <876ef97a040822075556951a4@mail.gmail.com>


On Wed, 2004-09-08 at 01:39, Tobias DiPasquale wrote:
> On Tue, 07 Sep 2004 18:30:26 +0200, Banszki Gabor
> <banszki.gabor@chello.hu> wrote:
> > Hi everybody!
> > 
> > I solved the problem by using pthread.h
> > 
> > The main thread in my process is reading from the queue buffer and
open
> > new threads for the long time tasks.
> > 
> > In this case I don't need to increase the buffer size of the netlink
> > socket.
> 
> You will still lose some data under high enough load. This is exactly
> what I did, as well, and I still needed to pump up the size of the
> socket recv buffer.

Ok....... Bot how can I increase the  buffer size by more than 215040?




>Hi Everybody!
>
>Thank for answer of Tobias!!
>
>I could get the buffer size by the getsockopt (107520).
>
>After this I was able to increase the size of buffer to 215040 by your
>suggestion:
>
>   int size, size_len;
>   size_len = sizeof(size);
>   rv = getsockopt (fd, SOL_SOCKET, SO_RCVBUF, &size, &size_len); 
>   printf ("Oldsize of buffer: %i \n",size); { I've got 107520)
>
>   size = 1256000;
>   rv = setsockopt (fd, SOL_SOCKET, SO_RCVBUF, &size, size_len); 
>
>   rv = getsockopt (fd, SOL_SOCKET, SO_RCVBUF, &size, &size_len); 
>   printf ("New size of buffer: %i \n",size); ( I've got 215040 )
>
>After this I can see the same situation with this command....
>
> watch -n 0 "cat /proc/net/ip_queue"
>
>...like earlier... 
>The maximum number is around 252 - 258, and I still get the netlink
>error message "No buffer space....."
>
>I think it didn't help... Why?
>Maybee I should increase the SO_RCVBUF by more? But how?
>
>Thnx..


  reply	other threads:[~2004-09-08  6:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-22 13:40 queue buffer size increasing howto? Banszki Gabor
     [not found] ` <876ef97a0408220750591cc852@mail.gmail.com>
2004-08-22 14:55   ` Tobias DiPasquale
2004-09-08  6:01     ` Banszki Gabor [this message]
2004-09-04  8:16   ` Banszki Gabor
2004-09-07 16:30     ` queue buffer size increasing howto? - solved Banszki Gabor
2004-09-07 23:39       ` Tobias DiPasquale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1094623305.15915.11.camel@debian \
    --to=banszki.gabor@chello.hu \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox