linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Saurabh8 Jain <saurabh8.jain@aricent.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Netlink Memory Leak Issue
Date: Thu, 16 Dec 2010 08:03:41 +0100	[thread overview]
Message-ID: <1292483021.3542.10.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <B659B0EE7F1D5A499E4A4BEB0BECBA2518292B3D21@GUREXMB01.ASIAN.AD.ARICENT.COM>

On Thu, 2010-12-16 at 11:01 +0530, Saurabh8 Jain wrote:
> Hi,
> 
> I would like to know the memory usage that happens between user space
> and kernel space communication. Communication happens via generic
> netlink library and we need to register doit and dump functions.

Yes.

> I was going through function "nl80211_set_mesh_params" in
> "net/wireless/nl80211.c" which receives values of mesh parameters. In
> this function skb is passed but it is never used and the skb is not
> freed. I saw other functions also which receives messages from user
> space but no memory is released for skb.

> Where is this memory getting free? Do I need to free this memory?

Look at net/netlink/ -- we don't need to handle that.

> When I executed iw commands to set few values in loop.  I saw there is
> drop in free memory of "top" command. I am working on
> compatwireless-2010-06-27.

You're seriously taking "top" for a measurement? That's like the worst
possible way to measure memory usage.

johannes


  reply	other threads:[~2010-12-16  7:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16  5:31 Netlink Memory Leak Issue Saurabh8 Jain
2010-12-16  7:03 ` Johannes Berg [this message]
2010-12-16 10:47 ` jpo234

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=1292483021.3542.10.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=saurabh8.jain@aricent.com \
    /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).