* Netlink Memory Leak Issue
@ 2010-12-16 5:31 Saurabh8 Jain
2010-12-16 7:03 ` Johannes Berg
2010-12-16 10:47 ` jpo234
0 siblings, 2 replies; 3+ messages in thread
From: Saurabh8 Jain @ 2010-12-16 5:31 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org
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.
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?
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.
Thanks,
Saurabh Jain
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Netlink Memory Leak Issue
2010-12-16 5:31 Netlink Memory Leak Issue Saurabh8 Jain
@ 2010-12-16 7:03 ` Johannes Berg
2010-12-16 10:47 ` jpo234
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2010-12-16 7:03 UTC (permalink / raw)
To: Saurabh8 Jain; +Cc: linux-wireless@vger.kernel.org
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Netlink Memory Leak Issue
2010-12-16 5:31 Netlink Memory Leak Issue Saurabh8 Jain
2010-12-16 7:03 ` Johannes Berg
@ 2010-12-16 10:47 ` jpo234
1 sibling, 0 replies; 3+ messages in thread
From: jpo234 @ 2010-12-16 10:47 UTC (permalink / raw)
To: linux-wireless
Saurabh8 Jain <saurabh8.jain@...> writes:
> Where is this memory getting free? Do I need to free this memory?
>
> 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.
Do you really think that a perceived memory leak in libnl could explain this?
This can't be true. If you run iw in a shell loop it will terminate after every
invocation and the kernel will free all associated resources.
Regards
Joerg
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-16 10:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16 5:31 Netlink Memory Leak Issue Saurabh8 Jain
2010-12-16 7:03 ` Johannes Berg
2010-12-16 10:47 ` jpo234
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).