From: sugnan.prabhu@gmail.com (sugnan prabhu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: strange behavior of sk_rmem_alloc
Date: Wed, 29 Dec 2010 10:06:04 +0530 [thread overview]
Message-ID: <AANLkTinekJ0W-+4woFQ5ybV=sUXR1s9cEsFJQ8mcuO5X@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=UsGjrQEoSJk49u=bsugdDfbsggYKT8GotO757@mail.gmail.com>
Hello,
The issue got resolved the skb references were not handled properly, now
its working fine after correcting few handling. Thank you
On Wed, Dec 29, 2010 at 9:34 AM, sugnan prabhu <sugnan.prabhu@gmail.com>wrote:
>
> Hello all,
>
> I have written a network driver, address family and a protocol
> family, when i create a socket in a user space program to my PF and AF, it
> receives only first 300 packets and i see that all the packets are being
> received till the function sk_recieve_skb() is called.
> When i tried searching for the root of the cause, i found that *sk_rcvqueues_full(sk,skb)
> *returns true after receiving 300 packets, further observing the cause i
> found that the variable *sk_rmem_alloc* which is being checked in the
> function in never getting decremented.
>
>
> http://www.pubbs.net/200912/kernel/700-seeing-strange-values-for-tcp-skrmemalloc.html
>
> <http://www.pubbs.net/200912/kernel/700-seeing-strange-values-for-tcp-skrmemalloc.html>In
> the above link i found that some one had similar problem, and as it says
> calling *skb_copy_datagram_iovec()* should decrement the *sk_rmem_alloc*,
> am even doing that. So can some suggest what can be the problem. One more
> strange thing is *sk_queue_empty(&sk->receive_queue)* start returning true
> after 300 packet.
>
>
> ---------------------------------------------------
> Thanking You,
> Sugnan Prabhu S
> http://sugnanprabhu.blogspot.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101229/f16e14ac/attachment.html
prev parent reply other threads:[~2010-12-29 4:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-29 4:04 strange behavior of sk_rmem_alloc sugnan prabhu
2010-12-29 4:36 ` sugnan prabhu [this message]
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='AANLkTinekJ0W-+4woFQ5ybV=sUXR1s9cEsFJQ8mcuO5X@mail.gmail.com' \
--to=sugnan.prabhu@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).